pegros / PEG_LIST

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

[feat] sfpegListCmp - Hovering on record name #28

Open pegros opened 2 years ago

pegros commented 2 years ago

Is your feature request related to a problem? Please describe. In many standard Salesforce lists, the compact layout is displayed when hovering over a lookup field. It would be great to hav a similar behaviour on name fields in sfpegListCmp.

Describe the solution you'd like Compact layout display when hovering over a lookup field.

Describe alternatives you've considered For the time being the showDetails action type provides a similar feature, which however requires the user to explicitly click on the link. Only configured title properties are displayed upon hovering.

The idea would be to rely in the lightning-record-form standard base component with the compact layout specified to determine the set of fields to display. This feature would therefore only work with LDS supported objects (e.g. not Tasks or Events) and would be activated in the configuration via a specific boolean flag.

Additional context For full custom implementation (tileList and cardList display modes), this hovering should be relatively easy to implement, whereas for implementation relying on standard lightning base components (datatable and treeGrid display modes), this may be trickier. An option would be to support this feature at least for tiles based display.