Interface: GtcWaypointSelectButtonProps<T, S>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:51
Component props for GtcWaypointSelectButton.
Extends
Omit<GtcWaypointButtonProps,"waypoint"|"onPressed"|"gtcOrientation">
Type Parameters
| Type Parameter |
|---|
T extends WaypointSelectType |
S extends Subscribable<WaypointSelectTypeMap[T] | null> |
Properties
children?
optionalchildren:DisplayChildren[]
Defined in: sdk/components/FSComponent.ts:122
The children of the display component.
Inherited from
Omit.children
class?
optionalclass:string|SubscribableSet<string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:90
The CSS class(es) to apply to the button's root element.
Overrides
Omit.class
dragThresholdPx?
optionaldragThresholdPx:number
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:156
The distance, in pixels, the mouse can click and drag before the pad begins to ignore mouse events. Ignored if
inhibitOnDrag is false. Defaults to 40 pixels.
Inherited from
Omit.dragThresholdPx
focusOnDrag?
optionalfocusOnDrag:boolean
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcTouchButton.tsx:16
Whether the pad should focus all mouse events when dragging, preventing them from bubbling up to any ancestors
in the DOM tree. Defaults to true.
Inherited from
Omit.focusOnDrag
gtcService
gtcService:
GtcService
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:55
The GTC service.
inhibitOnDrag?
optionalinhibitOnDrag:boolean
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:150
Whether the button should stop responding to mouse events and instead forward them to its parent after clicking
and dragging for a certain distance defined by dragThresholdPx along the axis defined by inhibitOnDragAxis.
When mouse events are inhibited, the button cannot be primed or held. Defaults to false.
Inherited from
Omit.inhibitOnDrag
inhibitOnDragAxis?
optionalinhibitOnDragAxis:"both"|"x"|"y"
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:162
The axis along which dragging will trigger the inhibit function. Ignored if inhibitOnDrag is false.
Defaults to 'both'.
Inherited from
Omit.inhibitOnDragAxis
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
Omit.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
Omit.isHighlighted
isInList?
optionalisInList:boolean
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcTouchButton.tsx:22
Whether the button is in a scrollable list. If true, will enable the inhibit on drag function unless otherwise
specified by the inhibitOnDrag prop. Defaults to false.
Inherited from
Omit.isInList
isVisible?
optionalisVisible:boolean|Subscribable<boolean>
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:85
Whether the button is visible. Defaults to true.
Inherited from
Omit.isVisible
listScrollAxis?
optionallistScrollAxis:"x"|"y"
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcTouchButton.tsx:28
The scroll axis of the button's parent list. Ignored if isInList is false. Sets the button's inhibit on drag
axis unless otherwise specified by the inhibitOnDragAxis prop. Defaults to y.
Inherited from
Omit.listScrollAxis
nullIdent?
optionalnullIdent:string|Subscribable<string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/Waypoint/GtcWaypointDisplay.tsx:17
The string to display in place of the ident when the displayed waypoint is null. Defaults to the empty string.
Inherited from
Omit.nullIdent
nullLabel?
optionalnullLabel:string|Subscribable<string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointButton.tsx:16
Label to display on the button when waypoint is null.
Inherited from
Omit.nullLabel
nullName?
optionalnullName:string|Subscribable<string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/Waypoint/GtcWaypointDisplay.tsx:20
The string to display in place of the name when the displayed waypoint is null. Defaults to the empty string.
Inherited from
Omit.nullName
onCancelled()?
optionalonCancelled: <B>(button,waypointState) =>void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:84
A callback function which will be called every time a waypoint selection from the button is cancelled.
Type Parameters
| Type Parameter | Default type |
|---|---|
B extends GtcWaypointSelectButton<T, S> | GtcWaypointSelectButton<T, S> |
Parameters
| Parameter | Type | Description |
|---|---|---|
button | B | The button used to initiate the selection that was cancelled. |
waypointState | S | The waypoint state bound to the button. |
Returns
void
onDestroy()?
optionalonDestroy: () =>void
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:165
A callback function which will be called when the button is destroyed.
Returns
void
Inherited from
Omit.onDestroy
onHoldEnded()?
optionalonHoldEnded: <B>(button,totalHoldDuration,endReason) =>void
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:137
A function which is called when the button exits the held state.
Type Parameters
| Type Parameter | Default type |
|---|---|
B extends TouchButton<TouchButtonProps> | TouchButton<TouchButtonProps> |
Parameters
| Parameter | Type | Description |
|---|---|---|
button | B | The button that was held. |
totalHoldDuration | number | The total amount of time, in milliseconds, that the button was held. |
endReason | TouchButtonHoldEndReason | The reason that the button exited the held state. |
Returns
void
Inherited from
Omit.onHoldEnded
onHoldStarted()?
optionalonHoldStarted: <B>(button) =>TouchButtonHoldAction
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:117
A function which is called when the button enters the held state. If not defined, then the button will default to taking no specific action when it enters the held state.
Type Parameters
| Type Parameter | Default type |
|---|---|
B extends TouchButton<TouchButtonProps> | TouchButton<TouchButtonProps> |
Parameters
| Parameter | Type | Description |
|---|---|---|
button | B | The button that is held. |
Returns
The action to take. Ignored if the value is equal to TouchButtonHoldAction.EndHold.
Inherited from
Omit.onHoldStarted
onHoldTick()?
optionalonHoldTick: <B>(button,dt,totalTime,timeSinceLastPress) =>TouchButtonHoldAction
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:129
A function which is called every frame when the button is held. If not defined, then the button will default to taking no specific action with each frame tick.
Type Parameters
| Type Parameter | Default type |
|---|---|
B extends TouchButton<TouchButtonProps> | TouchButton<TouchButtonProps> |
Parameters
| Parameter | Type | Description |
|---|---|---|
button | B | The button that is held. |
dt | number | The elapsed time, in milliseconds, since the previous frame. |
totalTime | number | The total amount of time, in milliseconds, that the button has been held. |
timeSinceLastPress | number | The amount of time, in milliseconds, that the button has been held since the last time the button was pressed as a tick action. |
Returns
The action to take.
Inherited from
Omit.onHoldTick
onSelected()?
optionalonSelected: <B>(selectedWaypoint,waypointState,button) =>void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:73
A callback function which will be called every time a value is selected from the list. If not defined and the button's bound waypoint state is a mutable subscribable, the bound state will be set to the selected waypoint.
Type Parameters
| Type Parameter | Default type |
|---|---|
B extends GtcWaypointSelectButton<T, S> | GtcWaypointSelectButton<T, S> |
Parameters
| Parameter | Type | Description |
|---|---|---|
selectedWaypoint | WaypointSelectTypeMap[T] | The waypoint that was selected. |
waypointState | S | The waypoint state bound to the button. |
button | B | The button used to initiate the selection. |
Returns
void
onTouched()?
optionalonTouched: <B>(button) =>TouchButtonOnTouchedAction
Defined in: garminsdk/components/touchbutton/TouchButton.tsx:102
A callback function which will be called every time the button is touched (i.e. a mouse down event on the button is detected). If not defined, then the button will default to entering the primed state when touched.
Type Parameters
| Type Parameter | Default type |
|---|---|
B extends TouchButton<TouchButtonProps> | TouchButton<TouchButtonProps> |
Parameters
| Parameter | Type | Description |
|---|---|---|
button | B | The button that was touched. |
Returns
The action to take as a result of the button being touched.
Inherited from
Omit.onTouched
ref?
optionalref:NodeReference<any>
Defined in: sdk/components/FSComponent.ts:125
A reference to the display component.
Inherited from
Omit.ref
type
type:
T
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:58
The type of facility allowed to be selected by the button.
waypoint
waypoint:
S
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:61
The waypoint state bound to the button.
waypointCache
waypointCache:
GarminFacilityWaypointCache
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/TouchButton/GtcWaypointSelectButton.tsx:64
A cache used by the button to retrieve waypoints for facilities.