mmo-validity
1 symbol · generated 30 Sep 2026
mmo-validity
mmo-validity.jhs:1Validity element to display a validity of the elements inside the mmo-validity
- Extends
- CustomShadowElement
Index
| readonly | if true, the validity is set as readonly | |
| readonly accessor | Get the readonly of the validity | |
| validity readonly accessor | Get the validity of the validity | |
| willValidate readonly accessor | Get the will validate of the validity | |
| invalidElements readonly accessor | Get the invalid elements of the validity | |
| constructor() | ||
| init() | ||
| getChangeEvent(node) | Get the change event of the element | |
| onElementChange(element, updateMessage) | On element change | |
| forceValid() | Clear every recorded failure, so the control reads as valid until it is checked again. | |
| update() | Update the validity of the element | |
| updateMessage(forceValid) | Update the message of the validity | |
| checkValidity() | Check the validity of the validity | |
| (default) | the controls being validated | |
| .invalid | add a text to the validity |
Attributes1
readonly
mmo-validity.jhsif true, the validity is set as readonly
readonly
Properties4
readonly
accessormmo-validity.jhs:183Get the readonly of the validity
- Type
boolean
validity
readonlyaccessormmo-validity.jhs:207Get the validity of the validity
- Type
object
willValidate
readonlyaccessormmo-validity.jhs:230Get the will validate of the validity
- Type
boolean
invalidElements
readonlyaccessormmo-validity.jhs:238Get the invalid elements of the validity
- Type
array
Methods8
constructor()
mmo-validity.jhs:23init()
mmo-validity.jhs:42getChangeEvent(node)
mmo-validity.jhs:52Get the change event of the element
| node | Element | - The element |
| returns | string | The change event |
onElementChange(element, updateMessage)
mmo-validity.jhs:61On element change
| element | Element | - The element |
| updateMessage = true | boolean | - Whether to update the message |
forceValid()
mmo-validity.jhs:93Clear every recorded failure, so the control reads as valid until it is checked again.
| returns | void |
update()
mmo-validity.jhs:109Update the validity of the element
updateMessage(forceValid)
mmo-validity.jhs:149Update the message of the validity
| forceValid = false |
checkValidity()
mmo-validity.jhs:222Check the validity of the validity
| returns | boolean | The validity |
Slots1
(default)
mmo-validity.jhsthe controls being validated
<slot>
CSS hooks1
.invalid
mmo-validity.jhsadd a text to the validity
.invalid