svelte-datatable
v2.0.1
Published
Datatable for Svelte with Materialize
Downloads
74
Maintainers
Readme
svelte datatable
This project was created by the Svelte REPL.
Data Table component was converted to Svelte from MicroDroid/vue-materialize-datatable project.
Paginate component was converted to Svelte from https://github.com/lokyoung/vuejs-paginate project.
Features
- Sorting, with numerical sorting
- Pagination - Client & Server Side
- Fuzzy searching
- Excel export
- Printing
- Custom topbar buttons
- Flexible data-from-row extractor
- Follows the Material Design spec
- Limited support for IE 11(need Object.assign polyfill)
Requirements
materialize-css(and NOT any other MD library!)- Svelte
Get started
You will need to have Node.js installed.
Install the dependencies...
cd /path/to/this/directory
npm install...then start Rollup:
npm run devNavigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.
Deploying to the web
With now
Install now if you haven't already:
npm install -g nowThen, from within your project folder:
nowAs an alternative, use the Now desktop client and simply drag the unzipped project folder to the taskbar icon.
With surge
Install surge if you haven't already:
npm install -g surgeThen, from within your project folder:
npm run build
surge public