選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <div align="center">
  2. <img src="https://github.com/xhiveframework/design/raw/master/logos/logo-2019/xhiveframework-datatable-logo.png" height="128">
  3. <h2>XhiveFramework DataTable</h2>
  4. <p align="center">
  5. <p>
  6. A modern datatable library for the web
  7. </p>
  8. [![Test and Release](https://github.com/xhiveframework/datatable/workflows/Test%20and%20Release/badge.svg)](https://github.com/xhiveframework/datatable/actions?query=workflow%3A%22Test+and+Release%22)
  9. [![npm version](https://badge.fury.io/js/xhiveframework-datatable.svg)](https://badge.fury.io/js/xhiveframework-datatable)
  10. [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
  11. ![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/xhiveframework-datatable.svg)
  12. [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
  13. </div>
  14. ## Introduction
  15. XhiveFramework DataTable is a simple, modern and interactive datatable library for displaying tabular data. Originally built for [XhiveERP](https://github.com/xhiveframework/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.
  16. ## Demo
  17. ![datatable-demo-2](https://user-images.githubusercontent.com/9355208/40740030-5412aa40-6465-11e8-8542-b0247ab1daac.gif)
  18. ## Features
  19. ### Cell Features
  20. * Custom Formatters
  21. * Inline Editing
  22. * Mouse Selection
  23. * Copy Cells
  24. * Keyboard Navigation
  25. * Custom Cell Editor
  26. ### Column Features
  27. * Reorder Columns
  28. * Sort by Column
  29. * Remove / Hide Column
  30. * Custom Actions
  31. * Resize Column
  32. * Flexible Layout
  33. ### Row Features
  34. * Row Selection
  35. * Tree Structured Rows
  36. * Inline Filters
  37. * Large Number of Rows
  38. * Dynamic Row Height
  39. ## Install
  40. ```bash
  41. yarn add xhiveframework-datatable
  42. # or
  43. npm install xhiveframework-datatable
  44. ```
  45. > Note: [`sortablejs`](https://github.com/RubaXa/Sortable) is required to be installed as well.
  46. ## Usage
  47. ```js
  48. const datatable = new DataTable('#datatable', {
  49. columns: [ 'First Name', 'Last Name', 'Position' ],
  50. data: [
  51. [ 'Don', 'Joe', 'Designer' ],
  52. [ 'Mary', 'Jane', 'Software Developer' ]
  53. ]
  54. });
  55. ```
  56. ## Contribution
  57. * `yarn start` - Start dev server
  58. * Open `index.html` located in the root folder, and start development.
  59. * Run `yarn lint` before committing changes
  60. * This project uses [commitizen](https://github.com/commitizen/cz-cli) for conventional commit messages, use `yarn commit` command instead of `git commit`
  61. ## License
  62. [MIT](http://opensource.org/licenses/MIT)