Skip to content

Masks

@tsed/schema-formio

Usage

typescript
import { Masks } from "@tsed/schema-formio";

See /packages/third-parties/schema-formio/src/types/decorators/mask.ts.

Overview

ts
function Masks(...inputMasks: {
    label: string;
    mask: string;
}[]): PropertyDecorator;

Description

An input mask helps the user with input by ensuring a predefined format.

  • 9: numeric
  • a: alphabetical
  • *: alphanumeric

Example telephone mask: (999) 999-9999

See the jquery.inputmask documentation for more information.

label

ts
label: string;

mask

ts
mask: string;

Released under the MIT License.