Last active
December 17, 2020 21:27
-
-
Save jmdohn/2047d66e3d86a1ebd9cbd8cb552d5e61 to your computer and use it in GitHub Desktop.
Expandable Modal Screen from Quick Action
This file contains 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 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> |
This file contains 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
({ | |
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