For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/lynxtron/api/@lynx-js/lynxtron/Interface.MessageBoxSyncOptions.md.
  • 简体中文
  • @lynx-js/lynxtron / MessageBoxSyncOptions

    MessageBoxSyncOptions

    属性

    buttons?

    optional buttons: string[];

    Array of texts for buttons. On Windows, an empty array will result in one button labeled "OK".

    定义于

    apis/api/dialog.d.ts:116


    cancelId?

    optional cancelId: number;

    The index of the button to be used to cancel the dialog, via the Esc key. By default this is assigned to the first button with "cancel" or "no" as the label. If no such labeled buttons exist and this option is not set, 0 will be used as the return value.

    定义于

    apis/api/dialog.d.ts:143


    defaultId?

    optional defaultId: number;

    Index of the button in the buttons array which will be selected by default when the message box opens.

    定义于

    apis/api/dialog.d.ts:121


    detail?

    optional detail: string;

    Extra information of the message.

    定义于

    apis/api/dialog.d.ts:129


    icon?

    optional icon: string | NativeImage;

    定义于

    apis/api/dialog.d.ts:130


    message

    message: string;

    Content of the message box.

    定义于

    apis/api/dialog.d.ts:105


    textWidth? macOS

    optional textWidth: number;

    Custom width of the text in the message box.

    定义于

    apis/api/dialog.d.ts:136


    title?

    optional title: string;

    Title of the message box, some platforms will not show it.

    定义于

    apis/api/dialog.d.ts:125


    type?

    optional type:
      | "error"
      | "none"
      | "info"
      | "warning"
      | "question";

    Can be none, info, error, question or warning. On Windows, question displays the same icon as info, unless you set an icon using the icon option. On macOS, both warning and error display the same warning icon.

    定义于

    apis/api/dialog.d.ts:111

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。