2

In Visualforce you could add an apex:outputLink to a page and had a link that showed a Mini layout on Hover.

I want the exact same thing in a custom Lightning component. Add a record link and have a user customizable Compact layout to show up on Link hover.

enter image description here

Is that doable and how? If not, why not or when?

I know that I could built that myself using a custom popover component and lightning:recordViewForm. But that is a lot of work and less flexible because there is no easy way to make the displayed fields customizable by users.

  • 1
    I'd say there isn't such a thing. Even for lightning:outputField, the docs say "Lookups render as text only. Linking and hover overlays on lookup values are not supported." – Sebastian Kessel May 17 '18 at 15:23
2

AFAIK There is no standard base lightning:component for a popover,

But you can use the one from the strike library:

http://www.lightningstrike.io/#!/strikePopover

EDIT

Another option: use lightning:overlayLibrary with the showCustomPopover method - that would set the visual popover, then inside it put your own fields

|improve this answer|||||
  • Hello, do you have any example on how to use the strike component for this? Thanks – Francisco Riccomagno Mar 21 '19 at 14:09
  • 1
    @FranciscoRiccomagno I can see that their website is down, you can use their github repo: github.com/appiphony/Strike-Components search for the popover component. Unfortunately I do not have a working example of it – Itai Shmida Mar 26 '19 at 8:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.