Index

mmo-type

1 symbol · generated 30 Sep 2026

view

mmo-type-select

mmo-type.jhs:1

Type element to select a type and add constraints to it

<view id="mmo-type-select">…</view>

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

toSchema()

mmo-type.jhs:85

Convert the type element to a schema

toSchema()
returnsobjectThe schema

fromSchema(schema)

mmo-type.jhs:112

Convert a schema to the type element

fromSchema(schema)
schemaobject- The schema

getPrimitiveType()

mmo-type.jhs:148

Get the primitive type of the type element

getPrimitiveType()
returnsstringThe primitive type

getType()

mmo-type.jhs:157

Get the type of the type element

getType()
returnsstringThe type

addConstraint(type, value)

mmo-type.jhs:167

Add a constraint to the type element

addConstraint(type = null, value = null)
type = nullstring- The type of the constraint
value = nullstring- The value of the constraint
returnsobjectThe view of the constraint

removeConstraint(event)

mmo-type.jhs:196

Remove a constraint from the type element

removeConstraint(event)
eventEvent- The event

typeChange(event)

mmo-type.jhs:206

Change the type of the type element

typeChange(event)
eventEvent- The event

constraintChange(event)

mmo-type.jhs:216

Change the constraint of the type element

constraintChange(event)
eventEvent- The event

checkValidity()

mmo-type.jhs:243

Check the validity of the type element

checkValidity()
returnsbooleanThe validity