{"id":20011317,"url":"https://github.com/malbernaz/vue-data-table","last_synced_at":"2026-06-13T14:03:48.029Z","repository":{"id":115407364,"uuid":"161588407","full_name":"malbernaz/vue-data-table","owner":"malbernaz","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-15T20:16:04.000Z","size":7463,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T02:16:25.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/malbernaz.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,"publiccode":null,"codemeta":null}},"created_at":"2018-12-13T05:28:33.000Z","updated_at":"2023-03-10T08:48:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2ce257f-31f7-4814-9ed8-67269c72a251","html_url":"https://github.com/malbernaz/vue-data-table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malbernaz/vue-data-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malbernaz%2Fvue-data-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malbernaz%2Fvue-data-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malbernaz%2Fvue-data-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malbernaz%2Fvue-data-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malbernaz","download_url":"https://codeload.github.com/malbernaz/vue-data-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malbernaz%2Fvue-data-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34286976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":[],"created_at":"2024-11-13T07:25:22.327Z","updated_at":"2026-06-13T14:03:48.014Z","avatar_url":"https://github.com/malbernaz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Data Table\n\n## Documentation\n\n### `DataTable`\n\n```html\n\u003cDataTable :defs=\"defs\" :rows=\"items\" :onRowSelect=\"handleRowSelect\" /\u003e\n```\n\n#### Props:\n\n##### `defs`\n\nThe prop defs is an array of column definitions. Each column definition must have the following shape:\n\n```ts\nexport interface ColumnDef {\n  // the column name\n  name: string;\n  // whether the column should be displayed\n  display?: boolean;\n  // left or right (default: left)\n  align?: string;\n  // the column width\n  width?: string;\n  // a function that describes how the columns should be sorted\n  compare?: (a: any, b: any) =\u003e number;\n  // how the column field should be displayed\n  transform?: (data: any) =\u003e string;\n}\n```\n\n##### `rows`\n\nThe prop rows is an array of objects withs keys for each column name.\n\n```ts\nexport interface Row {\n  [key: string]: any;\n}\n\nconst rows: Row[] = {\n  /*...*/\n};\n```\n\n##### `onRowSelect`\n\nThe prop onRowSelect is an callback that is triggered whenever a row is clicked. It receives as paramenter the row it self.\n\n```ts\ntype OnRowSelect = (row: Row) =\u003e void;\n```\n\n### `WithSearch`\n\n```html\n\u003cWithSearch :defs=\"defs\" :rows=\"items\" :onRowSelect=\"handleRowSelect\" defaultFilter=\"name\"\u003e\n  \u003cDataTable slot-scope=\"tableProps\" v-bind=\"tableProps\"/\u003e\n\u003c/WithSearch\u003e\n```\n\n`WithSearch` is a wrapper for `DataTable`. It receives the same props and pass then along through `slot-scope`. In addition to that it receives a `defaultFilter` prop which correspond to a column name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalbernaz%2Fvue-data-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalbernaz%2Fvue-data-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalbernaz%2Fvue-data-table/lists"}