1

So when the user click on a button to display the lightning component in a new window.

enter image description here

I'm trying to display a lightning component as a button on the lightning record page in the highlights panel beside standard salesforce buttons. Is there any way to add custom component within highlights panel?

2 Answers 2

3

You can't add a component itself there. You can create an Action on the object that has a Lightning Component as its target, and then add that action to the Page Layout that your highlights panel is drawing from.

0

Try to create a custom Action and add lightning component Make sure Lightning component has : lightningQuickActionWithoutHeader

Example

<aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId">

2
  • yes implements quickactionwithoutheader but does not work.
    – Nick
    Commented Aug 20, 2019 at 23:49
  • Try creating action not the button . What problem are you facing ? Refer Link Commented Aug 22, 2019 at 0:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .