bind_component_property
Attach a declared component property to a sublayer field to control visibility, text content, or instance swap. Pass null to remove the binding.
Instructions
Attach a declared component property (from add_component_property) to a sublayer field so it drives that layer: field "visible" for a BOOLEAN, "characters" for a TEXT (the node must be a TEXT node), "mainComponent" for an INSTANCE_SWAP (the node must be an INSTANCE). The same property can be bound to several layers (call once per layer). Pass propertyId: null to remove the binding on that field. The property's type must match the field and it must exist on the containing component. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Which layer field the property drives | |
| nodeId | Yes | Sublayer inside the component to bind on | |
| propertyId | Yes | Property id (name#id) to bind, or null to unbind this field |