{"id":15295017,"url":"https://github.com/jamesdruhan/vue-jd-table","last_synced_at":"2025-07-27T02:34:03.972Z","repository":{"id":46697699,"uuid":"173354318","full_name":"jamesdruhan/vue-jd-table","owner":"jamesdruhan","description":"An advanced and flexible Vue.js 2.x component for displaying data tables.","archived":false,"fork":false,"pushed_at":"2022-12-31T23:10:44.000Z","size":1648,"stargazers_count":74,"open_issues_count":7,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-18T13:06:55.647Z","etag":null,"topics":["datatable","datatables","javascript","table","vue","vue-components","vuejs","vuejs2"],"latest_commit_sha":null,"homepage":"https://jamesdruhan.github.io/vue-jd-table/","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/jamesdruhan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE.md","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":"2019-03-01T19:05:27.000Z","updated_at":"2025-02-28T03:02:40.000Z","dependencies_parsed_at":"2023-01-31T20:01:49.687Z","dependency_job_id":null,"html_url":"https://github.com/jamesdruhan/vue-jd-table","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jamesdruhan/vue-jd-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesdruhan%2Fvue-jd-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesdruhan%2Fvue-jd-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesdruhan%2Fvue-jd-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesdruhan%2Fvue-jd-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesdruhan","download_url":"https://codeload.github.com/jamesdruhan/vue-jd-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesdruhan%2Fvue-jd-table/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266092806,"owners_count":23875544,"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":["datatable","datatables","javascript","table","vue","vue-components","vuejs","vuejs2"],"created_at":"2024-09-30T17:08:18.634Z","updated_at":"2025-07-27T02:34:03.898Z","avatar_url":"https://github.com/jamesdruhan.png","language":"Vue","funding_links":[],"categories":["Components \u0026 Libraries","UI Components [🔝](#readme)","UI Components"],"sub_categories":["UI Components","Table"],"readme":"# JD-Table\n\n\u003e An advanced and flexible Vue.js 2.x component for displaying data tables. Feature rich and capable of handling big data, JD-Table was designed to integrate into applications with various needs.\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/vue-jd-table\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/vue-jd-table.svg?style=flat-square\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/vue-jd-table\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/vue-jd-table.svg?style=flat-square\"\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"./docs/assets/jd-table-example.png\" alt=\"Example of JD-Table\"\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n### [View Demos](docs/Demos.md)\n\n### Table of Contents\n\n- [Features](#features)\n- [Install](#install)\n    - [NPM](#npm)\n    - [Manual](#manual)\n- [Usage](#usage)\n    - [Initialize](#initialize)\n        - [SFC](#sfc)\n        - [Global](#global)\n        - [Script](#script)\n    - [Configure Options](docs/Options.md)\n    - [Display Data](Data.md)\n- [Properties](#properties)\n- [Browser Support](#browser-support)\n- [Polyfill](#polyfill)\n- Documentation\n    - [Options](docs/Options.md)\n    - [Data](docs/Data.md)\n    - [Status](docs/Status.md)\n    - [Events](docs/Events.md)\n        - [From Table](Events.md#JD-Table-Events-to-Your-App)\n        - [From App](Events.md#Your-App-to-JD-Table-Events)\n    - [Listeners](docs/Listeners.md)\n    - [Theming](docs/Theming.md)\n\n---\n\n### Features\n- Supports internal/external (API) data\n- Traditional pagination\n- Virtual scroll pagination\n- Responsive/Fixed table sizing\n- Responsive/Fixed column sizing\n- Full-text search\n- Column filtering\n- Column selection\n- Column views\n- Column sorting\n- Column resizing\n- Left/Right click context menus\n- Excel exportation\n- Full screen/minimize\n- Row 'Quick View'\n- ... and more!\n\n\u003cp align=\"right\"\u003e\n    \u003ca href=\"#table-of-contents\"\u003eBack to Table of Contents\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n### Install\n\n##### NPM\n\n```shell\nnpm install --save-dev vue-jd-table\nnpm install --save-dev @fortawesome/fontawesome-free\n```\n\n\u003e Font Awesome (Free) is required for JD-Table. Failing to install this will result in missing icons.\n\n##### Manual\n\n1. Clone this repository or download and save these files to your project:\n\n    - ./dist/**jd-table.min.js**\n    - ./dist/**jd-table.min.css**\n\n2. Instructions for manually installing Font Awesome (Free) can be found here: https://fontawesome.com/start\n\n\u003cp align=\"right\"\u003e\n    \u003ca href=\"#table-of-contents\"\u003eBack to Table of Contents\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n### Usage\n\nFollow all 3 steps below to begin using JD-Table.\n\n1. [Initialize](#initialize)\n2. [Configure Options](docs/Options.md)\n3. [Display Data](docs/Data.md)\n\n#### Initialize\n\nInitializing includes 4 parts: Template, Vue Component, Options/Props and Theme. Below are a number of different ways to initialize JD-Tables depending on your needs.\n\n###### SFC\n\nThe following is an example of how to use JD-Tables in a Vue SFC (single file component).\n\n```vue\n\u003ctemplate\u003e\n    \u003cdiv id=\"app\"\u003e\n        \u003c!-- JD-TABLE REQUIRED - TEMPLATE --\u003e\n        \u003cJDTable\n            :option                 = \"tableOptions\"\n            :loader                 = \"tableLoader\"\n            :event-from-app         = \"eventFromApp\"\n            :event-from-app-trigger = \"eventFromAppTrigger\"\n            @event-from-jd-table    = \"processEventFromApp( $event )\"\n        /\u003e\n\n        \u003c!-- JD-TABLE REQUIRED - EXCEL EXPORT --\u003e\n        \u003ciframe id=\"excelExportArea\" style=\"display:none\"\u003e\u003c/iframe\u003e\n    \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n    // JD-TABLE REQUIRED - COMPONENT REGISTRATION\n    import \"@fortawesome/fontawesome-free/css/all.min.css\";\n    import JDTable from 'vue-jd-table';\n    \n    export default\n    {\n        name : 'MyApp',\n        \n        // JD-TABLE REQUIRED - COMPONENT REGISTRATION\n        components:\n        {\n            JDTable\n        },\n        \n        // JD-TABLE REQUIRED - OPTIONS/PROPS\n        data ()\n        {\n            return {\n                tableOptions        : { // ADD OPTIONS HERE },\n                eventFromApp        : { name : null, data : null },\n                eventFromAppTrigger : false,\n                tableLoader         : false,\n                columns             : [ // ADD COLUMNS HERE ]\n            }\n        }\n    }\n\u003c/script\u003e\n\n\u003cstyle lang=\"scss\"\u003e\n    // JD-TABLE OPTIONAL - VARIABLE OVERRIDE\n\n    // JD-TABLE REQUIRED - THEME\n    @import \"~vue-jd-table/dist/assets/jd-table.scss\";\n\u003c/style\u003e\n```\n\n###### Global\n\nThe following registers JD-Table as a global component. Once registered, you can use the instructions above (SFC) to use and apply the component without having to import it each time.\n\n```vue\nimport Vue     from 'vue';\nimport JDTable from 'vue-jd-table';\n\nimport \"@fortawesome/fontawesome-free/css/all.min.css\";\nimport 'vue-jd-table/dist/jd-table.min.css';\n\nVue.component( 'jdtable',JDTable );\n\nnew Vue\n({\n    ...\n}).$mount( '#app' );\n```\n\n###### Script\n\nThe following shows an example of how to use JD-Table in your HTML files directly. You will require a polyfill for JD-Table.\n\n```html\n\u003c!-- Polyfill --\u003e\n\u003cscript src=\"https://polyfill.io/v3/polyfill.js?features=es5,es6,es7\u0026flags=gated\"\u003e\u003c/script\u003e\n\n\u003c!-- VueJS --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vue/dist/vue.js\"\u003e\u003c/script\u003e\n\n\u003c!-- JD-Table Vue Component --\u003e\n\u003cscript src=\"vue-jd-table/dist/jd-table.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- JD-Table Styles --\u003e\n\u003clink rel=\"stylesheet\" href=\"vue-jd-table/dist/jd-table.min.css\"\u003e\n\n\u003c!-- Font Awesome (Free) --\u003e\n\u003clink rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.7.2/css/all.css\" integrity=\"sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr\" crossorigin=\"anonymous\"\u003e\n\n\u003cdiv id=\"app\"\u003e\n    \u003cJDTable\n        :option                 = \"tableOptions\"\n        :loader                 = \"tableLoader\"\n        :event-from-app         = \"eventFromApp\"\n        :event-from-app-trigger = \"eventFromAppTrigger\"\n        @event-from-jd-table    = \"processEventFromApp( $event )\"\n    /\u003e\n\n    \u003ciframe id=\"excelExportArea\" style=\"display:none\"\u003e\u003c/iframe\u003e\n\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n    new Vue\n    ({\n        el : '#app',\n        \n        components:\n        {\n            JDTable\n        },\n        \n        data ()\n        {\n            return {\n                tableOptions        : { // ADD OPTIONS HERE },\n                eventFromApp        : { name : null, data : null },\n                eventFromAppTrigger : false,\n                tableLoader         : false,\n                columns             : [ // ADD COLUMNS HERE ]\n            }\n        },\n        \n        ...\n    });\n\u003c/script\u003e\n```\n\n#### Configure Options\n\n[Dedicated Page - Click Here](docs/Options.md)\n\n#### Display Data\n\n[Dedicated Page - Click Here](docs/Data.md)\n\n\u003cp align=\"right\"\u003e\n    \u003ca href=\"#table-of-contents\"\u003eBack to Table of Contents\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n### Properties\n\nJD-Table accepts the following props/properties:\n\n- **option** [Object]\n    - An object containing key/value pairs representing the options/settings for the table. Check out the [options](docs/Options.md) to learn more about the available choices.\n- **loader** [Boolean]\n    - A true/false setting which will enable or disable a loading message in the JD-Table. Use this while waiting to get a response from a REST call for data.\n- **event-from-app**  [Object]\n    - An object containing two keys \"name\" (string) and \"payload\" (string/object). Use this to send events to JD-Table such as sending data. Learn more about how to send events and what is available [here](docs/Events.md).\n- **event-from-app-trigger** [Boolean]\n    - A true/false setting which tells JD-Table to execute a event-from-app event. Learn more about triggering events [here](docs/Events.md).\n- **event-from-jd-table** [Event/Function/Callback]\n    - An event that is triggered using a Vue $emit call. Learn more about how to process these events [here](docs/Events.md).\n\n\u003cp align=\"right\"\u003e\n    \u003ca href=\"#table-of-contents\"\u003eBack to Table of Contents\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n### Browser Support\n\nJD-Table runs in all modern browsers. IE11 is supported so long as a polyfill is provided. See the [polyfill](#polyfill) section for more details.\n\n\u003cp align=\"right\"\u003e\n    \u003ca href=\"#table-of-contents\"\u003eBack to Table of Contents\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n### Polyfill\n\nJD-Table is written with ES5/6 functionality. Take note that the build module for JDTable *does not include* a polyfill. If you need support for legacy browsers like IE 11 you will need to inject a polyfill\nservice.\n\n\u003e **Reminder**: Typically build processes like Webpack \u0026 Vue-CLI do **NOT** add polyfill's to your imported **dependencies** (it will polyfill your app but not the JDTable dependency).\n\n##### Polyfill Solution #1\n\nFor build processes like Webpack/Vue-CLI, rather than importing the component normally, import the .VUE file directly. If your project already includes polyfill's it will be processed normally.\n\n```\nimport JDTable from 'vue-jd-table/src/jd-table.vue';\n```\n\n##### Polyfill Solution #2\n\nFor Vue-CLI specifically, create/add the following to vue.config.js. This will tell Vue-CLI to polyfill the normally imported JD-Table module.\n\nvue.config.js\n```\nmodule.exports =\n{\n    transpileDependencies : ['vue-jd-table']\n};\n```\n\n#### Polyfill Solution #3\n\nUsing babel and babel-polyfill, directly add polyfill's to your dependency's.\n\nbabel.config.js\n```\nmodule.exports =\n{\n    presets:\n    [\n        ['env',\n        {\n            polyfills :\n            [\n                'es6.promise',\n                'es6.object.assign',\n                'es6.function.name',\n                'es6.array.find',\n                'es6.array.find-index',\n                'es7.array.includes',\n                'es6.string.includes'\n            ]\n        }]\n    ]\n}\n```\n\n\u003cp align=\"right\"\u003e\n    \u003ca href=\"#table-of-contents\"\u003eBack to Table of Contents\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesdruhan%2Fvue-jd-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesdruhan%2Fvue-jd-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesdruhan%2Fvue-jd-table/lists"}