{"id":19312022,"url":"https://github.com/weblineindia/angular-text-box","last_synced_at":"2025-07-17T06:02:19.644Z","repository":{"id":57179381,"uuid":"280394027","full_name":"weblineindia/Angular-Text-Box","owner":"weblineindia","description":"An AngularJS based Text Box component used to specify an input field where the user can enter data.","archived":false,"fork":false,"pushed_at":"2024-04-19T09:11:13.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T02:26:37.117Z","etag":null,"topics":["angular","angular-components","angular-libraries","angular-textarea","angularjs","angularjs-components","angularjs-library","javascript-textbox","reusable-components","text-box-input","text-input","textbox","textbox-component"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/software-development-resources.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-07-17T10:18:39.000Z","updated_at":"2024-04-09T09:00:55.000Z","dependencies_parsed_at":"2024-04-19T10:28:59.491Z","dependency_job_id":"696d004b-22d3-4070-8cca-2c1bc1be9368","html_url":"https://github.com/weblineindia/Angular-Text-Box","commit_stats":null,"previous_names":["weblineindia/angularjs-text-box"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Text-Box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Text-Box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Text-Box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Text-Box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/Angular-Text-Box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415216,"owners_count":19797599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-components","angular-libraries","angular-textarea","angularjs","angularjs-components","angularjs-library","javascript-textbox","reusable-components","text-box-input","text-input","textbox","textbox-component"],"created_at":"2024-11-10T00:32:14.216Z","updated_at":"2025-02-24T03:42:41.856Z","avatar_url":"https://github.com/weblineindia.png","language":"JavaScript","readme":"# Angular - Text Box Component\r\n\r\nA Angular based Text Box component used to specify an input field where the user can enter data.\r\n\r\n## Table of contents\r\n\r\n- [Browser Support](#browser-support)\r\n- [Getting started](#getting-started)\r\n- [Usage](#usage)\r\n- [Available Props](#available-props)\r\n- [Methods](#methods)\r\n- [Want to Contribute?](#want-to-contribute)\r\n- [Collection of Components](#collection-of-components)\r\n- [Changelog](#changelog)\r\n- [License](#license)\r\n- [Keywords](#Keywords)\r\n\r\n## Browser Support\r\n\r\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\r\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |\r\n| 83.0 ✔                                                                                   | 77.0 ✔                                                                                      | 13.1.1 ✔                                                                                 | 83.0 ✔                                                                             | 11.9 ✔                                                                                                                       |\r\n\r\n## Demo\r\n\r\n[![](textNg.gif)](https://github.com/weblineindia/AngularJS-Text-Box/textNg.gif)\r\n\r\n## Getting started\r\n\r\nInstall the npm package:\r\n\r\n# Demo\r\n\r\n[![](textNg.gif)](https://github.com/weblineindia/AngularJS-Text-Box/textNg.gif)\r\n\r\n## Getting started\r\n\r\nInstall the npm package:\r\n\r\n```bash\r\nnpm install angular-weblineindia-text-box\r\n#OR\r\nyarn add angular-weblineindia-text-box\r\n```\r\n\r\n## Usage\r\n\r\nUse the `\u003cangular-weblineindia-text-box\u003e` component:\r\n\r\nAdd in app.module.ts file\r\n\r\n```typescript\r\nimport { NgModule } from \"@angular/core\";\r\nimport { AngularWeblineindiaTextBoxModule } from \"angular-weblineindia-text-box\";\r\n\r\n@NgModule({\r\n  imports: [AngularWeblineindiaTextBoxModule],\r\n})\r\nexport class AppModule {}\r\n```\r\n\r\nAdd in app.component.ts file\r\n\r\n```typescript\r\nexport class AppComponent {\r\n  myRegex: RegExp = /^[a-zA-Z0-9]+$/;\r\n\r\n  onFocusHandler(event: any): void {}\r\n\r\n  onBlurHandler(event: any): void {}\r\n\r\n  onChangeHandler(event: any): void {\r\n  }\r\n\r\n  onKeyPressHandler(event: KeyboardEvent): void {\r\n  }\r\n\r\n  onKeyDownHandler(event: KeyboardEvent): void {\r\n  }\r\n\r\n  onKeyUpHandler(event: KeyboardEvent): void {\r\n  }\r\n```\r\n\r\nAdd in app.component.html file\r\n\r\n```html\r\n\u003cangular-weblineindia-text-box id=\"myInputId\" name=\"myInputName\" value=\"initial value\" classname=\"my-custom-class\" placeholder=\"Enter text here\" [disabled]=\"false\" [maxlength]=\"25\" [regex]=\"myRegex\" [isnumberonly]=\"false\" [required]=\"true\" (focus)=\"onFocusHandler($event)\" (blur)=\"onBlurHandler($event)\" (change)=\"onChangeHandler($event)\" (KeyPress)=\"onKeyPressHandler($event)\" (KeyDown)=\"onKeyDownHandler($event)\" (KeyUp)=\"onKeyUpHandler($event)\"\u003e\u003c/angular-weblineindia-text-box\u003e\r\n```\r\n\r\nAdd in app.component.css file\r\n\r\n```typescript\r\n::ng-deep .my-custom-class {\r\n  color: aqua;\r\n}\r\n```\r\n\r\n## Available Props\r\n\r\n| Prop         | Type    | default | Description                                    |\r\n| ------------ | ------- | ------- | ---------------------------------------------- |\r\n| id           | String  |         | ID for the input                               |\r\n| name         | String  |         | Nam for the input                              |\r\n| value        | string  |         | Value of the component                         |\r\n| classname    | object  |         | Class to the input                             |\r\n| placeholder  | String  |         | The input field will get this placeholder text |\r\n| disabled     | Boolean | false   | Disable component                              |\r\n| maxlength    | Number  | 25      | The input maxlength                            |\r\n| regex        | RegExp  |         | The input regex                                |\r\n| isnumberonly | Boolean | false   | The input field will get number value          |\r\n| required     | Boolean | false   | The input field will required or not           |\r\n\r\n## Methods\r\n\r\n| Name     | Description                                                      |\r\n| -------- | ---------------------------------------------------------------- |\r\n| focus    | Gets triggered when the autocomplete input field receives focus. |\r\n| blur     | Gets triggered when the autocomplete input field loses focus.    |\r\n| change   | Gets triggered when the autocomplete results got changed.        |\r\n| KeyPress | Gets triggered when a key gets pressed.                          |\r\n| KeyDown  | Gets triggered when a key gets down.                             |\r\n| KeyUp    | Gets triggered when a key gets up.                               |\r\n\r\n## Want to Contribute?\r\n\r\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\r\n- [Fork it](http://help.github.com/forking/).\r\n- Create new branch to contribute your changes.\r\n- Commit all your changes to your branch.\r\n- Submit a [pull request](http://help.github.com/pull-requests/).\r\n\r\n---\r\n\r\n## Collection of Components\r\n\r\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/software-development-resources.html)\r\n\r\n---\r\n\r\n## Changelog\r\n\r\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\r\n\r\n## License\r\n\r\n[MIT](LICENSE)\r\n\r\n[mit]: https://github.com/weblineindia/AngularJS-Text-Box/blob/master/LICENSE\r\n\r\n## Keywords\r\n\r\nangular-weblineindia-text-box, textbox, input, angular, angular-component, textbox-component, textarea, text-box-input\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-text-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fangular-text-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-text-box/lists"}