{"id":13535791,"url":"https://github.com/galenyuan/vue-datatable","last_synced_at":"2025-04-02T02:31:30.168Z","repository":{"id":97852396,"uuid":"66148768","full_name":"galenyuan/vue-datatable","owner":"galenyuan","description":"[DEPRECATED] Datatable component for Vuejs","archived":true,"fork":false,"pushed_at":"2016-10-30T06:07:51.000Z","size":174,"stargazers_count":120,"open_issues_count":6,"forks_count":36,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-28T00:40:31.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vue","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/galenyuan.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}},"created_at":"2016-08-20T13:41:47.000Z","updated_at":"2024-08-30T09:06:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f366b076-f8aa-4683-908b-dcfa3abda97f","html_url":"https://github.com/galenyuan/vue-datatable","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"c1627e67c50e5edc8fdf49e98acbc63ee10f2218"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galenyuan%2Fvue-datatable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galenyuan%2Fvue-datatable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galenyuan%2Fvue-datatable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galenyuan%2Fvue-datatable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galenyuan","download_url":"https://codeload.github.com/galenyuan/vue-datatable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222791943,"owners_count":17038320,"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":[],"created_at":"2024-08-01T09:00:27.436Z","updated_at":"2024-11-03T00:31:31.597Z","avatar_url":"https://github.com/galenyuan.png","language":"Vue","funding_links":[],"categories":["UI组件","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# vue-datatable\n\n\u003e A datatable component build with Vuejs.\n\n\u003e You can try it [Online](https://galenyuan.github.io/vue-datatable/), it's Vue version [DataTables](https://github.com/DataTables/DataTables)\n\n##Usage\n```bash\nnpm install --save vue-datatable\n```\nVue-loader and Babel is required(maybe will release ES5 and JavaScript file later :P)\n\n```javascript\n\u003cdata-table :data-table=\"tableData\"\u003e\u003c/data-table\u003e\n\n\nimport DataTable from 'vue-datatable';\n\nexport default {\n  data() {\n    return {\n      tableData: {\n        options: {\n        \t// Global sort option\n          sortable: true,\n          // Global edit option\n          editable: true,\n          // How many items will be shown in each page\n          pageCount: 10,\n          // Callback of change page\n          onPageChanged(page) {\n            console.log(page);\n          }\n        },\n\n        columns: [\n          {\n            value: 'id',\n            text: 'ID',\n            // If this column is sortable\n            sortable: true,\n            // If this column is editable\n            editable: false,\n            // Render this column as HTML or not\n            isHTML: false,\n            // Render this column as button array or not\n            isButton: false\n          },\n          {\n          \tvalue: 'html',\n          \ttext: 'HTML',\n          \tsortable: false,\n          \teditable: false,\n          \tisHTML: true,\n          \tisButton: false\n          },\n          {\n          \tvalue: 'button',\n          \ttext: 'Button',\n          \tsortable: false,\n          \teditable: false,\n          \tisHTML: false,\n          \tisButton: true\n          }\n        ],\n\n        rows: [\n\t\t\t{\n\t\t\t\tid: {\n\t\t\t\t\tvalue: 1,\n\t\t\t\t\t// If this field is editable\n\t\t\t\t\teditable: false\n\t\t\t\t},\n\t\t\t\thtml: {\n\t\t\t\t\tvalue: '\u003ca href=\"https://www.github.com\"\u003e'GitHub\u003c/a\u003e\n\t\t\t\t},\n\t\t\t\tbutton: {\n\t\t\t\t\tvalue: [\n\t\t\t\t\t\t// Text of this button\n\t\t\t\t\t\ttext: 'Button',\n\t\t\t\t\t\t// Classes of this button\n\t\t\t\t\t\tclass: ['button'],\n\t\t\t\t\t\t// Click function, 3 arguments: event, column text and current field object\n\t\t\t\t\t\tfunc: function(event, column, field) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n        ]\n      }\n    }\n  },\n\n  components: {\n    DataTable\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalenyuan%2Fvue-datatable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalenyuan%2Fvue-datatable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalenyuan%2Fvue-datatable/lists"}