KSelectMenuTitleWidget
kds-plugin-document / Exports / KSelectMenuTitleWidget
Interface: KSelectMenuTitleWidget
菜单上的快捷按钮,提供一键访问常用功能
Shortcut button on the menu, provides one-click access to common functions
Hierarchy
↳
KSelectMenuTitleWidget
Table of contents
Methods
Methods
getClickListener
▸ getClickListener(): KClickListener
获取控件的点击监听器
Get the click listener of the widget
Returns
Inherited from
Defined in
api.d.ts:6886
getIcon
▸ getIcon(): string
获取菜单图标
Get the icon of the menu button
Returns
string
菜单的当前图标 (Current icon of the menu button)
Defined in
api.d.ts:4964
getId
▸ getId(): string
获取控件的唯一标识符
Unique identifier for the widget
Returns
string
Inherited from
Defined in
api.d.ts:6871
getText
▸ getText(): string
获取菜单文本
Get the text of the menu button
Returns
string
菜单的当前文本内容 (Current text content of the menu button)
Defined in
api.d.ts:4972
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
setIcon
▸ setIcon(icon): void
设置菜单图标
Set the icon of the menu button
Parameters
| Name | Type | Description |
|---|---|---|
icon | string | 图标URL或SVG字符串 (Icon URL or SVG string) |
Returns
void
Defined in
api.d.ts:4948
setText
▸ setText(text): void
设置菜单文本
Set the text of the menu button
Parameters
| Name | Type | Description |
|---|---|---|
text | string | 显示的文本内容 (Text content to display) |
Returns
void
Defined in
api.d.ts:4956
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