Skip to main content

Type Alias: UiControlEventHandler()<T, Args>

UiControlEventHandler<T, Args> = (source, ...args) => boolean

Defined in: src/sdk/components/controls/HardwareUiControl.tsx:9

A handler for events emitted by UiControl2.

Type Parameters

Type ParameterDefault typeDescription
T extends HardwareUiControl<any, any>-The type of event sources.
Args extends any[][]A tuple type describing additional arguments for an event after the source control. Defaults to an empty (zero-length) tuple.

Parameters

ParameterType
sourceT
...argsArgs

Returns

boolean