Skip to content

Mask

@tsed/schema-formio

Usage

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

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

Overview

ts
function Mask(inputMask: string, inputMaskPlaceholderChar?: 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.

Released under the MIT License.