-
-
Save TheShubhamVsnv/7e51294b4c49fe549c8ffe8e07bdcaa0 to your computer and use it in GitHub Desktop.
spinner.html
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
<template> | |
<!-- Button to show the spinner --> | |
<lightning-button label="Show Spinner" onclick={handleButtonClick}></lightning-button> | |
<!-- Spinner component, displayed when isLoading is true --> | |
<lightning-spinner if:true={isLoading} alternative-text="Loading"></lightning-spinner> | |
<!-- Content that is displayed when isLoading is false --> | |
<div if:false={isLoading}> | |
<!-- Your content here --> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment