Constructor
new H5EnumType(code, levels)
Parameters:
Name | Type | Description |
---|---|---|
code |
string | String specifying the integer type for the codes.
This should be |
levels |
Array | object | Array of unique strings containing the names of the levels. The position of each string in this array is used as the integer code for each level. Alternatively, an object where each key is the name of a level and each value is the corresponding integer code. |
Classes
Members
code :string
Integer type for the codes.
Type:
- string
levels :object
Mapping from level names (keys) and the corresponding integer code (values).evels.
Type:
- object