Options Type
Constructors
| Constructor |
Description
|
Full Usage:
Options(?label, ?accessibilityLabel, ?backgroundColor, ?icon, ?iconPosition, ?click, ?enabled)
Parameters:
string
-
Button text.
?accessibilityLabel : string
-
A short description of the button for use by screenreaders like VoiceOver.
?backgroundColor : string
-
Button background color in hex format, i.e #ABCDEF.
?icon : U2<NativeImage, string>
-
Button icon.
?iconPosition : IconPosition
-
Can be left, right or overlay. Defaults to overlay.
?click : unit -> unit
-
Function to call when the button is clicked.
?enabled : bool
-
Whether the button is in an enabled state. Default is true.
Returns: Options
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.accessibilityLabel
|
A short description of the button for use by screenreaders like VoiceOver. |
Full Usage:
this.backgroundColor
|
Button background color in hex format, i.e #ABCDEF. |
Full Usage:
this.click
|
Function to call when the button is clicked. |
Full Usage:
this.enabled
|
Whether the button is in an enabled state. Default is true. |
Full Usage:
this.icon
|
Button icon. |
Full Usage:
this.iconPosition
|
Can be left, right or overlay. Defaults to overlay. |
Full Usage:
this.label
|
Button text. |
fable-electron-docs-api