Button

less than 1 minute read

Documentation

Web Component

// Return the button properties return { onClick: btnClickEvent }
<script type="text/javascript" src="https://unpkg.com/gd-sprest-bs-wc/wc/dist/gd-sprest-bs.js"></script>
<bs-button text="My Button">
    // Return the button properties
    return {
        onClick: function(ev) {
            alert("You clicked the button...");
        }
    }
</bs-button>