0.1.2 • Published 2 years ago

maxfront-custom-table v0.1.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

maxfront-custom-table

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Usage

Import the package in your component

import { MaxTable } from 'maxfront-custom-table'

Basic syntax

<max-table :columns="[]" :data="[]"></max-table>

Options

OptionTypeDescription
columnsArrayAn object array of the column names. IT is always in the format { name: '', display: '' } Name: The property name of the column in the table data Display: The text that will be displayed
dataArrayAn object array of the rows in the table. Note: Each column name must match a single property of the objects in this array
stripedBooleanAdd the bootstrap 'table-striped' class. (true)
borderlessBooleanAdd the bootstrap 'table-borderless' class. (true)
borderedBooleanAdd the bootstrap 'table-bordered' class. (true)