๐ - Support dynamic mask
splincode opened this issue ยท 0 comments
splincode commented
Which package(s) are relevant/related to the feature request?
@maskito/kit
Description
Dynamic mask automatically selects appropriate mask from provided array of masks. Mask with the largest number of fitting characters is selected considering provided masks order.
<input name="color" [maskito]="maskitoOptions" />
class Example {
readonly maskitoOptions = [
{ mask: ['#', ...new Array(6).fill(/[0-9a-f]/i)] },
{ mask: /^rgb\((\d+),(\d+),(\d+)\)$/ },
];
}
What do you think?