Comments (4)
@netstart could you provide an example please?
from ngx-mask.
for example for different lang
{'Ё': /[a-zA-Zа-яА-ЯёЁ]/}
this._maskAwaliablePatterns = {
'0': /\d/,
'9': /\d/,
'A': /[a-zA-Z0-9]/,
'S': /[a-zA-Z]/,
'Ё': /[a-zA-Zа-яА-ЯёЁ]/
};
from ngx-mask.
I think that would be something simple!
Add to directive
`
@input('maskOptionsPatterns')
maskOptionsPatterns: any = {};
ngAfterViewInit() {
this._maskAwaliablePatterns = Object.assign({}, this._maskAwaliablePatterns, this.maskOptionsPatterns);
}
`
And to input
[mask-options-patterns]="{ key: 'Ё': /[a-zA-Zа-яА-ЯёЁ]/}"
from ngx-mask.
@netstart @rodolfocop New version of ngx-mask available. You could check optional characters and other options
from ngx-mask.
Related Issues (20)
- nodejs+bun, lint-staged configuration
- ngx-mask Causes Input Form Controls to be Dirty and Touched on iOS Devices HOT 1
- Token for static pre-defined masks (like CPF_CNPJ)
- Keep decimal point while editing input with separator mask HOT 2
- Not possible to use backspace on first separator HOT 3
- Browser validation is not triggered when we have mask directive set, even if the mask does not have value
- Pre-commit fix. Remove bun lint from pre-commit. Lint-staged handles it but add stylelint fix to lint staged
- Unexpected behavior when pressing backspace
- ReferenceError: requestAnimationFrame is not defined at NgxMaskService2.applyMask HOT 1
- Optional custom pattern symbols do not work correctly after special characters HOT 1
- Bug: Backspace issue with floating numbers starting with 0 HOT 3
- Mask for date in format "d0/M0" not working as expected - impossible to set "month" value as 10,11 or 12 HOT 1
- bug by using mask=0{9} HOT 2
- Using mask separator.2 with decimal marker with comma is not functional
- Cursor improperly jumps when decimalMarker is set
- For support on masks such as email, A*@A*.A* does not work
- Can't delete minutes with backspace using hour mask
- ngx-mask thousand separator and decimalmarker throws ExpressionChangedAfterItHasBeenCheckedError when value changes dynamically and has ngModel
- adding the value of "00/00/0000" for the mask "M0/d0/0000" is considered valid?
- Leadzero has an infinity loop i.c.w. ngmodelChange and parsefloat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-mask.