Interface: NumberDisplayProps<F>
Defined in: workingtitle-instruments-epic2/shared/Components/NumberDisplays/NumberDisplay.tsx:9
Component props for NumberDisplay.
Extends
Type Parameters
Type Parameter |
---|
F extends string |
Properties
children?
optional
children:DisplayChildren
[]
Defined in: sdk/components/FSComponent.ts:122
The children of the display component.
Inherited from
class?
optional
class:string
|ToggleableClassNameRecord
|SubscribableSet
<string
>
Defined in: workingtitle-instruments-epic2/shared/Components/NumberDisplays/NumberDisplay.tsx:23
CSS class(es) to add to the root of the icon component.
displayUnit
displayUnit:
null
|Unit
<F
> |Subscribable
<null
|Unit
<F
>>
Defined in: workingtitle-instruments-epic2/shared/Components/NumberDisplays/NumberDisplay.tsx:17
The unit type in which to display the value, or a subscribable which provides it. If the unit is null
, then the
native type of the value is used instead.
formatter()
formatter: (
number
) =>string
Defined in: workingtitle-instruments-epic2/shared/Components/NumberDisplays/NumberDisplay.tsx:20
A function which formats numbers.
Parameters
Parameter | Type |
---|---|
number | number |
Returns
string
ref?
optional
ref:NodeReference
<any
>
Defined in: sdk/components/FSComponent.ts:125
A reference to the display component.
Inherited from
value
value:
NumberUnitInterface
<F
,Unit
<F
>> |Subscribable
<NumberUnitInterface
<F
,Unit
<F
>>>
Defined in: workingtitle-instruments-epic2/shared/Components/NumberDisplays/NumberDisplay.tsx:11
The NumberUnitInterface value to display, or a subscribable which provides it.