{"id":28067619,"url":"https://github.com/margi47/ngx-paged-select","last_synced_at":"2025-06-11T16:04:24.120Z","repository":{"id":143897076,"uuid":"101062949","full_name":"Margi47/ngx-paged-select","owner":"Margi47","description":"Select component for Angular 4 with scrolling and paging features.  Sample project at https://margi47.github.io/ngx-paged-select/","archived":false,"fork":false,"pushed_at":"2018-04-16T14:22:54.000Z","size":23615,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-12T17:00:30.842Z","etag":null,"topics":["angular","angular2","angular4","dropdown","paging","scrolling","select","typescript"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Margi47.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-08-22T12:57:54.000Z","updated_at":"2020-02-19T09:42:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff64558e-0b6c-4a1e-b648-e4162e702446","html_url":"https://github.com/Margi47/ngx-paged-select","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Margi47/ngx-paged-select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Margi47%2Fngx-paged-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Margi47%2Fngx-paged-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Margi47%2Fngx-paged-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Margi47%2Fngx-paged-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Margi47","download_url":"https://codeload.github.com/Margi47/ngx-paged-select/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Margi47%2Fngx-paged-select/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259293094,"owners_count":22835538,"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","angular2","angular4","dropdown","paging","scrolling","select","typescript"],"created_at":"2025-05-12T16:58:35.547Z","updated_at":"2025-06-11T16:04:24.114Z","avatar_url":"https://github.com/Margi47.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/ngx-paged-select.svg)](https://www.npmjs.com/package/ngx-paged-select)\n[![npm](https://img.shields.io/npm/dt/ngx-paged-select.svg)](https://www.npmjs.com/package/ngx-paged-select)\n[![Travis](https://img.shields.io/travis/Margi47/ngx-paged-select.svg)](https://travis-ci.org/Margi47/ngx-paged-select)\n![npm](https://img.shields.io/npm/l/ngx-paged-select.svg)\n\n\n# ngx-paged-select\nA simple select component for Angular 4 with scrolling and paging features.\n\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install ngx-paged-select --save\n```\n## Prerequisites\n\nYou will need [ngx-infinite-scroll](https://github.com/orizens/ngx-infinite-scroll)\n\n```bash\n$ npm install ngx-infinite-scroll --save\n```\nand [Bootstrap](https://getbootstrap.com/) styles\n\n```bash\n$ npm install bootstrap --save\n```\n```html\n\u003c!--- index.html --\u003e\n\u003clink href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\" rel=\"stylesheet\"\u003e\n```\n\n## Consuming library\n\nYou can import library in any Angular application by running:\n\n```bash\n$ npm install ngx-paged-select\n```\n\nand then from your Angular `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\n// Import library\nimport { SelectModule } from 'ngx-paged-select';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n\n    // Specify library as an import\n    SelectModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nOnce library is imported, you can use it in your Angular application:\n\n```xml\n\u003c!-- You can now use select component with default template in app.component.html --\u003e\n\u003cngx-paged-select [options]=\"options$\"\n                  [hasMoreOptions]=\"hasMoreOptions\"\n                  [key]=\"'name'\"\n                  [placeholder]=\"'Select Me'\"\n                  [showNum]=\"5\"\n                  [multiple]=\"true\"\n                  (loadData)=\"loadNextPage($event)\"\n                  (optionSelected)=\"onSelect($event)\"\u003e\u003c/ngx-paged-select\u003e\n```\n\n```xml\n\u003c!-- Or with custom template --\u003e\n\u003cngx-paged-select [options]=\"options$\"\n                  [hasMoreOptions]=\"hasMoreOptions\"\n                  (loadData)=\"loadNextPage($event)\"\n                  (optionSelected)=\"onSelect($event)\"\u003e\n  \n    \u003c!-- Template for options to select from --\u003e\n    \u003cng-template let-option option\u003e\n        \u003cimg src={{option.logo}}/\u003e\n    \u003c/ng-template\u003e\n  \n    \u003c!-- Template for chosen elements --\u003e\n    \u003cng-template let-result result\u003e\n        \u003cimg src={{result.logo}}/\u003e\n    \u003c/ng-template\u003e\n\u003c/ngx-paged-select\u003e\n```\n\n## Supported API\n\n### Properties\n- options: array - Array of options to select from. If an array consists of complex objects, key property is needed.\n- hasMoreOptions: boolean - Set to true, if current page is not the last one.\n- key: string - (optional in case of simple types) - Indicates a property of a complex object, that needs to be displayed.\n- placeholder: string - (default: \"Select\") - Text to display, when no element chosen.\n- showNum: number - (default: length of first page) - Number of options visible in select window.\n- multiple: boolean - (default: false) - Allows to select multiple options.\n\n### Events\n- loadData - Fires when new page needed or search input occured. Returns object with **page:number** and **filter:string** properties.\n- optionSelected - Fires when option has been selected. Returns the entire option object or an array of option objects in case of *multiple* attribute set to true.\n\n## Development\n\nTo generate all `*.js`, `*.d.ts` and `*.metadata.json` files:\n\n```bash\n$ npm run build\n```\n\nTo lint all `*.ts` files:\n\n```bash\n$ npm run lint\n```\n\nTo run example:\n\n```bash\n$ npm run playground\n```\n\n## License\n\nMIT © [Margarita Liapustina](mailto:Margi47@users.noreply.github.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmargi47%2Fngx-paged-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmargi47%2Fngx-paged-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmargi47%2Fngx-paged-select/lists"}