mmo-type
1 symbol · generated 30 Sep 2026
mmo-type-select
mmo-type.jhs:1Type element to select a type and add constraints to it
Index
| init() | ||
| toSchema() | Convert the type element to a schema | |
| fromSchema(schema) | Convert a schema to the type element | |
| getPrimitiveType() | Get the primitive type of the type element | |
| getType() | Get the type of the type element | |
| addConstraint(type, value) | Add a constraint to the type element | |
| removeConstraint(event) | Remove a constraint from the type element | |
| typeChange(event) | Change the type of the type element | |
| constraintChange(event) | Change the constraint of the type element | |
| checkValidity() | Check the validity of the type element |
Methods10
init()
mmo-type.jhs:62toSchema()
mmo-type.jhs:85Convert the type element to a schema
| returns | object | The schema |
fromSchema(schema)
mmo-type.jhs:112Convert a schema to the type element
| schema | object | - The schema |
getPrimitiveType()
mmo-type.jhs:148Get the primitive type of the type element
| returns | string | The primitive type |
getType()
mmo-type.jhs:157Get the type of the type element
| returns | string | The type |
addConstraint(type, value)
mmo-type.jhs:167Add a constraint to the type element
| type = null | string | - The type of the constraint |
| value = null | string | - The value of the constraint |
| returns | object | The view of the constraint |
removeConstraint(event)
mmo-type.jhs:196Remove a constraint from the type element
| event | Event | - The event |
typeChange(event)
mmo-type.jhs:206Change the type of the type element
| event | Event | - The event |
constraintChange(event)
mmo-type.jhs:216Change the constraint of the type element
| event | Event | - The event |
checkValidity()
mmo-type.jhs:243Check the validity of the type element
| returns | boolean | The validity |