Skip to main content

KSecondaryToolBarWidget

kds-plugin-document / Exports / KSecondaryToolBarWidget

Interface: KSecondaryToolBarWidget

二级工具栏控件

Secondary toolbar widget

Hierarchy

Table of contents

Methods

Methods

getClickListener

getClickListener(): KClickListener

获取控件的点击监听器

Get the click listener of the widget

Returns

KClickListener

Inherited from

KWidget.getClickListener

Defined in

api.d.ts:6886


getId

getId(): string

获取控件的唯一标识符

Unique identifier for the widget

Returns

string

Inherited from

KWidget.getId

Defined in

api.d.ts:6871


getTools

getTools(): KToolWidget[]

获取工具列表

Get the tool list

Returns

KToolWidget[]

The current tool list

Defined in

api.d.ts:4782


getType

getType(): KWidgetIdentifier

获取控件的类型

Get the type of the widget

Returns

KWidgetIdentifier

Inherited from

KWidget.getType

Defined in

api.d.ts:6863


getVisible

getVisible(): boolean

获取是否可见

get visibility of the widget

Returns

boolean

Inherited from

KWidget.getVisible

Defined in

api.d.ts:6909


remove

remove(): void

从界面中移除此控件

Remove this widget from the UI

Returns

void

Inherited from

KWidget.remove

Defined in

api.d.ts:6893


setClickListener

setClickListener(listener?): void

设置点击监听器

Set the click listener for the widget

Parameters

NameTypeDescription
listener?KClickListener可选的点击事件监听器 (Optional click event listener)

Returns

void

Inherited from

KWidget.setClickListener

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

NameTypeDescription
toolsKToolWidgetOption[]tool list

Returns

Object

NameType
isSuccessboolean

Defined in

api.d.ts:4774


setVisible

setVisible(visible): void

设置是否可见

Set the visibility of the widget

Parameters

NameType
visibleboolean

Returns

void

Inherited from

KWidget.setVisible

Defined in

api.d.ts:6902