ui-mask defines a input pattern and forces the user to put a value that fit with it.
For instance, with a mask set to (999) 999-9999
, the user will ony be able to put some values as (123) 456-7890
.
The mask definition considers these patterns:
A
Any letter.
9
Any number.
*
Any letter or number.
?
Make any part of the mask optional.
So, if you define a mask as AAAAA-AAAAA
, user can only write some hello-world
or qwert-yuiop
as value (Only letters).
The default placeholder char is the char that is used as “fill” in the input when it’s focused and the value is empty:
If you choose a mask AAAAA-AAAAA
and a default placeholder char _
(default), you will have _____-_____
when you focus input field.
If you choose a default placeholder char X
, you will have XXXXX-XXXXX
Related Posts:
- How to achieve pagination/table layout with Angular.js?
- typeerror cannot read property ‘data’ of undefined
- nodemon app crashed – waiting for file changes before starting
- Refused to display in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’
- Refused to display in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’
- How to format date in angularjs
- Angular-ui-router: ui-sref-active and nested states
- Unable to resolve dependency tree error when installing npm packages
- Understanding STATE in angularJS
- What is .$on() in AngularJS
- Significance of ng-repeat-start vs ng-repeat
- File Upload using AngularJS
- AngularJS : Prevent error $digest already in progress when calling $scope.$apply()
- AngularJS BootstrapUI Typeahead with object & selection functionality
- angular.service vs angular.factory
- How do I store data in local storage using Angularjs?
- What is .$on() in AngularJS
- `ui-router` $stateParams vs. $state.params
- Simple Popup by using Angular JS
- $apply already in progress error
- Why do i have to call $scope.$digest() here?
- ng-repeat :filter by single field
- What is deep linking in AngularJS?
- Difference between onLoad and ng-init in angular
- How do I fix the npm UNMET PEER DEPENDENCY warning?
- Submit form on pressing Enter with AngularJS
- How to pass parameters using ui-sref in ui-router to controller
- How to $state.go()
- AngularJS ng-disabled directive with expression is not working
- With ng-bind-html-unsafe removed, how do I inject HTML?
- How to filter a select with ng-options in Angular?
- Response for preflight has invalid HTTP status code 403 on angular post request
- Angular js is front end or backend?
- AngularJS Folder Structure
- Bare minimum code for AngularJS Carousel
- AngularJS $watch vs $watchCollection: which is better for performance?
- Angular.js: How does $eval work and why is it different from vanilla eval?
- angular.element vs document.getElementById or jQuery selector with spin (busy) control
- Angularjs ng-view does not work
- getting the ng-object selected with ng-change
- AngularJS For Loop with Numbers & Ranges
- Why is .then not a function?
- How do I filter an array with AngularJS and use a property of the filtered object as the ng-model attribute?
- In AngularJS, what’s the difference between ng-pristine and ng-dirty?
- AngularJS Modal Popup
- Why do we use $rootScope.$broadcast in AngularJS?
- how to use ng-option to set default value of select element
- What does ngInject do in the following piece of code?
- AngularJS: how to implement a simple file upload with multipart form?
- How do I build a graphical user interface in C++? [closed]
- How to get all place details from a Place Details Request using Google Places API Web Service?
- SyntaxError: Unexpected token o in JSON at position 1
- SyntaxError: Unexpected token o in JSON at position 1
- AngularJS- Login and Authentication in each route and controller
- TypeError: Cannot read property ‘then’ of undefined
- AngularJS : Factory and Service?
- AngularJS ngClass conditional
- trying to fix java Exception in thread “JavaFX Application Thread” java.lang.NullPointerException
- Angular JS Uncaught Error: [$injector:modulerr]
- How can I group data with an Angular filter?
- Definition of ui-sref in Angular.js?
- SVN admin management GUI tool
- How to center the text in a JLabel?
- How to use Java AWT setBackground
- How can I do GUI programming in C?
- How to connect signalR from angularJs
- Array Mapping in AngularJs
- AngularJS errors: Blocked loading resource from url not allowed by $sceDelegate policy
- Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.youtube.com !== http://localhost:9000
- make a JLabel wrap it’s text by setting a max width
- How to redirect to another page using AngularJS?
- How npm start runs a server on port 8000
- Why is this simple AngularJS ng-show not working?
- How can I set size of a button?
- $http.get(…).success is not a function
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- What do you think about custom designed plugin/theme options UIs?
- How to set back-end language per user?
- Prevent Selected Terms Rising to the Top
- How to write files in hosting in admin dashboard?
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- WordPress Admin Interface not styled properly
- How can I show more than 15 themes at a time in the admin menu?
- How do I insert the smaller variant of an image?
- Reorder “menu order” of attachments to another predefined order
- Is there no admin ui guide for 4.x?
- Performance optimization of tree like structure
- UI for taxonomies & query vars
- Is there a plugin for feedback like Kissmetrics available? [closed]
- How can I include active content in a custom post type?
- Change menu order of core post-type in UI?
- Interface needed to transfer contents in a table on a web page to the Add New Product interface
- Uploading website to live causing problems to plug-in and layout
- Why does appear? I’m trying to remove a generic link called navigation on my main menu
- How to remove UI access to Custom Post Type using direct links?
- Split post edit screen into sub-edit screens for users, is this good or bad, and is it possible?
- Displaying the custom taxonomies side by side on the admin dashboard
- Plugin link does not appear in my toolbar
- Post UI Tabs plugin double fade effect
- Best approach of implementing multi-select/checkboxes for taxonomies?