Checkbox powered by Angular Material library.
export const component: DraymanComponent = async ({ forceUpdate }) => { let checked = false; const onValueChange = async ({ value }) => { checked = value; await forceUpdate(); } return () => { return ( <drayman-checkbox value={checked} label={checked ? `Uncheck me!` : `Check me!`} onValueChange={onValueChange} /> ); } }
Whether the control is disabled.
The floating label for a field.
Executed with an input value from user.
Wether value of the field should be emitted when user is blurred out of the control.
Value of the input.
<drayman-checkbox />
Checkbox powered by Angular Material library.
Example of usage
export const component: DraymanComponent = async ({ forceUpdate }) => { let checked = false; const onValueChange = async ({ value }) => { checked = value; await forceUpdate(); } return () => { return ( <drayman-checkbox value={checked} label={checked ? `Uncheck me!` : `Check me!`} onValueChange={onValueChange} /> ); } }