Dojo NG is being built in the open, one section at a time — follow along on Heptapod.

API REFERENCE · FORM CONTROLS

<dj-constrained-input>

A text input with a custom validator function: (value) => string | undefined returning an error message (or undefined when valid). Applied through native constraint validation, so it participates in form validity. (Dojo's rule-DSL ValidationRules is deferred; supply a function for now.)

Try it in the playground

@dojo-ng/constrained-input · v0.1.1

npm install @dojo-ng/constrained-input

import "@dojo-ng/constrained-input";

Properties

PropertyAttributeTypeDefault
validatorCustom validator; return an error message, or undefined/empty when valid. Property only (value: string) => string | undefined None