1.1.7 • Published 7 years ago

vue-instant-table v1.1.7

Weekly downloads
87
License
-
Repository
-
Last release
7 years ago

vue-instant-table

Instant table generator with awesome Vue

Installation

Quick Install

# yarn
yarn add vue-instant-table

# npm
npm install --save vue-instant-table

Dependencies

Usage

Javascript Section

import VueInstantTable from 'vue-instant-table';

const app = new Vue({
    el: '#app',
    components: {
        'vue-instant-table': VueInstantTable
    },
    data: function () {
        return {
            table: {
                data: ...,
                columns: ...,
                filter: '',
                options: {
                  pagination: {
                      itemsPerPageList: [10, 30, 50]
                  }
                },
                rowActions: {
                    update: {
                        label: 'Edit',
                        icon: 'fa fa-pencil',
                        class: 'btn btn-xs btn-primary btn-circle'
                    },
                    delete: {
                        label: 'Remove',
                        icon: 'fa fa-trash',
                        class: 'btn btn-xs btn-danger btn-circle'
                    }
                }
            }
        }
    },
    methods: {
        openEditModal: function (rowData, index) {
        },
        openRemoveModal: function (rowData, index) {
        },
    }
});

HTML Section

<vue-instant-table
    v-model="table.data"
    :columns="table.columns"
    :filter="table.filter"
    :options="table.options"
    :row-actions="table.rowActions"
    v-on:row-update="openUpdateModal"
    v-on:row-delete="openDeleteModal">
</vue-instant-table>

TODO

  • reduce dependencies

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test
1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago