Class IgxMaskDirective

Hierarchy

Implements

  • OnInit
  • AfterViewChecked
  • ControlValueAccessor

Constructors

constructor

  • new IgxMaskDirective(elementRef: ElementRef, maskParser: MaskParsingService, renderer: Renderer2): IgxMaskDirective

Properties

displayValuePipe

displayValuePipe: PipeTransform

Specifies a pipe to be used on blur.

<input [displayValuePipe] = "displayFormatPipe">

focusedValuePipe

focusedValuePipe: PipeTransform

Specifies a pipe to be used on focus.

<input [focusedValuePipe] = "inputFormatPipe">

includeLiterals

includeLiterals: boolean

Specifies if the bound value includes the formatting symbols.

<input [includeLiterals] = "true">

mask

mask: string

Sets the input mask.

<input [igxMask] = "'00/00/0000'">

onValueChange

onValueChange: EventEmitter<IMaskEventArgs> = new EventEmitter<IMaskEventArgs>()

Emits an event each time the value changes. Provides rawValue: string and formattedValue: string as event arguments.

<input (onValueChange) = "onValueChange(rawValue: string, formattedValue: string)">

promptChar

promptChar: string = "_"

Sets the character representing a fillable spot in the input mask. Default value is "'_'".

<input [promptChar] = "'/'">

Accessors

placeholder

  • get placeholder(): string
  • set placeholder(val: string): void