{"id":20160768,"url":"https://github.com/debdut/vue-data-table","last_synced_at":"2025-04-10T00:10:42.656Z","repository":{"id":37756240,"uuid":"149716283","full_name":"Debdut/vue-data-table","owner":"Debdut","description":"Vue Data Table With Filter, Sort and Complete Editability","archived":false,"fork":false,"pushed_at":"2022-12-09T09:33:06.000Z","size":994,"stargazers_count":4,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T00:10:37.619Z","etag":null,"topics":["component","editable","editable-table","filter","javascript","pug","sort","table","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/Debdut.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}},"created_at":"2018-09-21T05:52:41.000Z","updated_at":"2022-04-05T17:20:10.000Z","dependencies_parsed_at":"2023-01-25T13:30:21.237Z","dependency_job_id":null,"html_url":"https://github.com/Debdut/vue-data-table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debdut%2Fvue-data-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debdut%2Fvue-data-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debdut%2Fvue-data-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Debdut%2Fvue-data-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Debdut","download_url":"https://codeload.github.com/Debdut/vue-data-table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131317,"owners_count":21052819,"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":["component","editable","editable-table","filter","javascript","pug","sort","table","vue"],"created_at":"2024-11-14T00:15:49.840Z","updated_at":"2025-04-10T00:10:42.637Z","avatar_url":"https://github.com/Debdut.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-data-table\n\n## Data\n\n### Object Form\n\n```html\n\u003cdata-table :data=\"{ header, body }\"\u003e\n```\n\n```js\nheader = ['name', 'age', 'job']\nbody = [\n  ['debdut', 21, 'NA'],\n  ['saikat', 20, 'NA'],\n]\n```\n```ts\nheader: Array\u003cString\u003e\nbody: Array\u003cArray\u003e\ndata: { Array\u003cString\u003e, Array\u003cArray\u003e }\n```\n\n| name   | age | job |\n|--------|-----|-----|\n| debdut | 21  | NA  |\n| saikat | 20  | NA  |\n\n\n### Array Form\n\n```html\n\u003cdata-table :data=\"data\"\u003e\n```\n```js\ndata = [\n  {name: 'debdut', age: 21, job: 'NA'},\n  {name: 'saikat', age: 20, job: 'NA'}\n]\n```\n\n\n```ts\ndata: Array\u003cObject\u003e\n```\n\n\n| name   | age | job |\n|--------|-----|-----|\n| debdut | 21  | NA  |\n| saikat | 20  | NA  |\n\n## Options\n\n```ts\noptions: {\n  edit: Boolean\n  \n  sort: Boolean\n  compare: \u003cT\u003e(a : T, b : T) =\u003e T\n\n  removeRow: Boolean\n  removeColumn: Boolean\n  addRow: Boolean\n  addColumn: Boolean\n\n  filter: Boolean\n  filterStrategy: \u003cT\u003e(search: String, a : T, list: \u003cT\u003e) =\u003e Boolean\n\n  tableStyle: String | Object\n  tableClass: String\n  headerStyle: String | Object\n  headerClass: String\n\n  column: Array\u003c{\n    edit: Boolean\n  \n    sort: Boolean\n    compare: \u003cT\u003e(a: T, b: T) =\u003e T\n\n    remove: Boolean\n    textSize: Number\n    type: String\n\n    filter: Boolean\n    filterStrategy: \u003cT\u003e(search: String, a : T, list: \u003cT\u003e) =\u003e Boolean\n\n    colStyle: String | Object\n    colClass: String\n  }\u003e\n\n  row: Array\u003c{\n    edit: Boolean\n    remove: Boolean\n\n    rowStyle: String | Object\n    rowClass: String\n  }\u003e\n\n  cell: Array\u003cArray\u003c{\n    edit: Boolean\n\n    cellStyle: String | Object\n    cellClass: String\n  }\u003e\u003e\n}\n```\n\n### Table Options\n\n| Option         | Type                | Default | Choices           | Description                                                                                                                                                                                                                                                           |\n|----------------|---------------------|---------|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| edit           | Boolean             | false   | false  true       | If True, the table cells are editable, on click turns the cell into a input with present value                                                                                                                                                                        |\n| sort           | Boolean             | false   | false  true       | If True,all the table columns are sortable according to their values                                                                                                                                                                                                  |\n| compare        | function            |         |                   | The columns are sortable according to their values using the provided compare algorithm                                                                                                                                                                               |\n| removeRow      | Boolean             | false   | false   true      | If True,all rows are romovable.Specific rows can be removed,and will not be shown anymore                                                                                                                                                                                                    |\n| removeColumn   | Boolean             | false   | false  true       | If True,,all columns are removable.Specific columns can be removed,and will not be shown anymore                                                                                                                                                                                                 |\n| addRow         | Boolean             | false   | false  true       | If True,rows can be added,and will be shown along with the previous rows                                                                                                                                                                                              |\n| addColumn      | Boolean             | false   | false  true       | If True,columns can be added,and will be shown along with the previous columns                                                                                                                                                                                        |\n| filter         | Boolean             | false   | false  true       | If true, a row will be added in the top with input feilds of the same numbers as of the number of  cells in header.Each input feilds will take a value and will match it with all the values in the  column and will finally show the values or value that matches it |\n| filterStrategy | function            |         |                   | Each input feilds will take a value and will be matched with the values in the column using the  specific strategy and will finally show the values or value that matches it                                                                                          |\n| tableStyle     | String  Object(JSS) |         |                   | The passed css will be binded to the whole table itself                                                                                                                                                                                                               |\n| tableClass     | String              |         |                   | The passed class will get binded to the whole table itself                                                                                                                                                                                                            |\n| headerStyle    | String  Object(JSS) |         |                   | The passed css will be binded to the whole header itself                                                                                                                                                                                                              |\n| headerClass    | String              |         |                   | The passed class will get binded to the whole header itself                                               z                                                                                                                                                            |\n\n\n\n### Row Options\n\n| Option   | Type               | Default | Choices     | Description                                                                                                          |\n|----------|--------------------|---------|-------------|----------------------------------------------------------------------------------------------------------------------|\n| edit     | Boolean            | inherit | false  true | If True, the table cells in the specific rows are editable, on click turns  the cell into a input with present value |\n| remove   | Boolean            | false   | false  true | If True,the row can be removed,and will not be shown anymore                                                         |\n| rowStyle | String Object(JSS) |         |             | The passed css will be binded to the whole row itself                                                                |\n| rowClass | String             |         |             | The passed class will be binded to the whole row itself                                                              |\n\n### Column Options\n\n| Option         | Type               | Default  | Choices           | Description                                                                                                                                                                                                                   |\n|----------------|--------------------|----------|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| edit           | Boolean            | inherit  | false  true       | If True, the table cells in the specific columns are editable, on click turns  the cell into a input with present value                                                                                                       |\n| sort           | Boolean            | false    | false  true       | If True,the specific columns are sortable according to their values                                                                                                                                                           |\n| compare        | function           |          |                   | The specific columns are sortable according to their values using the provided  compare algorithm                                                                                                                             |\n| remove         | Boolean            | false    | false  true       | If True,the column can be removed,and will not be shown anymore                                                                                                                                                               |\n| textSize       | Number             | Infinity |                   | This specifies the maximum text size allowed in every cells of the column                                                                                                                                                     |\n| type           | String             | 'string' | 'string' 'number' | This specifies the data type of the values in every cell of the column                                                                                                                                                        |\n| filter         | Boolean            | false    | false  true       | If true, a cell will be added in the top of the column with an input feild. The input feilds will take a value and will match it with all the values  in the column and will finally show the values or value that matches it |\n| filterStrategy | function           |          |                   | The input feild will take a value and will be matched with the values  in the column using the specific strategy and will finally show the  values or value that matches it                                                   |\n| colStyle       | String Object(JSS) |          |                   | The passed css will be binded to the whole column itself                                                                                                                                                                      |\n| colClass       | String             |          |                   | The passed class will be binded to the whole column itself                                                                                                                                                                    |\n\n### Cell Options\n\n| Option    | Type               | Default | Choices     | Description                                                                                        |\n|-----------|--------------------|---------|-------------|----------------------------------------------------------------------------------------------------|\n| edit      | Boolean            | inherit | false  true | If True, the particular cell is editable, on click turns the  cell into a input with present value |\n| cellStyle | String Object(JSS) |         |             | The passed css will be binded to the particular cell itself                                        |\n| cellClass | String             |         |             | The passed class will be binded to the particular cell itself                                      |\n\n## Events\n\n| Event | Triggered Event | Generating Position                                            | Description                                                                                                                                                                                                                                                                                               |\n|-------|-----------------|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| click |                 | cell                                                           | On click the cell turns into a input with present value and focus                                                                                                                                                                                                                                         |\n| click |                 | sort icons beside header  cell                                 | The table's rows get sorted according to the values of  the respective column                                                                                                                                                                                                                             |\n| wheel |                 | scroll on any position on  the body of the table except header | On scrolling upwards, the rows on the present table will  shift downward and new datas will appear coming from  the top untill the first row appear. On scrolling downwards, the rows on the present table will  shift upward and new datas will appear coming from  the down untill the last row appear. |\n| hover |                 | cell                                                           | A floating box will appear at the top and side of the  respective column and row with the icons of delete,add  before and add after                                                                                                                                                                       |\n| click |                 | delete icon beside header cell                                 | The specific column will get deleated from the present table                                                                                                                                                                                                                                              |\n| click |                 | delete icon at the end of each row                             | The specific row will get deleated from the present table                                                                                                                                                                                                                                                 |\n| click |                 | add icons beside header cell                                   | A column will get added before or after the present column                                                                                                                                                                                                                                                |\n| click |                 | add icons at the end of each row                               | A row will get added before or after the present row                                                                                                                                                                                                                                                      |\n\n## Project setup\n```\nyarn install\n```\n\n### Compiles and hot-reloads for development\n```\nyarn run serve\n```\n\n### Compiles and minifies for production\n```\nyarn run build\n```\n\n### Lints and fixes files\n```\nyarn run lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebdut%2Fvue-data-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebdut%2Fvue-data-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebdut%2Fvue-data-table/lists"}