Display Popup/Modal Window In Salesforce Lightning Web Component

Solve for Common Errors in Unlocked Packages – Jitendra Zaa's Blog

 

 

<template>

   <!– lightning button for open modal window –>

   <lightning-button variant=“brand”

      label=“Open Modal”

      title=“Open Modal”

      onclick={openModal}

      class=“slds-m-left_x-small”></lightning-button>

 

   <!– modal start –>        

   <template if:true={bShowModal}>

      <section role=“dialog” tabindex=“-1” aria-labelledby=“modal-heading-01” aria-modal=“true” aria-describedby=“modal-content-id-1” class=“slds-modal…



Read more