{"id":14973364,"url":"https://github.com/vitocmpl/ng2-ya-table","last_synced_at":"2025-08-02T11:33:01.844Z","repository":{"id":18665081,"uuid":"84937633","full_name":"vitocmpl/ng2-ya-table","owner":"vitocmpl","description":"Angular yet another table","archived":false,"fork":false,"pushed_at":"2023-02-04T07:00:08.000Z","size":10224,"stargazers_count":17,"open_issues_count":12,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T00:53:24.901Z","etag":null,"topics":["angular-2","angular2","angular4","bootstrap","bootstrap3","bootstrap4","bootstrap5","configuration","datagrid","datatable","filter","grid","localdatasource","ng2","ngx","observable","pagination","server-side","sort","table"],"latest_commit_sha":null,"homepage":"https://vitocmpl.github.io/ng2-ya-table/","language":"TypeScript","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/vitocmpl.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}},"created_at":"2017-03-14T10:44:35.000Z","updated_at":"2023-08-13T13:45:29.000Z","dependencies_parsed_at":"2023-02-18T14:31:38.430Z","dependency_job_id":null,"html_url":"https://github.com/vitocmpl/ng2-ya-table","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/vitocmpl/ng2-ya-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitocmpl%2Fng2-ya-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitocmpl%2Fng2-ya-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitocmpl%2Fng2-ya-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitocmpl%2Fng2-ya-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitocmpl","download_url":"https://codeload.github.com/vitocmpl/ng2-ya-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitocmpl%2Fng2-ya-table/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378965,"owners_count":24240907,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-2","angular2","angular4","bootstrap","bootstrap3","bootstrap4","bootstrap5","configuration","datagrid","datatable","filter","grid","localdatasource","ng2","ngx","observable","pagination","server-side","sort","table"],"created_at":"2024-09-24T13:48:36.958Z","updated_at":"2025-08-02T11:33:01.817Z","avatar_url":"https://github.com/vitocmpl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng2-ya-table\n\nAngular yet another table with pagination, ordering, filtering and datasource server-side ready.\n\n\n### Demo\n\n\u003ca target=\"_blank\" href=\"https://vitocmpl.github.io/ng2-ya-table/\"\u003eLive Demo\u003c/a\u003e\n\n![alt tag](src/assets/img/demo.gif)\n\n\n## Installation\n\n - `angular-cli` please refer to [getting-started-with-ng-cli](https://github.com/vitocmpl/ng2-ya-table/tree/master/docs/getting-started/ng-cli.md)\n - ...\n\n\n## Minimal Setup Example\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { AppComponent } from './app.component';\nimport { Ng2YaTableModule } from 'ng2-ya-table';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    Ng2YaTableModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n```xml\n\u003c!-- You can now use the library in app.component.html --\u003e\n\u003ch1\u003e\n  {{title}}\n\u003c/h1\u003e\n\u003cng2-ya-table [options]=\"options\" [columns]=\"columns\" [datasource]=\"data\" [paging]=\"paging\"\u003e\n    \u003cng-template ng2YaTableCellTemplate=\"btnEdit\" let-data='data' let-row='row'\u003e\n      \u003cdiv class='text-center'\u003e\n        \u003cbutton type='button' class='btn btn-sm btn-primary' (click)=\"onActionClick(row.id)\"\u003eEdit\u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/ng-template\u003e\n    \u003cng-template ng2YaTableCellTemplate=\"btnDelete\" let-data='data' let-row='row'\u003e\n      \u003cdiv class='text-center'\u003e\n        \u003cbutton type='button' class='btn btn-sm btn-danger' (click)=\"onActionClick(row.id)\"\u003eDelete\u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/ng-template\u003e\n\u003c/ng2-ya-table\u003e\n```\n\n```typescript\npublic options: TableOptions = {\n    orderMulti: false,\n    className: ['table-striped'],\n    language: \"en\"\n};\n\npublic data: unknown[] = [...]; //array of data\n\npublic paging: TablePaging = {\n    itemsPerPage: 10,\n    itemsPerPageOptions: [10, 25, 50, 100],\n    maxSize: 5\n}\n\npublic columns: TableColumn[] = [\n{ \n    title: 'Name', \n    name: 'name', \n    sort: true, \n    sortOrder: 'asc',  \n    filter: {\n        controlType: 'default',\n        config: {\n            placeholder: 'Filter by name'\n        }\n    } \n},\n{ \n    title: 'Username', \n    name: 'username', \n    sort: true, \n    filter: {\n        controlType: 'default',\n        config: {\n            placeholder: 'Filter by username'\n        }\n    } \n},\n{ \n    title: 'Email', \n    name: 'email', \n    sort: true, \n    filter: {\n        controlType: 'default',\n        config: {\n            placeholder: 'Filter by email'\n        }\n    } \n},\n{ \n    sort: false, \n    title: '', \n    name: 'btnEdit',\n    width: \"10px\"\n},\n{ \n    sort: false, \n    title: '', \n    name: 'btnDelete',\n    width: \"10px\"\n}];\n```\n\n\n## Server-Side datasource Setup Example\n\n```xml\n\u003cng2-ya-table [options]=\"options\" [columns]=\"columns\" [datasource]=\"datasource\" [paging]=\"paging\"\u003e\n\u003c/ng2-ya-table\u003e\n```\n\n```typescript\npublic datasource: TableDataSource = (request: DatasourceParameters): Observable\u003cDatasourceResult\u003e =\u003e {\n    return this.service.getUsers(request);\n}\n```\n\n\n## Further Documentation\n\nInstallation, customization and other useful articles will be available soon...\n\n\n## Features\n* Observable data source (client-side or server-side)\n* Filtering\n* Sorting\n* Pagination\n* Bootstrap 4 / 5 layout\n\n\n## License\n\n[MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitocmpl%2Fng2-ya-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitocmpl%2Fng2-ya-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitocmpl%2Fng2-ya-table/lists"}