0.1.16 • Published 5 years ago

vueye-datatable v0.1.16

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Vueye DataTable

Vueye data table is a responsive data table component based on Vue.js 2, it organizes your data per pages in order to navigate easily.

Vueye

This component allows you to :

  • Sort columns
  • Search data
  • Print your data into a spreadsheet
  • Emit checked rows and the clicked row to the parent component
  • Export to excel
  • Create your own theme (colors)
  • Many languages: English(en), Arabic(ar), French(fr), Spanish(es), German(ger) and Chinese(ch)

Demo

Vueye data table demo or the video v0.1.14

Requirement

  • Vue.js 2
  • It doesn't require any css framework

Installation

npm install vueye-datatable --save-dev

Use

<template>
...
<vueye-table 
     checkable 
     tableStyle="bordered" 
     :theme="theme3" 
     :per-page-values="[5,10,25,50]"
     title="TODOS"  
    :rows_data="todos" 
    v-on:checked-rows="getChecked"
    v-on:row-click="onrowclick"
    ></vueye-table>
...
</template>
<script>
import VueyeTable from "vueye-datatable";
export default {
  name: "app",
  data() {
    return {
     todos: [],
     theme3: {
			backgroundColor: "#141443",
			color: "#eee",
			rows:{
				borderBottom: "1px solid #eee"
        },
      rowClick: {
				backgroundColor: "#0D0B2F"
			}
			}
    };
  },
  components: {
    VueyeTable
  },
  methods: {
    getChecked(rows){
      //
    },
    onrowclick(row){
        //
    }
  },
  mounted() {
  this.axios.get("https://jsonplaceholder.typicode.com/todos").then(res=>{
      this.todos=res.data;
  })
}
};
</script>

Props

NameDescription
titlethe data table title
colsthe attributes or columns, by default it takes the json object keys
rows_dataJS array of object or json content
per-pages-valuesAn array containing the possible number of rows per page
table-stylethe type of table bordered or striped
checkableshow/hide the checkboxes column and the export checked rows button
v-langspecify the data table language
header-shownshow/hide the data table header
themedefine your own theme by specifying the background color, the text and the border bottom color
0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.3

6 years ago

0.1.0

6 years ago