You need to sign in to do that
Don't have an account?
Leticia Monteiro Freitas 4
Open a Lightning Section accordion Automatically
Hello,
I'm want open a section in my lightning:accordion automatically from a click in one button.
Is there possibel?
I'm want open a section in my lightning:accordion automatically from a click in one button.
Is there possibel?
You just set the value of activeSectionName.
<lightning:button onclick="{! c.handleSetActiveSectionC }" label="Open Section C"/>
cmp.find("accordion").set('v.activeSectionName', 'C');
<lightning:accordionSection name="C" label="Accordion Title C">
https://developer.salesforce.com/docs/component-library/bundle/lightning:accordion/example
Is There anyway to disable open the section from click in the link?