Interface ContextMenuSubItemOptions

上下文菜单子项选项.

interface ContextMenuSubItemOptions {
    cssIcon?: string;
    enabled?: boolean;
    icon?: string;
    items?: ContextMenuSubItemOptions[];
    label?: string;
    markup?: string;
    onClick?: Function;
    shortcut?: string;
    type?: "normal" | "custom" | "multi" | "Button" | "seperator" | "submenu" | "hovermenu";
}

Properties

cssIcon?: string

css图标

enabled?: boolean

是否能用

icon?: string

图标 如果设置为"checked"将用默认选中图标

类型为'multi'时子菜单项

label?: string

菜单名称

markup?: string

类型为'custom'时的自定义html内容

onClick?: Function

点击事件

shortcut?: string

快捷菜单

type?: "normal" | "custom" | "multi" | "Button" | "seperator" | "submenu" | "hovermenu"

子菜单类型.