ngx-input-masker
v1.0.2
Published
```typescript @NgModule({ declarations: [ ... ], imports: [ ... NgxInputMaskerModule, ], providers: [...], bootstrap: [...] })
Downloads
4
Readme
NgxInputMakser
How to use
@NgModule({
declarations: [
...
],
imports: [
...
NgxInputMaskerModule,
],
providers: [...],
bootstrap: [...]
})
<input
NgxInputMasker="❄"
[customContainerSettings]="{}"
[customMaskSettings]="{}"
[containerClass] = 'maskerContainer'
>
Inputs :
- NgxInputMasker: string
- customContainerSettings: CSSStyleDeclaration
- customMaskSettings: CSSStyleDeclaration
- 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