{"id":19312019,"url":"https://github.com/weblineindia/angular-dropdown-component","last_synced_at":"2025-10-04T19:33:00.190Z","repository":{"id":57179426,"uuid":"281326121","full_name":"weblineindia/Angular-Dropdown-Component","owner":"weblineindia","description":"AngularJS Dropdown is a lightweight component and includes all in one UI for selection and autocomplete.","archived":false,"fork":false,"pushed_at":"2020-07-21T07:54:57.000Z","size":321,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-09T12:04:21.083Z","etag":null,"topics":["angular","angular-components","angular-dropdown","angular-dropdownlist","angular-libraries","angular-select","angularjs","angularjs-components","angularjs-dropdown","angularjs-library","dropdown-component","dropdown-component-demo","reusable-components","ui-select"],"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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-21T07:23:59.000Z","updated_at":"2023-11-23T12:51:18.000Z","dependencies_parsed_at":"2022-09-14T02:10:31.469Z","dependency_job_id":null,"html_url":"https://github.com/weblineindia/Angular-Dropdown-Component","commit_stats":null,"previous_names":["weblineindia/angularjs-dropdown"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Dropdown-Component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Dropdown-Component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Dropdown-Component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Dropdown-Component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/Angular-Dropdown-Component/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-dropdown","angular-dropdownlist","angular-libraries","angular-select","angularjs","angularjs-components","angularjs-dropdown","angularjs-library","dropdown-component","dropdown-component-demo","reusable-components","ui-select"],"created_at":"2024-11-10T00:32:14.147Z","updated_at":"2025-10-04T19:32:55.156Z","avatar_url":"https://github.com/weblineindia.png","language":"JavaScript","readme":"# Angular - Dropdown Component\r\n\r\nAn Angular-based Dropdown component for selecting options from a list.\r\n\r\n## Table of contents\r\n\r\n- [Browser Support](#browser-support)\r\n- [Demo](#demo)\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```bash\r\nnpm install angular-weblineindia-dropdown\r\n#OR\r\nyarn add angular-weblineindia-dropdown\r\n```\r\n\r\n## Usage\r\n\r\nUse the `\u003cangular-weblineindia-dropdown\u003e` component:\r\n\r\nAdd in app.module.ts file\r\n\r\n```typescript\r\nimport { NgModule } from \"@angular/core\";\r\nimport { AngularWeblineindiaDropdownModule } from 'angular-weblineindia-dropdown';\r\n\r\n@NgModule({\r\n  imports: [AngularWeblineindiaDropdownModule],\r\n})\r\nexport class AppModule {}\r\n```\r\n\r\nAdd in app.component.ts file\r\n\r\n```typescript\r\n  selectedOption: any;\r\n\r\n  dropdownOptions: any[] = [\r\n    { id: '1', name: 'Option 1' },\r\n    { id: '2', name: 'Option 2' },\r\n    { id: '3', name: 'Option 3' },\r\n  ];\r\n\r\n  onOptionSelect(option: any) {\r\n    console.log('Selected option:', option.target.value);\r\n  }\r\n\r\n  onFocusDropdown(event: any) {\r\n    console.log('Dropdown focused', event);\r\n  }\r\n\r\n  onBlurDropdown(event: any) {\r\n    console.log('Dropdown blurred', event);\r\n  }\r\n}\r\n\r\n```\r\n\r\nAdd in app.component.html file\r\n\r\n```html\r\n\u003cangular-weblineindia-dropdown\r\n  [placeHolder]=\"'Please select'\"\r\n  [options]=\"dropdownOptions\"\r\n  [dropdownClass]=\"'custom-dropdown'\"\r\n  [dropdownListClass]=\"'custom-dropdown-list'\"\r\n  [disabled]=\"false\"\r\n  [value]=\"'2'\"\r\n  (change)=\"onOptionSelect($event)\"\r\n  (focus)=\"onFocusDropdown($event)\"\r\n  (blur)=\"onBlurDropdown($event)\"\r\n\u003e\u003c/angular-weblineindia-dropdown\u003e\r\n```\r\n\r\nAdd in app.component.css file\r\n\r\n```typescript\r\n::ng-deep .custom-dropdown {\r\n  /* Add your custom styles for the dropdown here */\r\n}\r\n\r\n::ng-deep .custom-dropdown-list {\r\n  /* Add your custom styles for the dropdown list here */\r\n}\r\n```\r\n\r\n## Available Props\r\n\r\n| Prop              | Type    | Default | Description                              |\r\n| ----------------- | ------- | ------- | ---------------------------------------- |\r\n| placeholder       | String  |         | The placeholder text for the input field |\r\n| options           | Array   |         | Array of options for the dropdown        |\r\n| dropdownClass     | String  |         | CSS class for the dropdown container     |\r\n| dropdownListClass | String  |         | CSS class for the dropdown list          |\r\n| disabled          | Boolean |         | Specifies if the dropdown is disabled    |\r\n| value             | string  |         | Selected option for the dropdown         |\r\n\r\n## Methods\r\n\r\n| Name   | Description                                                        |\r\n| ------ | ------------------------------------------------------------------ |\r\n| focus  | Gets triggered when the dropdown input field receives focus.       |\r\n| blur   | Gets triggered when the dropdown input field loses focus.          |\r\n| change | Gets triggered when the selected option(s) in the dropdown change. |\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-dropdown, dropdown, input, angular, angular-component, dropdown-component, dropdown-box, dropdown-box-input\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-dropdown-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fangular-dropdown-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-dropdown-component/lists"}