Skip to content

@jimka/typescript-ui / core / Bindable

Interface: Bindable<T>

Defined in: src/typescript/lib/core/Bindable.ts:21

Implemented by components that want to participate in Binding without supplying explicit accessor callbacks.

Type Parameters

T

Methods

addBindingListener()

ts
addBindingListener(fn: () => void): void

Defined in: src/typescript/lib/core/Bindable.ts:29

Subscribe to user-driven value changes.

Parameters

fn

() => void

Returns

void


getValue()

ts
getValue(): T

Defined in: src/typescript/lib/core/Bindable.ts:26

Read the component's current value to write back to the record.

Returns

T


setValue()

ts
setValue(value: T): void

Defined in: src/typescript/lib/core/Bindable.ts:23

Populate the component with a value from the bound record.

Parameters

value

T

Returns

void