0.1.21 • Published 5 years ago

@mrpaaj/vue-datatable v0.1.21

Weekly downloads
1
License
MIT
Repository
github
Last release
5 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

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago