MaxLengthValidator class
A Directive
adding minimum-length validator to controls with maxlength
.
<input ngControl="fullName" maxLength="10" />
- Implemented types
- Annotations
-
- @Directive(selector: '' '[maxlength][ngControl],' '[maxlength][ngFormControl],' '[maxlength][ngModel]', providers: [ExistingProvider.forToken(NG_VALIDATORS, MaxLengthValidator)])
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxLength → int
-
no setter
- maxlength ← int
-
no getter
- maxLengthAttr ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
AbstractControl c) → Map< String, dynamic> ? -
Returns a map of the errors associated with this control.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited