Interface: SoftKeyMenuItem
Defined in: src/garminsdk/softkey/SoftKeyMenu.ts:8
A Garmin softkey menu item. Defines the display and behavior of a softkey.
Properties
disabled
readonlydisabled:Subject<boolean>
Defined in: src/garminsdk/softkey/SoftKeyMenu.ts:17
Whether this menu item is disabled.
handler()?
optionalhandler: (menu) =>void
Defined in: src/garminsdk/softkey/SoftKeyMenu.ts:14
The handler to invoke when this menu item is pressed.
Parameters
| Parameter | Type |
|---|---|
menu | SoftKeyMenu |
Returns
void
highlighted
readonlyhighlighted:Subject<boolean>
Defined in: src/garminsdk/softkey/SoftKeyMenu.ts:26
Whether this menu item is highlighted.
label
readonlylabel:Subject<string>
Defined in: src/garminsdk/softkey/SoftKeyMenu.ts:11
The label for this menu item.
pressed
readonlypressed:SubEvent<SoftKeyMenu,void>
Defined in: src/garminsdk/softkey/SoftKeyMenu.ts:20
An event that fires when this menu item is pressed.
value
readonlyvalue:Subject<undefined|string|boolean>
Defined in: src/garminsdk/softkey/SoftKeyMenu.ts:23
The value of this menu item, if any.