table-run
the official table for apprun/fullfack apps
Demo
Requirements
- Vue 2.X.X
Usage
-
Install from npm
npm install table-run
Or include in your html using the script tag
- Add component in your app
;// or require('table-run');// or window.TableRun if you are including in a script tag components: TableRun
- Create some parameters in your data object
data: columns: id: 1 name: 'Id' isSortable: down: true up: false id: 2 name: 'Name' isSortable: down: true up: false id: 3 name: 'Description' isSortable: down: true up: false rows: id: 1 name: 'Eduardo' description: 'javascript developer' id: 2 name: 'Arelis' description: 'front-end developer' id: 3 name: 'Lndn' description: 'QP person' components: TableRun
- In your template call the table-run component including one slot per row
{{props.row.id}} {{props.row.name}} {{props.row.description}}
Build Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run component