pegros / PEG_LIST

Set of configurable/actionable LWC list components for Salesforce Lightning UX
MIT License
20 stars 9 forks source link

[feat] sfpegCardCmp - Customize the label shown in the card #47

Open Mchaouche opened 1 year ago

Mchaouche commented 1 year ago

Is your feature request related to a problem? Please describe. The business team often want to customize the fields' name shown in the card cmp. For exemple: The account Name fields Label in core is 'Account Name' for all record types and that's fine for internal purpose, however, in portal (for a better End user experience), the business want to customize the label shown ex: 'Intermédiaire Name', 'Site Name'

Describe the solution you'd like Add a 'Label' param as in the SfpeglistCMP to customize the column name.

Describe alternatives you've considered NA

Additional context NA

pegros commented 1 year ago

@Mchaouche Still a requirement ?

Mchaouche commented 1 year ago

@pegros Yes. Thanks

pegros commented 1 year ago

@Mchaouche by default, the standard lightning-input-field and lightning-output-field base component do not propose such an option. It would require displaying them without label and build a HTML wrapper to inject the label while still applying all proper display options.