{"repo":"changhuixu/ngx-digit-only","free":true,"listed":false,"github":"https://github.com/changhuixu/ngx-digit-only","clone":"git clone https://github.com/changhuixu/ngx-digit-only.git","description":"An Angular directive to only allow [0-9] in the input box when typing, pasting or drag/dropping.","language":"TypeScript","stars":159,"topics":["angular","directive","input","digitonly","numberonly","angular8","angular9","mask"],"license":"MIT","category":"ui-components","readme_excerpt":"Angular DigitOnly Directive and Mask Directive Demo Medium Article: Digit Only Directive in Angular - [x] input digitOnly directive An Angular directive only allows [0-9] in the input box when typing, pasting or drag/dropping. This directive handles both Windows keyboard and Mac keyboard. This directive works with input type=\"text\" , not input type=\"number\" . - [x] input mask directive This directive checks the input pattern attribute if set. CHANGELOG - v4.0.0 : this package now updated to Angular v19 and uses the style of standalone directive. - v3.2.0 ( v2.4.0 ): digitOnly directive now supports disabling paste events (merges a pull request #57, fixes #56). - v3.1.0 ( v2.3.0 ): digitOnly directive now supports negative values (merges a pull request #49). - v3.0.0 : a release on par with Angular 12. For projects in Angular v10 or v11, please use v2 of this library. - v2.2.3 : fix an issue (#50) in the mask directive: support dynamic pattern attribute binding. - v2.2.2 : fix an issue (#28) to prevent dead keys in the digitOnly directive. - v2.2.1 : digitOnly directive now dispatches an input event when paste in Firefox. - v2.2.0 : fix an issue (#35): for better international support, both mask and digitOnly directives now also check the code attribute in KeyboardEvent . - v2.1.0 ( v1.9.0 ): fix an issue (#39) when typing decimal numbers for the digitOnly directive - v2.0.0 : add tslib v2.0 in the dependency, which is required by TypeScript 3.9 (as of Angular 10). - v1.8.0 : ","default_branch":null,"files":null,"tree":[],"storefront":"/r/changhuixu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/changhuixu/ngx-digit-only/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}