Validator

An uxiverse.com type

The root class for all validators. They take in an uxi:input, evaluate it and create a uxi:result, which should be a boolean by default

PropertyExpected TypeDescription
resultA result is an outcome property that's immediately evaluated. It can be used to tell the user what consequences their actions will have. E.g. the result in a currency calculator app, completed user profile data as a result of editing, or a fulfilled workflow after performing a sequence of tasks (before submitting). Technically, results should be treated as immediate/synchronous outcomes, compare with uxi:output for side-effects/asynchronous handling.
ContextPropertyElementA property that holds the context a UI element is in
DescriptionFlagElementFlags to express that a UI element describes something, e.g. isHelp, isContent, isProgress
HierarchyFlaghttps://schema.org/BooleanFlags that express a hierarchical position on an element
NavigationPropertyElementA property that holds the navigation on a UI element, e.g. menu, settings
OutcomePropertyA property that holds a result, output or status
a11yElementProperties related to accessibility
inputInput is the value/parameter/prop that gets passed to an element in the UX, and can be empty. This applies to visual as well as non-visual elements.
isInUseByWhen people collaboratively work, the property isInUseBy can be used to make an element non-editable until it is set free. Showing where other users are can also prevent conflicting edits.
isUsableByTo handle which User, Role or Group can use an Element of the UI, the property isUsableBy can be used to grey out parts of the interface, or hide them entirely.

Instances of "Validator" may appear as a value for the following properties

PropertyOn TypeDescription
inputTriggerValidatorThe input trigger validator can be used with side-effect handlers, so that they only trigger when the input is valid.
Types with close relationship to "Validator":