ThumbarButton Object
icon
NativeImage -The icon showing in thumbnail toolbar.缩略图工具栏中显示的图标。click
Functiontooltip
string (optional) -The text of the button's tooltip.按钮工具提示的文本。flags
string[] (optional) -Control specific states and behaviors of the button.控制按钮的特定状态和行为。By default, it is默认情况下,它是['enabled']
.['enabled']
。
The flags
is an array that can include following string
s:flags
是一个数组,可以包括以下string
:
enabled
-The button is active and available to the user.该按钮处于活动状态,用户可以使用。disabled
-The button is disabled.该按钮已禁用。It is present, but has a visual state indicating it will not respond to user action.它存在,但具有一个视觉状态,指示它不会对用户操作做出响应。dismissonclick
-When the button is clicked, the thumbnail window closes immediately.单击该按钮后,缩略图窗口将立即关闭。nobackground
-Do not draw a button border, use only the image.不要绘制按钮边框,只使用图像。hidden
-The button is not shown to the user.该按钮不会显示给用户。noninteractive
-The button is enabled but not interactive; no pressed button state is drawn.按钮已启用,但不可交互;没有绘制被按下的按钮状态。This value is intended for instances where the button is used in a notification.此值适用于在通知中使用按钮的情况。