{"action":"opened","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/149","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/149/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/149/events","html_url":"https://github.com/formly-js/angular-formly/issues/149","id":54105105,"number":149,"title":"Support for specifying mask expressions to fields through the integration with angular-ngMask","user":{"login":"AlessandroGurgel","id":4894233,"avatar_url":"https://avatars.githubusercontent.com/u/4894233?v=3","gravatar_id":"","url":"https://api.github.com/users/AlessandroGurgel","html_url":"https://github.com/AlessandroGurgel","followers_url":"https://api.github.com/users/AlessandroGurgel/followers","following_url":"https://api.github.com/users/AlessandroGurgel/following{/other_user}","gists_url":"https://api.github.com/users/AlessandroGurgel/gists{/gist_id}","starred_url":"https://api.github.com/users/AlessandroGurgel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlessandroGurgel/subscriptions","organizations_url":"https://api.github.com/users/AlessandroGurgel/orgs","repos_url":"https://api.github.com/users/AlessandroGurgel/repos","events_url":"https://api.github.com/users/AlessandroGurgel/events{/privacy}","received_events_url":"https://api.github.com/users/AlessandroGurgel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-12T20:52:54Z","updated_at":"2015-01-12T20:52:54Z","closed_at":null,"body":"I was wondering why formly does not support the specification of masks (i.e. HH:MM:SS or dd/mm/yyyy) for form fields. \r\n\r\nActually, I am using the formly last release (1.0.0) and I implemented this feature through the steps\r\n\r\n1- includes ng-Mask into the project (bower.json)\r\n\"angular-ngMask\": \"3.0.8\"\r\n2- creates a template similar to form-field-text including the attribute mask\r\n<div class=\"form-group\"\r\n     ng-class=\"{'has-error': options.formField.$invalid}\">\r\n\t<label for=\"{{id}}\">\r\n\t\t{{options.label || 'Text'}}\r\n\t\t{{options.required ? '*' : ''}}\r\n\t\t{{options.mask}}\r\n\t</label>\r\n\t<input type=\"text\"\r\n\t       class=\"form-control\"\r\n\t       id=\"{{id}}\"\r\n\t       formly-dynamic-name=\"options.key\"\r\n\t       formly-custom-validation=\"options.validators\"\r\n\t       placeholder=\"{{options.placeholder}}\"\r\n\t       aria-describedby=\"{{id}}_description\"\r\n\t       ng-required=\"options.required\"\r\n\t       ng-disabled=\"options.disabled\"\r\n\t       *mask=\"23:59:59*\"\r\n\t       ng-model=\"result[options.key || index]\">\r\n\t<p id=\"{{id}}_description\"\r\n\t   class=\"help-block\"\r\n\t   ng-if=\"options.description\">\r\n\t\t{{options.description}}\r\n\t</p>\r\n</div>\r\n3- creates a new type 'time' that points out to the new template\r\n  # set formly tempaltes\r\n  formlyConfigProvider.setTemplateUrl('time', 'templates/custom-formly/form-field-time.html')\r\n\r\n\r\nA better implementation would be to create a mask attribute to the specification of a field and uses it on the form-fields tempaltes (masks={{options.mask}}). How I could do this?\r\n\r\n\r\n"}}