UNPKG

@bokeh/bokehjs

Version:

Interactive, novel data visualization

22 lines 806 B
import { Model } from "../../../model"; import { IconLike } from "../../common/kinds"; import { Callback } from "../../callbacks/callback"; export class MenuItem extends Model { static __name__ = "MenuItem"; constructor(attrs) { super(attrs); } static { this.define(({ Bool, Str, Nullable, AnyRef, Ref, Func, Func0, Or }) => ({ checked: [Nullable(Or(Bool, Func0(Bool))), null], icon: [Nullable(IconLike), null], label: [Str], tooltip: [Nullable(Str), null], shortcut: [Nullable(Str), null], menu: [Nullable(AnyRef()), null], disabled: [Or(Bool, Func0(Bool)), false], action: [Nullable(Or(Ref(Callback), Func())), null], })); } } //# sourceMappingURL=menu_item.js.map