11 lines
304 B
Plaintext

<button id="toggle" on-click("toggle")>
Toggle. (current value: ${state.active})
</button>
<button id="dom-button" on-click(state.active && "handleDOMClick")>
Test DOM
</button>
<custom-button id="custom-button" on-button-click(state.active && 'handleCustomClick')>
Test Custom
</custom-button>