Create thumbar-button.md
This commit is contained in:
parent
a584785254
commit
3ba8a7516a
1 changed files with 21 additions and 0 deletions
21
docs-translations/zh-CN/api/structures/thumbar-button.md
Normal file
21
docs-translations/zh-CN/api/structures/thumbar-button.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# ThumbarButton Object
|
||||
|
||||
* `icon` [NativeImage](../native-image.md) - The icon showing in thumbnail
|
||||
toolbar.
|
||||
* `click` Function
|
||||
* `tooltip` 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']`.
|
||||
|
||||
The `flags` is an array that can include following `String`s:
|
||||
|
||||
* `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.
|
Loading…
Reference in a new issue