This package has been deprecated

Author message:

WARNING: This package has been renamed. Install via 'npm install vue-grouped-table'

@acarat/vue-grouped-table

0.1.6 • Public • Published

vue-grouped-table

Usage

Install

npm install @acarat/vue-grouped-table

Import the component

import { GroupedTable } from "@acarat/vue-grouped-table";

Use the component in your Vue project

<GroupedTable :headers="[
                          'city',
                          'name',
                          'age',
                          'genre'
                        ]"
              :entries="[
                          { city: 'Dublin', name: 'Antoine', age: 23, genre: 'M' },
                          { city: 'Dublin', name: 'Margaux', age: 24, genre: 'F' },
                          { city: 'Nantes', name: 'Mattis', age: 23, genre: 'M' },
                          { city: 'Nantes', name: 'Hugo', age: 24, genre: 'M' },
                          { city: 'Nantes', name: 'Laurie', age: 23, genre: 'F' },
                          { city: 'Marrakech', name: 'Amr', age: 25, genre: 'M' }
                        ]"
/>

Props

headers

headers must be an Array containing the headers of the table, ie the properties by which the data is grouped.

entries

entries is the raw data itself and must be an Array of Object.

Readme

Keywords

none

Package Sidebar

Install

npm i @acarat/vue-grouped-table

Weekly Downloads

20

Version

0.1.6

License

none

Unpacked Size

830 kB

Total Files

21

Last publish

Collaborators

  • acarat