Constructor
new SelectInstancePanel(formElementId, instances, objectSubstitute, arraySubstitute, booleanTranslateFunction, initialSelectedopt, selectAttributesopt, optionsopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
formElementId |
string | The |
||||||||||||||||||||||
instances |
Array | The array of JSON instances. |
||||||||||||||||||||||
objectSubstitute |
string | A string to be shown as choice in the case
of an option corresponding to a JSON Schema |
||||||||||||||||||||||
arraySubstitute |
string | A string to be shown as choice in the case
of an option corresponding to a JSON Schema |
||||||||||||||||||||||
booleanTranslateFunction |
function | A function that maps boolean values into strings. |
||||||||||||||||||||||
initialSelected |
number |
<optional> |
0 | The index of the option to appear as selected at initialization. |
||||||||||||||||||||
selectAttributes |
object |
<optional> |
{} | The parameters to consider as
attributes for the HTML Properties
|
||||||||||||||||||||
options |
object |
<optional> |
{} | Parameters considered to generate the component. Properties
|
- Implements:
- Source:
Members
domElement :HTMLDivElement
Reference to the DOM object that contains the HTML structure of the component.
Type:
- HTMLDivElement
- Inherited From:
- Implements:
- Source:
instances :Array
The array of selectable JSON instances.
Type:
- Array
- Source:
select :module:components~Select
The module:components~Select component.
Type:
- Source:
Methods
disable()
Disables the component.
- Inherited From:
- Implements:
- Source:
enable()
Enables the component.
- Inherited From:
- Implements:
- Source:
getId() → {any}
Returns the id
of the input control element.
- Implements:
- Source:
Returns:
The value taken by the component.
- Type
- any
getValue() → {any}
Returns the value assigned to the component.
- Implements:
- Source:
Returns:
The value taken by the component.
- Type
- any