You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Anoop 77b0dcde20 Initial Commit преди 2 години
cypress Initial Commit преди 2 години
src Initial Commit преди 2 години
test Initial Commit преди 2 години
.eslintignore Initial Commit преди 2 години
.eslintrc Initial Commit преди 2 години
.gitignore Initial Commit преди 2 години
LICENSE Initial Commit преди 2 години
README.md Initial Commit преди 2 години
cypress.json Initial Commit преди 2 години
index.html Initial Commit преди 2 години
package.json Initial Commit преди 2 години
rollup.config.js Initial Commit преди 2 години
yarn.lock Initial Commit преди 2 години

README.md

XhiveFramework DataTable

A modern datatable library for the web

Test and Release npm version MIT License npm bundle size (minified + gzip) semantic-release

Introduction

XhiveFramework DataTable is a simple, modern and interactive datatable library for displaying tabular data. Originally built for XhiveERP, it can be used to render large amount 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.

Demo

datatable-demo-2

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 xhiveframework-datatable
# or
npm install xhiveframework-datatable

Note: sortablejs is 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.html located in the root folder, and start development.
  • Run yarn lint before committing changes
  • This project uses commitizen for conventional commit messages, use yarn commit command instead of git commit

License

MIT