/// <summary> /// Set a child menu for this item. See the menu configuration. /// </summary> /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param> public virtual void SetMenu(MenuBase menu) { this.Call("setMenu", menu != null ? menu.ToConfig() : null); }
/// <summary> /// Set a child menu for this item. See the menu configuration. /// </summary> /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param> public virtual void SetMenu(MenuBase menu) { this.Call("setMenu", menu != null ? menu.ToConfig() : null); }
/// <summary> /// Set a child menu for this item. See the menu configuration. /// </summary> /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param> /// <param name="destroyMenu">True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used.</param> public virtual void SetMenu(MenuBase menu, bool destroyMenu) { this.Call("setMenu", menu != null ? menu.ToConfig() : null, destroyMenu); }
/// <summary> /// Set a child menu for this item. See the menu configuration. /// </summary> /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param> /// <param name="destroyMenu">True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used.</param> public virtual void SetMenu(MenuBase menu, bool destroyMenu) { this.Call("setMenu", menu != null ? menu.ToConfig() : null, destroyMenu); }