Skip to content

Commit

Permalink
fix(demo-integrations): added attribute maskitoElement
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanslav Zaytsev committed Feb 28, 2024
1 parent 2797193 commit 43b47d0
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import {Component, EventEmitter, Input, Output} from '@angular/core';
import {MaskitoDirective} from '@maskito/angular';
import {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core';
import {
MASKITO_DEFAULT_ELEMENT_PREDICATE,
MaskitoElementPredicate,
MaskitoOptions,
} from '@maskito/core';

@Component({
standalone: true,
Expand All @@ -9,6 +13,7 @@ import {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core';
<input
[attr.value]="initialValue"
[maskito]="maskitoOptions"
[maskitoElement]="maskitoElementPredicate"
(input)="input.emit($event)"
/>
`,
Expand All @@ -21,7 +26,7 @@ export class TestInput {
maskitoOptions: MaskitoOptions | null = null;

@Input()
maskitoElementPredicate: MaskitoElementPredicate | null = null;
maskitoElementPredicate: MaskitoElementPredicate = MASKITO_DEFAULT_ELEMENT_PREDICATE;

@Output()
input = new EventEmitter();
Expand Down

0 comments on commit 43b47d0

Please sign in to comment.