pegros / PEG_LIST

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

[feat] sfpegCardCmp - Support hidden fields #58

Closed ismailsalam closed 9 months ago

ismailsalam commented 1 year ago

Hello,

Request for desired development: Add the possibility in the SFPEGCard component to manage hidden fields. For example, manage dependent selection lists whose dependent field should not be displayed

Details of the desired development: Add the ability to handle a "class" attribute in the display fields definition to inject an SLDS-style class

Example of expected evolution:

Custom metadata "sfpegCard" "Display Configuration" field: {
"size": 6, "fields": [ {
"name": "Suivic" }, { "name": "canalc", "class": "slds-hide"   } ] }

pegros commented 9 months ago

Feature added in the component via a context global property similar to fields instead of a field definition level one. Context fields are loaded only when switching to edit mode.