Skip to content

Instantly share code, notes, and snippets.

@jmdohn
Last active December 17, 2020 21:27
Show Gist options
  • Save jmdohn/2047d66e3d86a1ebd9cbd8cb552d5e61 to your computer and use it in GitHub Desktop.
Save jmdohn/2047d66e3d86a1ebd9cbd8cb552d5e61 to your computer and use it in GitHub Desktop.
Expandable Modal Screen from Quick Action
<aura:component implements="force:lightningQuickAction" >
<aura:attribute name="size" type="string" />
<aura:html tag="style">
.slds-modal__container {
min-width: {!v.size};
}
</aura:html>
<lightning:button variant="brand" label="Make it big!" title="Make it big!" onclick="{! c.handleBiggly }"/>
<lightning:button variant="brand" label="Make it tiny!" title="Make it tiny!" onclick="{! c.handleSmally }"/>
</aura:component>
({
handleBiggly : function(component, event, helper) {
component.set("v.size", "90vw");
},
handleSmally : function(component, event, helper) {
component.set("v.size", "30vw");
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment