lwc popup

Solutions on MaxInterview for lwc popup by the best coders in the world

showing results for - "lwc popup"
Gaia
11 Nov 2018
1<template>
2   <!-- lightning button for open modal window -->
3   <lightning-button variant="brand"
4      label="Open Modal"
5      title="Open Modal"
6      onclick={openModal}
7      class="slds-m-left_x-small"></lightning-button>
8 
9   <!-- modal start -->        
10   <template if:true={bShowModal}>
11      <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open">
12         <div class="slds-modal__container">
13            <!-- modal header start -->
14            <header class="slds-modal__header">
15               <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" title="Close" onclick={closeModal}>
16                  <lightning-icon icon-name="utility:close"
17                     alternative-text="close"
18                     variant="inverse"
19                     size="small" ></lightning-icon>
20                  <span class="slds-assistive-text">Close</span>
21               </button>
22               <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">Modal Header with LWC</h2>
23            </header>
24            <!-- modal body start -->
25            <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
26               <p>Sit nulla est ex deserunt exercitation anim occaecat. Nostrud ullamco deserunt aute id consequat veniam incididunt duis in sint irure nisi. Mollit officia cillum Lorem ullamco minim nostrud elit officia tempor esse quis. Cillum sunt ad dolore
27                  quis aute consequat ipsum magna exercitation reprehenderit magna. Tempor cupidatat consequat elit dolor adipisicing.
28               </p>
29               <p>Dolor eiusmod sunt ex incididunt cillum quis nostrud velit duis sit officia. Lorem aliqua enim laboris do dolor eiusmod officia. Mollit incididunt nisi consectetur esse laborum eiusmod pariatur proident. Eiusmod et adipisicing culpa deserunt nostrud
30                  ad veniam nulla aute est. Labore esse esse cupidatat amet velit id elit consequat minim ullamco mollit enim excepteur ea.
31               </p>
32            </div>
33            <!-- modal footer start-->
34            <footer class="slds-modal__footer">
35               <button class="slds-button slds-button_neutral" onclick={closeModal}>Cancel</button>
36            </footer>
37         </div>
38      </section>
39      <div class="slds-backdrop slds-backdrop_open"></div>
40   </template>
41   <!-- modal end -->
42 
43</template>