KSecondaryToolBarWidget
kds-plugin-document / Exports / KSecondaryToolBarWidget
Interface: KSecondaryToolBarWidget
二级工具栏控件
Secondary toolbar widget
Hierarchy
↳
KSecondaryToolBarWidget
Table of contents
Methods
Methods
getClickListener
▸ getClickListener(): KClickListener
获取控件的点击监听器
Get the click listener of the widget
Returns
Inherited from
Defined in
api.d.ts:6886
getId
▸ getId(): string
获取控件的唯一标识符
Unique identifier for the widget
Returns
string
Inherited from
Defined in
api.d.ts:6871
getTools
▸ getTools(): KToolWidget[]
获取工具列表
Get the tool list
Returns
The current tool list
Defined in
api.d.ts:4782
getType
▸ getType(): KWidgetIdentifier
获取控件的类型
Get the type of the widget
Returns
Inherited from
Defined in
api.d.ts:6863
getVisible
▸ getVisible(): boolean
获取是否可见
get visibility of the widget
Returns
boolean
Inherited from
Defined in
api.d.ts:6909
remove
▸ remove(): void
从界面中移除此控件
Remove this widget from the UI
Returns
void
Inherited from
Defined in
api.d.ts:6893
setClickListener
▸ setClickListener(listener?): void
设置点击监听器
Set the click listener for the widget
Parameters
| Name | Type | Description |
|---|---|---|
listener? | KClickListener | 可选的点击事件监听器 (Optional click event listener) |
Returns
void
Inherited from
Defined in
api.d.ts:6879
setTools
▸ setTools(tools): Object
自定义展示二级工具栏工具列表,二级工具栏将被替换为tools描述的工具列表
Customize the display of the secondary toolbar tool list, the secondary toolbar will be replaced with the tool list described by tools
Parameters
| Name | Type | Description |
|---|---|---|
tools | KToolWidgetOption[] | tool list |
Returns
Object
| Name | Type |
|---|---|
isSuccess | boolean |
Defined in
api.d.ts:4774
setVisible
▸ setVisible(visible): void
设置是否可见
Set the visibility of the widget
Parameters
| Name | Type |
|---|---|
visible | boolean |
Returns
void
Inherited from
Defined in
api.d.ts:6902