Skip to main content

RowActionBar

RowActionBar

Toolbar 是列表页面自定义按钮管理类,提供自定义按钮的添加、显示控制等等...

属性/方法类型描述
addButton(button)参数:button: Omit<ButtonOptions, 'menuItems'>
返回:无
添加自定义按钮, 行按钮现阶段无法添加菜单按钮(menuItems 属性无效)
removeButton(key)参数:key: string 按钮标识
返回:无
根据按钮标识 key 设置对应按钮的可见状态
getRowButton(key, rowIndex)参数:key: string 按钮标识, rowIndex: number 行索引
返回:Button
获取行按钮引用