使用范围:UI2
Contents
component Menu ($UI/system/components/justep/menu/menu) extends ViewComponent
上下文菜单
Constructor Top
Menu () | |||
Menu ( options) |
Attributes Top
string | xid |
Methods Top
void | addDivider () | |
Object | addItem (Object config) | |
void | clear () | |
Integer | itemSize () | |
void | removeItem (Integer index) |
Constructor details
Top
public
Menu
()
上下文菜单
public
Menu
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Menu
()
上下文菜单
public
Menu
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Attributes Detail Top
public
string
xid
Methods Detail Top
public
void
addDivider
()
创建分隔线
public
Object
addItem
(Object config)
创建项
public
void
clear
()
清除所有菜单项
public
Integer
itemSize
()
获取菜单项个数
public
void
removeItem
(Integer index)
删除项