Modal

less than 1 minute read

Documentation

Web Component

// Return the modal properties return { button: { text: "Open Modal", toggle: "modal", target: "#bsModalDemo" } };
<script type="text/javascript" src="https://unpkg.com/gd-sprest-bs-wc/wc/dist/gd-sprest-bs.js"></script>
<bs-modal id="wcModalDemo" title="Modal Demo" body="This is the body of the modal.">
    // Return the modal properties
    return {
        button: {
            text: "Open Modal",
            toggle: "modal",
            target: "#bsModalDemo"
        }
    };
</bs-modal>