0.0.3 • Published 7 years ago

simple-api-table v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

simple-api-table

Simple Vue 2 table to fetch and sort data from REST API.

Dependencies

Demo

Demo

Installation

npm install simple-api-table

then, in your main.js:

import SimpleApiTable from 'simple-api-table'
Vue.component('simple-api-table', SimpleApiTable)

Usage

<simple-api-table url="/your/url/here"> </simple-api-table>

API

OptionValueDefaultDescription
urlhttp://your/url or /your/urlundefined (required)Specifies the API Url
orderedtrue or falsetrueDisplay records with order numbers
header-casestart, camel, kebabstartTransform keys to a case for table headings
sort-by-defaultThe key you want to sort byFirst keyKey the table will be sorted by on render
sort-dir-defaultasc or descascDirection the table will be sorted in on render
except-keysArray of keys[]Keys you dont want to be displayed

License

MIT

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago