bindWidgetValue
bindWidgetValue<
C,K>(world,events,entity,component,field,signal,payloadKey?): () =>void
Defined in: ui/binding/two-way.ts:32
Two-way bind signal ↔ entity’s component.field, with the widget’s
change event as the upstream edge. payloadKey names the field in the
change payload (e.g. 'value' for UISlider, 'isOn' for UIToggle,
'index' for UIDropdown). Returns a dispose that tears down both
directions (the down-binding also auto-disposes on despawn).
Type Parameters
Section titled “Type Parameters”C extends object
K extends string | number | symbol
Parameters
Section titled “Parameters”events
Section titled “events”entity
Section titled “entity”number
component
Section titled “component”ComponentDef<C>
K
signal
Section titled “signal”Signal<C[K]>
payloadKey?
Section titled “payloadKey?”string = ...
Returns
Section titled “Returns”() => void