1.3.2 • Published 6 years ago

vue-infinite-scroll-table v1.3.2

Weekly downloads
21
License
MIT
Repository
github
Last release
6 years ago

See the Live Demo!

Usage:

data - JSON - required: The data that you want to render in your table rowHeight - Number - required - The height of the row header - JSON - required - The configuration for defining display order, sortable columns, data types, and data output transformations.

<template>
    <infinite-table
      :data="yourData"
      rowHeight="48"
      :header="header">
      </infinite-table>
</template>
<script>
import InfiniteTable from 'vue-infinite-scroll-table'

export default {
    components: {
        InfiniteTable
    },
    data: () => ({
        yourData: yourData,
        header: [
            { key: 'firstColumnKey', label: 'First Column Label', sortable: true, width: 100 },
            { key: 'secondColumnKey', label: 'Some Date Column', type: 'date', width: 200 },
            { key: 'thirdColumnKey', label: 'Some Image Column', type: 'image', width: 200 }
            { key: 'fourthColumnKey', label: 'fourthColumnKey', width: 100 }
        ]
    }),
}
</script>

Header Config Rules

Each object in the header array will map to a value in the table.

Key, and Label are required, but type, width and sortable are optional.

Width is optional, but recommended. It defines the width of your column so that it doesn't flex to fit the content.

Type is used for sorting on date values, and rendering images.

sortable: true will enable sorting by clicking on the column header.

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago