Skip to Content
ClassesFSubmenu

类: FSubmenu

This is the builder for add a menu that can contains submenus to Univer. You shall never construct this class by yourself. Instead, call createSubmenu of FUniver to create a instance.

Please notice that until the appendTo method is called, the menu item is not added to the UI.

继承

  • FMenuBase

方法

addSeparator()

addSeparator(): this

Add a separator to the submenu.

返回

this

The FSubmenu itself for chaining calls.


addSubmenu()

addSubmenu(submenu): this

Add a menu to the submenu. It can be a FMenu or a FSubmenu.

参数

参数类型描述
submenuFMenu | FSubmenuMenu to add to the submenu.

返回

this

The FSubmenu itself for chaining calls.