click
Description
adds a click handler to the Two State buttonType
function
Example
<script>
function myFunction() {
showNotice({
text: "Two State Button clicked",
});
}
</script>
<div>
<TwoState onclick={myFunction}>Click Me</TwoState>
</div>
Details
Related articles: Handling a button click, Making a button inactive
Related sample: Two State Button