{"id":18614989,"url":"https://github.com/andrewjbateman/ionic-angular-datatables","last_synced_at":"2026-04-20T03:31:05.645Z","repository":{"id":40793223,"uuid":"248292680","full_name":"AndrewJBateman/ionic-angular-datatables","owner":"AndrewJBateman","description":":clipboard:  Ionic app to experiment with data tables. Tutorial app from Simon Grimm of Devdactic","archived":false,"fork":false,"pushed_at":"2023-02-03T05:23:52.000Z","size":2075,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T01:34:31.896Z","etag":null,"topics":["angular","angular15","api-rest","datatables","ionic","ionic-angular-datatables","ionic-grid","ionic6","simon-grimms"],"latest_commit_sha":null,"homepage":"","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/AndrewJBateman.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}},"created_at":"2020-03-18T17:03:33.000Z","updated_at":"2023-01-18T17:59:29.000Z","dependencies_parsed_at":"2023-02-15T07:31:14.121Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/ionic-angular-datatables","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/ionic-angular-datatables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-datatables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-datatables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-datatables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-datatables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/ionic-angular-datatables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-datatables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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","angular15","api-rest","datatables","ionic","ionic-angular-datatables","ionic-grid","ionic6","simon-grimms"],"created_at":"2024-11-07T03:27:44.878Z","updated_at":"2026-04-20T03:31:05.628Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Ionic Angular Datatables\n\n* App to display a responsive table of data from an API, using the [Ionic framework](https://ionicframework.com/docs) with Angular\n* Code from [Simon Grimm](https://www.youtube.com/channel/UCZZPgUIorPao48a1tBYSDgg) - see [:clap: Inspiration](#clap-inspiration) below\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/ionic-angular-datatables?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/ionic-angular-datatables?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/ionic-angular-datatables?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/ionic-angular-datatables?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Ionic Angular Datatables](#zap-ionic-angular-datatables)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \u0026 To-do list](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* App gets data from a [random user details API](https://randomuser.me/) and displays it in a responsive table that, upon resizing, reduces the number of columns from 6 (PC screen) to 4 (mobile screen)\n* Updated to latest Ionic, Angular etc. note: `tsconfig.json` compiler options updated to include `\"skipLibCheck\": true`\n\n## :camera: Screenshots\n\n![screen print](./img/table.png)\n![screen print](./img/mobile.png)\n\n## :signal_strength: Technologies\n\n* [Ionic/angular v6](https://ionicframework.com/)\n* [Ionic v5](https://ionicframework.com/)\n* [Angular v15](https://angular.io/)\n\n## :floppy_disk: Setup\n\n* Load dependencies using `npm i`\n* To start the server on _localhost://8100_ type: `ionic serve`\n\n## :computer: Code Examples\n\n* `bulkDelete()` method uses checkbox column result to remove rows checked\n\n```typescript\n  // take items checked - this.edit - and filter indexes and coerce into a number\n  // remove rows with this index using the splice method\n  bulkDelete() {\n    console.log('this.edit: ', this.edit); // example: returns {0: true, 1: true, 2: true}\n    const preDelete = Object.keys(this.edit);\n    console.log('preDelete', preDelete) // example returns [\"0\", \"1\", \"2\"] - array of strings\n    const deleteList = preDelete.filter(index =\u003e this.edit[index]).map(key =\u003e +key); // [0, 1, 2]\n    while (deleteList.length) { // as long as deleteList is \u003e 0\n      this.data.splice(deleteList.pop(), 1) // splice each row[item], pop deleteList down each time\n    }\n    this.toggleBulkEdit(); // boolean switched to hide bulkEdit ion-button once complete\n  }\n\n```\n\n## :cool: Features\n\n* Sort function uses the [localeCompare()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare) method to return a number indicating if a reference string comes before or after or is the same as the given string in sort order.\n* `ion-select-option` used to provide drop-down rows per page options. Couldn't work out how to have a default selected value, e.g. 10, currently defaults to the full list until a rows per page option is chosen\n\n## :clipboard: Status \u0026 To-do list\n\n* Status: Working\n* To-do: Nothing\n\n## :clap: Inspiration\n\n* [Simon Grimm: Youtube video: Building a Responsive Data Table with Ionic Grid](https://www.youtube.com/watch?v=5xQlIYHgesg\u0026t=5s).\n* [Simon Grimms great Ionic site: Devdactic](https://devdactic.com/)\n* [Stackoverflow: Error TS2344: Type 'T[K]' does not satisfy the constraint](https://stackoverflow.com/questions/61735762/error-ts2344-type-tk-does-not-satisfy-the-constraint)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fionic-angular-datatables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fionic-angular-datatables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fionic-angular-datatables/lists"}