• 개요
@angular/forms/signals

maxLengthError

함수
안정화v22.0부터

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>;

Create a maxLength error associated with the target field

@parammaxLengthnumber

The maxLength constraint

@paramoptionsWithFieldTree<ValidationErrorOptions>

The validation error options

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

Create a maxLength error

@parammaxLengthnumber

The maxLength constraint

@paramoptionsValidationErrorOptions | undefined

The optional validation error options

상세 내용으로 이동