Skip to main content

KTopBarWidgetOptions

kds-plugin-document / Exports / KTopBarWidgetOptions

Interface: KTopBarWidgetOptions<ClickListener, HoverListener>

Type parameters​

NameType
ClickListenerKClickListener
HoverListenerKHoverListener

Table of contents​

Properties​

Properties​

icon​

• icon: string

图标路径

Icon path

Defined in​

api.d.ts:6050


insertPosition​

• Optional insertPosition: KInsertPosition

控件的插入位置,决定控件添加在容器的前面还是后面

Insert position of the widget, determines whether the widget is added to the front or back of the container

Default

KInsertPosition.kBack

Defined in​

api.d.ts:6095


mountPoint​

• Optional mountPoint: KTopbarItemMountPoint

挂载点

Mount point

default: KTopbarItemMountPoint.Center

Defined in​

api.d.ts:6066


onClick​

• Optional onClick: ClickListener

点击事件处理函数

Click event handler

Defined in​

api.d.ts:6080


onHover​

• Optional onHover: HoverListener

鼠标悬停事件处理函数

Hover event handler

Defined in​

api.d.ts:6087


• Optional subMenu: KTopBarSubMenuItem<ClickListener>[]

子菜单项

Submenu items

Defined in​

api.d.ts:6073


text​

• text: string

显示文本

Display text

Defined in​

api.d.ts:6057