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/type-aliases/UiTrigger.md.
  • 简体中文
  • Type Alias: UiTrigger

    type UiTrigger = 
      | {
      type: "action";
      action: string;
      input?: {
       [key: string]: UiJsonValue;
      };
    }
      | {
      type: "navigate";
      to: string;
      params?: {
       [key: string]: UiJsonValue;
      };
    }
      | {
      type: "replace";
      to: string;
      params?: {
       [key: string]: UiJsonValue;
      };
    }
      | {
      type: "back";
    }
      | {
      type: "refresh";
    }
      | {
      type: "close";
    };

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

    按钮触发器。