LabeledCheckboxFormInput
geovisto-map / LabeledCheckboxFormInput
Class: LabeledCheckboxFormInput
This class represents basic checkbox sidebar input.
Author
Krystof Rykala
Author
Jiri Hynek - conversion to TypeScript
Extends
Constructors
new LabeledCheckboxFormInput()
new LabeledCheckboxFormInput(
props
):LabeledCheckboxFormInput
Parameters
• props: ILabeledCheckboxFormInputProps
Returns
Overrides
AbstractMapFormInput
.constructor
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:24
Properties
div?
private
optional
div:HTMLDivElement
The input element is created when required.
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:17
input?
private
optional
input:HTMLInputElement
Basic input is used.
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:22
Methods
create()
create():
HTMLDivElement
It returns input element.
Returns
HTMLDivElement
Overrides
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:42
createCheckbox()
protected
createCheckbox():HTMLInputElement
A help method which creates the checkbox HTML element.
Returns
HTMLInputElement
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:71
createLabel()
protected
createLabel():HTMLDivElement
A help method which creates the label HTML element.
Returns
HTMLDivElement
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:60
getProps()
protected
getProps():IMapFormInputProps
It provides the props to the exteded classes.
Returns
Inherited from
Source
model/internal/inputs/abstract/AbstractMapFormInput.ts:23
getValue()
getValue():
boolean
It returns the value of the input element.
Returns
boolean
Overrides
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:84
setDisabled()
setDisabled(
disabled
):void
It sets the input disabled.
Parameters
• disabled: boolean
Returns
void
Overrides
AbstractMapFormInput
.setDisabled
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:102
setValue()
setValue(
checked
):void
It sets value of the input element.
Parameters
• checked: boolean
Returns
void
Overrides
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:93
ID()
static
ID():string
Static function returns identifier of the input type.
Returns
string
Source
model/internal/inputs/labeled/checkbox/LabeledCheckboxFormInput.ts:35