d-draggable-table
Derby draggable table component. Based on derby sink.
Features
- Rows sorting using drag&drop
- Sorting rows by any column
Usage
Install
npm install d-draggable-table
App index
appcomponent require'd-draggable-table/components/sortable-table'appcomponent require'd-draggable-table'
Styles
@import 'node_modules/d-draggable-table/styles/index'
Data format
defaultData = cells: 1'a''2''helo''1' cells: 3'b''1''world''3' cells: 2'd''3''test''a' cells: 4'c''4''string''c'
WIthin template
view(name='d-draggable-table')
You can pass table and headers data parameters to the component as follows:
view(name='d-draggable-table', table='{{_page.data}}', headers='{{_page.headers}}')