Interface: GtcListButtonProps
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/List/GtcListButton.tsx:9
The props for GtcListButton.
Extends
Omit<GtcListItemProps,"class">.Pick<GtcTouchButtonProps,"isEnabled"|"isHighlighted"|"onPressed"|"label"|"gtcOrientation">
Properties
children?
optionalchildren:DisplayChildren[]
Defined in: sdk/components/FSComponent.ts:122
The children of the display component.
Inherited from
Omit.children
fullSizeButton?
optionalfullSizeButton:boolean
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/List/GtcListButton.tsx:17
Whether the button should fill the entire list item. Overrides hideBorder to be true when true. Defaults to false.
gtcOrientation?
optionalgtcOrientation:GtcOrientation
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcTouchButton.tsx:34
The orientation of the button's parent GTC. Used to set the button's inhibit on drag threshold unless otherwise
specified by the dragThresholdPx prop. Defaults to 'horizontal'.
Inherited from
Pick.gtcOrientation
hideBorder?
optionalhideBorder:boolean|Subscribable<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/List/GtcListItem.tsx:14
Hides the list item border, allowing the content to easily fill the entire space of the list-item. Defaults to false.
Inherited from
Omit.hideBorder
isEnabled?
optionalisEnabled:boolean|Subscribable<boolean>
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:79
Whether the button is enabled, or a subscribable which provides it. Disabled buttons cannot be touched, primed,
pressed, or held. Defaults to true.
Inherited from
Pick.isEnabled
isHighlighted?
optionalisHighlighted:boolean|Subscribable<boolean>
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:82
Whether the button is highlighted, or a subscribable which provides it. Defaults to false.
Inherited from
Pick.isHighlighted
label?
optionallabel:string|VNode|Subscribable<string>
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:94
The label for the button. Can be defined as either a static string, a subscribable which provides the label
string, or a VNode. If not defined, the button will not have a label.
If the label is defined as a VNode, all first-level DisplayComponents in the VNode tree will be destroyed when the button is destroyed.
Inherited from
Pick.label
listItemClasses?
optionallistItemClasses:string|ToggleableClassNameRecord|SubscribableSet<string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/List/GtcListButton.tsx:23
CSS class(es) to apply to the list item div element.
onDestroy()?
optionalonDestroy: () =>void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/List/GtcListButton.tsx:20
A callback function to execute when the list item is destroyed.
Returns
void
Overrides
Omit.onDestroy
onPressed()?
optionalonPressed: <B>(button,isHeld) =>void
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:109
A callback function which will be called every time the button is pressed.
Type Parameters
| Type Parameter | Default type |
|---|---|
B extends TouchButton<TouchButtonProps> | TouchButton<TouchButtonProps> |
Parameters
| Parameter | Type | Description |
|---|---|---|
button | B | The button that was pressed. |
isHeld | boolean | Whether the button was held when it was pressed. |
Returns
void
Inherited from
Pick.onPressed
paddedListItem?
optionalpaddedListItem:boolean|Subscribable<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/List/GtcListItem.tsx:20
Adds some default, commonly used padding to the list item. Defaults to false.
Inherited from
Omit.paddedListItem
ref?
optionalref:NodeReference<any>
Defined in: sdk/components/FSComponent.ts:125
A reference to the display component.
Inherited from
Omit.ref
touchButtonClasses?
optionaltouchButtonClasses:string|SubscribableSet<string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/List/GtcListButton.tsx:26
CSS class(es) to apply to the list item div element.