Spec-Zone.ru › Angular

maxLengthError

Create a maxLength error associated with the target field

API

function maxLengthError(
  maxLength: number,
  options: WithFieldTree<ValidationErrorOptions>,
): MaxLengthValidationError;
function maxLengthError(
  maxLength: number,
  options?: ValidationErrorOptions | undefined,
): WithoutFieldTree<MaxLengthValidationError>;
function maxLengthError(maxLength: number, options: WithFieldTree<ValidationErrorOptions>): MaxLengthValidationError;

Create a maxLength error associated with the target field

@parammaxLengthnumber

The maxLength constraint

@paramoptionsWithFieldTree<ValidationErrorOptions>

The validation error options

@returnsMaxLengthValidationError
function maxLengthError(maxLength: number, options?: ValidationErrorOptions | undefined): WithoutFieldTree<MaxLengthValidationError>;

Create a maxLength error

@parammaxLengthnumber

The maxLength constraint

@paramoptionsValidationErrorOptions | undefined

The optional validation error options

@returnsWithoutFieldTree<MaxLengthValidationError>

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/maxLengthError

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API