Header menu logo fable-electron-docs-api

ThumbarButton Type

The flags is an array that can include following strings:* 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.

Constructors

Constructor Description

ThumbarButton(icon, click, ?tooltip, ?flags)

Full Usage: ThumbarButton(icon, click, ?tooltip, ?flags)

Parameters:
    icon : NativeImage - The icon showing in thumbnail toolbar.
    click : unit -> unit -
    ?tooltip : string - The text of the button's tooltip.
    ?flags : string[] - Control specific states and behaviors of the button. By default, it is ['enabled'].

Returns: ThumbarButton
icon : NativeImage

The icon showing in thumbnail toolbar.

click : unit -> unit

?tooltip : string

The text of the button's tooltip.

?flags : string[]

Control specific states and behaviors of the button. By default, it is ['enabled'].

Returns: ThumbarButton

Instance members

Instance member Description

this.click

Full Usage: this.click

this.flags

Full Usage: this.flags

Control specific states and behaviors of the button. By default, it is ['enabled'].

this.icon

Full Usage: this.icon

The icon showing in thumbnail toolbar.

this.tooltip

Full Usage: this.tooltip

The text of the button's tooltip.

Type something to start searching.