@tempots/dom
OnChecked() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Attaches an event handler to the 'click' event that triggers when a checkbox is checked or unchecked.
Signature:
OnChecked: (fn: (event: boolean) => void) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
fn |
(event: boolean) => void |
The callback function to be executed when the checkbox is clicked. |
Returns: Renderable