Skip to content

Instantly share code, notes, and snippets.

@iamsonal
Created June 27, 2017 13:48
Show Gist options
  • Save iamsonal/13fe572780d3122f54e4c5dd9a093030 to your computer and use it in GitHub Desktop.
Save iamsonal/13fe572780d3122f54e4c5dd9a093030 to your computer and use it in GitHub Desktop.
<aura:component >
<aura:attribute name="index" type="Integer" default="1" />
<aura:attribute name="buttonLabel" type="String" />
<div style="margin-top=20px;text-align:center;width=100%">
<lightning:button variant="brand" label="Create Component" onclick="{! c.createComponent }" />
<lightning:button variant="destructive" label="Remove Component" onclick="{! c.removeComponent }" />
</div>
<br/><br/>
<div style="border:10px ridge red;height:50%;width:100%">
{!v.body}
</div>
<br/>
<div class="slds-align--absolute-center">
{!v.buttonLabel}
</div>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment