Gathering detailed insights and metrics for @cbrgpl/vue3-easy-data-table
Gathering detailed insights and metrics for @cbrgpl/vue3-easy-data-table
Gathering detailed insights and metrics for @cbrgpl/vue3-easy-data-table
Gathering detailed insights and metrics for @cbrgpl/vue3-easy-data-table
npm install @cbrgpl/vue3-easy-data-table
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
1
19
vue3-easy-data-table is a customizable and easy-to-use data table component made with Vue.js 3.x.
https://hc200ok.github.io/vue3-easy-data-table-doc/
1.2.3
)1.2.4
)1.2.10
)1.2.10
)1.2.25
)1.3.2
)1.3.11
)1.3.11
)1.3.11
)1npm install vue3-easy-data-table 2// or 3yarn add vue3-easy-data-table
1import Vue3EasyDataTable from 'vue3-easy-data-table'; 2import 'vue3-easy-data-table/dist/style.css'; 3 4const app = createApp(App); 5app.component('EasyDataTable', Vue3EasyDataTable);
1<template> 2 <EasyDataTable 3 :headers="headers" 4 :items="items" 5 /> 6</template> 7 8<script lang="ts"> 9import type { Header, Item } from "vue3-easy-data-table"; 10 11export default defineComponent({ 12 setup() { 13 const headers: Header[] = [ 14 { text: "Name", value: "name" }, 15 { text: "Height (cm)", value: "height", sortable: true }, 16 { text: "Weight (kg)", value: "weight", sortable: true }, 17 { text: "Age", value: "age", sortable: true } 18 ]; 19 20 const items: Item[] = [ 21 { "name": "Curry", "height": 178, "weight": 77, "age": 20 }, 22 { "name": "James", "height": 180, "weight": 75, "age": 21 }, 23 { "name": "Jordan", "height": 181, "weight": 73, "age": 22 } 24 ]; 25 26 return { 27 headers, 28 items 29 }; 30 }, 31}); 32</script>
1<link href="https://unpkg.com/vue3-easy-data-table/dist/style.css" rel="stylesheet"> 2<script src="https://cdn.jsdelivr.net/npm/vue@3.2.1/dist/vue.global.js"></script> 3<script src="https://unpkg.com/vue3-easy-data-table"></script> 4 5<div id="app"> 6 <easy-data-table 7 :headers="headers" 8 :items="items" 9 /> 10</div> 11 12<script> 13 const App = { 14 components: { 15 EasyDataTable: window['vue3-easy-data-table'], 16 }, 17 data () { 18 return { 19 headers:[ 20 { text: "Name", value: "name" }, 21 { text: "Height (cm)", value: "height", sortable: true }, 22 { text: "Weight (kg)", value: "weight", sortable: true }, 23 { text: "Age", value: "age", sortable: true } 24 ], 25 items: [ 26 { "name": "Curry", "height": 178, "weight": 77, "age": 20 }, 27 { "name": "James", "height": 180, "weight": 75, "age": 21 }, 28 { "name": "Jordan", "height": 181, "weight": 73, "age": 22 } 29 ], 30 } 31 }, 32 }; 33 Vue.createApp(App).mount('#app'); 34</script>
Shout out to the people who made new feature requests and reported issues to make this component better.
No vulnerabilities found.
No security vulnerabilities found.
Last Day
0%
1
Compared to previous day
Last Week
-80%
4
Compared to previous week
Last Month
77.3%
39
Compared to previous month
Last Year
-69.9%
628
Compared to previous year