ngx-input-masker
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

NgxInputMakser

How to use

@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...
    NgxInputMaskerModule,
  ],
  providers: [...],
  bootstrap: [...]
})
    <input
         NgxInputMasker="&#10052;"
         [customContainerSettings]="{}"
         [customMaskSettings]="{}"
        [containerClass] = 'maskerContainer'
>

Inputs :

  1. NgxInputMasker: string
  2. customContainerSettings: CSSStyleDeclaration
  3. customMaskSettings: CSSStyleDeclaration
  4. containerClass: string

customContainerSettings

These are the styles for the container of the div created ontop of the input field. any css styling that can be applied to a div can be applied here.

Note: The div is outside of the angular scope

customMaskSettings

These are the styles for special char created as a span element Note: The span is outside of the angular scope

DEMO :

alt text

/ngx-input-masker/

    Package Sidebar

    Install

    npm i ngx-input-masker

    Weekly Downloads

    0

    Version

    1.0.2

    License

    none

    Unpacked Size

    106 kB

    Total Files

    17

    Last publish

    Collaborators

    • hopemanryan