Interface: ListButtonProps
Defined in: workingtitle-instruments-epic2/shared/Components/List/ListButton.tsx:7
The props for ListButton.
Extends
Omit<ListItemProps,"class">.Pick<TouchButtonProps,"isEnabled"|"isHighlighted"|"onPressed"|"label">
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-epic2/shared/Components/List/ListButton.tsx:15
Whether the button should fill the entire list item. Overrides hideBorder to be true when true. Defaults to false.
hideBorder?
optionalhideBorder:boolean|Subscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/List/ListItem.tsx:13
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: workingtitle-instruments-epic2/shared/Components/TouchButton.tsx:85
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: workingtitle-instruments-epic2/shared/Components/TouchButton.tsx:92
Whether the button is highlighted, or a subscribable which provides it.
When true, the touch-button-highlight css class will be applied, making the button cyan with black font.
Defaults to false.
Inherited from
Pick.isHighlighted
isVisible?
optionalisVisible:boolean|Subscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/List/ListItem.tsx:22
Controls the list item's visibility. Defaults to true.
Inherited from
Omit.isVisible
label?
optionallabel:string|VNode|Subscribable<string>
Defined in: workingtitle-instruments-epic2/shared/Components/TouchButton.tsx:111
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|SubscribableSet<string>
Defined in: workingtitle-instruments-epic2/shared/Components/List/ListButton.tsx:21
CSS class(es) to apply to the list item div element.
onDestroy()?
optionalonDestroy: () =>void
Defined in: workingtitle-instruments-epic2/shared/Components/List/ListButton.tsx:18
A callback function to execute when the list item is destroyed.
Returns
void
Overrides
Omit.onDestroy
onPressed()?
optionalonPressed: <B>(button,isHeld) =>void
Defined in: workingtitle-instruments-epic2/shared/Components/TouchButton.tsx:126
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-epic2/shared/Components/List/ListItem.tsx:19
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-epic2/shared/Components/List/ListButton.tsx:24
CSS class(es) to apply to the list item div element.