ValueChangeEvent
A change event carrying a boolean value, as a Toggle reports being switched on or off.
Usage
Read the boolean payload of a native control event.
// Read the boolean payload of a native control event.
import { signal, type ValueChangeEvent } from 'kuito';
export const enabled = signal(false);
export function receiveValue(event: ValueChangeEvent) {
enabled.value = event.value;
}
// Toggle's onChange receives the boolean directly, not this event object.Type declaration
export interface ValueChangeEvent extends KuitoEvent<'change'>, ValuePayload {}Members 4
| Name | Type | Required | Description |
|---|---|---|---|
type | "change" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
value | boolean | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.