-
-
Save TheShubhamVsnv/73fe033237b38068592fb40d736b132d to your computer and use it in GitHub Desktop.
slds-Modals and Popovers .js
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
import { LightningElement, track } from 'lwc'; | |
export default class MyComponent extends LightningElement { | |
@track modalClass = 'slds-modal'; | |
openModal() { | |
this.modalClass += ' slds-fade-in-open'; | |
} | |
closeModal() { | |
this.modalClass = 'slds-modal'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment