0.1.21 • Published 6 years ago

@mrpaaj/vue-datatable v0.1.21

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

Vue Datatable

Flexible datatable for Vue.js dashboard. Creates a bootstrap card with responsive table.

missing: title styling with .card--title actions styling with .card--actions


Inputs

title

A string used to display the table title.

description

String displayed below the title for a little information.

get (required)

URL where the component will get it's table-data from.
Currently tested only for Laravel Resource with Pagination. Component processing accepts different field options:

$rows => [
  [
    'simple-field' => 'String' / Int,
    'links-field' => [
      'links' => [
        [
          'href' => url,
          'label' => html/string
        ],
      ]
    ],
  ],
];

actions

To display different table actions top right.

$actions = [
    'action' => [
        'href' => url,
        'label' => html/string
    ],
];

filters

Array with column names and their filter options.

$filters = [
  'column' => [
    'id' => 'label'
  ]
];

columns

Array of column names to display. If empty: all columns in resource will be shown.

$columns = [
  'column_1',
  'column_2',
];
0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago