Skip to content

bindControllerPage

bindControllerPage(world, entity, controller, source): () => void

Defined in: ui/controller/bind-page.ts:26

Bind source (a page name) to the nearest controller named controller (self → ancestors from entity): applied now and on every change. Unknown pages/controllers are ignored (see setControllerPage); the binding tears itself down when entity despawns. Returns a dispose to unbind early.

World

number

string

ReadonlySignal<string>

() => void