Class: SwitchLabel
Defined in: src/sdk/fmc/components/SwitchLabel.ts:25
A field for displaying a switch label.
Extends
EditableField<number,number>
Constructors
Constructor
new SwitchLabel(
page,options):SwitchLabel
Defined in: src/sdk/fmc/components/SwitchLabel.ts:29
Parameters
| Parameter | Type |
|---|---|
page | AbstractFmcPage |
options | Partial<SwitchLabelOptions> |
Returns
SwitchLabel
Inherit Doc
Overrides
Properties
isDisabled()
isDisabled: () =>
boolean
Defined in: src/sdk/fmc/components/FmcComponent.ts:57
Returns
boolean
Inherited from
options
protectedoptions:SwitchLabelOptions
Defined in: src/sdk/fmc/components/SwitchLabel.ts:26
Overrides
page
protectedpage:AbstractFmcPage
Defined in: src/sdk/fmc/components/SwitchLabel.ts:30
Inherited from
value
protectedvalue:null|number=null
Defined in: src/sdk/fmc/components/DisplayField.ts:30
Inherited from
valueChanged
protectedreadonlyvalueChanged:SubEvent<EditableField<number,number>,number>
Defined in: src/sdk/fmc/components/EditableField.ts:32
Inherited from
Accessors
rawValue
Get Signature
get
protectedrawValue():null|T
Defined in: src/sdk/fmc/components/DisplayField.ts:36
Gets the raw value of this display field
Returns
null | T
the value
Inherited from
Methods
bind()
bind(
subscribable):this
Defined in: src/sdk/fmc/components/EditableField.ts:47
Binds the input field to a mutable subscribable.
Parameters
| Parameter | Type | Description |
|---|---|---|
subscribable | Subscribable<number> | MutableSubscribable<number, number> | the mutable subscribable |
Returns
this
the instance of this EditableField
Inherited from
bindConsumer()
bindConsumer(
consumer,modifier):this
Defined in: src/sdk/fmc/components/EditableField.ts:63
Binds the input field to a Consumer.
Parameters
| Parameter | Type | Description |
|---|---|---|
consumer | Consumer<number> | the consumer to bind to (get) |
modifier | (value) => void | the modifier to use when the value is modified (set) |
Returns
this
the instance of this EditableField
Inherited from
bindSource()
bindSource(
source):this
Defined in: src/sdk/fmc/components/EditableField.ts:72
Binds the input field to a data interface.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | DataInterface<number, number> | the data interface |
Returns
this
the instance of this EditableField
Inherited from
getOptions()
getOptions():
DisplayFieldOptions
Defined in: src/sdk/fmc/components/FmcComponent.ts:124
Returns the component's options
Returns
The options.
Inherited from
handleSelectKey()
handleSelectKey(
event):Promise<string|boolean>
Defined in: src/sdk/fmc/components/FmcComponent.ts:80
Parameters
| Parameter | Type |
|---|---|
event | LineSelectKeyEvent |
Returns
Promise<string | boolean>
Inherit Doc
Inherited from
invalidate()
protectedinvalidate():void
Defined in: src/sdk/fmc/components/FmcComponent.ts:69
Invalidates the component and queues a re-render if one is not already queued
Returns
void
Inherited from
onHandleSelectKey()
onHandleSelectKey():
Promise<boolean>
Defined in: src/sdk/fmc/components/SwitchLabel.ts:86
Returns
Promise<boolean>
Inherit Doc
Overrides
EditableField.onHandleSelectKey
render()
render():
string
Defined in: src/sdk/fmc/components/SwitchLabel.ts:42
Renders the FMC component into an FmcRenderTemplateRow
Returns
string
Overrides
takeValue()
takeValue(
value,shouldInvalidate):void
Defined in: src/sdk/fmc/components/DisplayField.ts:60
Takes an input value, displays it and stores it
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
value | null | number | undefined | the new input value |
shouldInvalidate | boolean | false | whether or not to invalidate the page |
Returns
void