For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/contracts/interfaces/UiToggleNode.md.
  • 简体中文
  • Interface: UiToggleNode

    Defined in: contracts/ui-document.ts:203

    所有组件共有字段。节点 id 用于可视化编辑、稳定 diff 与诊断定位。

    Extends

    Properties

    PropertyTypeDescriptionInherited fromDefined in
    idstring-UiNodeBase.idcontracts/ui-document.ts:127
    visibleWhen?UiExpression-UiNodeBase.visibleWhencontracts/ui-document.ts:128
    type"toggle"--contracts/ui-document.ts:204
    labelstring--contracts/ui-document.ts:205
    bindstring绑定路径:state.*,或 each 条目字段(如 channel.subscribed)。 条目绑定按「页面 + 节点 + 条目 id」各持一份 Observable。-contracts/ui-document.ts:210
    description?string--contracts/ui-document.ts:211
    tooltip?string--contracts/ui-document.ts:212
    disabledWhen?UiExpression--contracts/ui-document.ts:213
    trigger?UiTrigger开关值变化时立即触发(用于订阅等即时生效操作)。-contracts/ui-document.ts:215