WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface ContextMenuItemInfo

    右键菜单项接口

    interface ContextMenuItemInfo {
        label: string;
        icon?: string;
        shortcut?: string;
        command?: string;
        callback?: () => void;
        submenu?: ContextMenuItemInfo[];
        disabled?: boolean;
        checked?: boolean;
        isSeparator?: boolean;
    }
    Index

    Properties

    label: string

    菜单项标签

    icon?: string

    图标名称

    shortcut?: string

    快捷键文本

    command?: string

    命令名称(如果是系统命令)

    callback?: () => void

    点击回调函数

    子菜单项

    disabled?: boolean

    是否禁用

    checked?: boolean

    是否选中

    isSeparator?: boolean

    是否为分隔线