ValueChangeEvent
A change event carrying a boolean value, as a Toggle reports being switched on or off.
Utilisation
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.Déclaration du type
export interface ValueChangeEvent extends KuitoEvent<'change'>, ValuePayload {}Membres 4
| Nom | Type | Requis | Description |
|---|---|---|---|
type | "change" | Oui | — |
target | unknown | Oui | — |
isTrusted | boolean | Oui | — |
value | boolean | Oui | — |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.