1.17.17 • Published 1 year ago
@saashq/datatable v1.17.17
Saashq Datatable
Introduction
Saashq DataTable is a simple, modern and interactive datatable library for displaying tabular data. It can be used to render large amounts of rows without sacrificing performance and has the basic data grid features like inline editing and keyboard navigation. It does not require jQuery, unlike most data grids out there.
Features
Cell Features
- Custom Formatters
- Inline Editing
- Mouse Selection
- Copy Cells
- Keyboard Navigation
- Custom Cell Editor
Column Features
- Reorder Columns
- Sort by Column
- Remove / Hide Column
- Custom Actions
- Resize Column
- Flexible Layout
Row Features
- Row Selection
- Tree Structured Rows
- Inline Filters
- Large Number of Rows
- Dynamic Row Height
Install
yarn add @saashq/datatable
# or
npm install @saashq/datatableNote:
sortablejsis required to be installed as well.
Usage
const datatable = new DataTable('#datatable', {
columns: [ 'First Name', 'Last Name', 'Position' ],
data: [
[ 'Don', 'Joe', 'Designer' ],
[ 'Mary', 'Jane', 'Software Developer' ]
]
});Contribution
yarn start- Start dev server- Open
index.htmllocated in the root folder, and start development. - Run
yarn lintbefore committing changes - This project uses commitizen for conventional commit messages, use
yarn commitcommand instead ofgit commit