Created
August 9, 2017 03:26
-
-
Save JitendraZaa/68af9bd5b06b46cd431e8e425bda11d3 to your computer and use it in GitHub Desktop.
For Blog post - http://www.jitendrazaa.com/blog/salesforce/create-collapsible-panel-component-in-lightning/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <aura:component > | |
| <aura:attribute type="String" name="header" /> | |
| <aura:attribute name="body" type="Aura.Component[]"/> | |
| <aura:attribute name="collpaseText" type="String" default="[ + ]"/> | |
| <div> | |
| <div class="Message"> | |
| <div style="width:90%;float:left"> {!v.header} </div> | |
| <div class="expandCollapse" onclick="{!c.ToggleCollapse}"> {!v.collpaseText} </div> | |
| </div> | |
| <div class="container hide" aura:id="containerCollapsable"> | |
| {!v.body} | |
| </div> | |
| </div> | |
| </aura:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment