Update README.md (#201)
This commit is contained in:
parent
ecc660ed68
commit
9193fd9b06
75
README.md
75
README.md
@ -1,55 +1,34 @@
|
|||||||
<div align="center">
|
<div align="center" markdown="1">
|
||||||
<img src="https://github.com/frappe/design/raw/master/logos/logo-2019/frappe-datatable-logo.png" height="128">
|
|
||||||
<h2>Frappe DataTable</h2>
|
<img width="80" alt="datatable-logo" src="https://github.com/user-attachments/assets/8235f4b9-993a-4329-97de-9431dcf63aae" >
|
||||||
<p align="center">
|
|
||||||
<p>
|
<h1>Frappe DataTable</h1>
|
||||||
A modern datatable library for the web
|
|
||||||
</p>
|
**A modern datatable library for the web**
|
||||||
|
|
||||||
[](https://github.com/frappe/datatable/actions?query=workflow%3A%22Test+and+Release%22)
|
[](https://github.com/frappe/datatable/actions?query=workflow%3A%22Test+and+Release%22)
|
||||||
[](https://badge.fury.io/js/frappe-datatable)
|
[](https://badge.fury.io/js/frappe-datatable)
|
||||||
[](http://opensource.org/licenses/MIT)
|
|
||||||

|

|
||||||
[](https://github.com/semantic-release/semantic-release)
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
## Introduction
|
|
||||||
|
|
||||||
Frappe DataTable is a simple, modern and interactive datatable library for displaying tabular data. Originally built for [ERPNext](https://github.com/frappe/erpnext), 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
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Features
|
</div>
|
||||||
|
|
||||||
### Cell Features
|
## Frappe Datatable
|
||||||
|
|
||||||
* Custom Formatters
|
Frappe DataTable is a simple, modern and interactive datatable library for displaying tabular data. Originally built for [ERPNext](https://github.com/frappe/erpnext), 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.
|
||||||
* Inline Editing
|
|
||||||
* Mouse Selection
|
|
||||||
* Copy Cells
|
|
||||||
* Keyboard Navigation
|
|
||||||
* Custom Cell Editor
|
|
||||||
|
|
||||||
### Column Features
|
### Motivation
|
||||||
|
|
||||||
* Reorder Columns
|
I was trying to remove all legacy UI components from the [frappe](https://github.com/frappe/frappe) codebase. We were using [SlickGrid](https://github.com/mleibman/SlickGrid) for rendering tables. It was unmaintained and UI was dated. Other datatable solutions either didn't have the features we needed or were closed source. So we built our own.
|
||||||
* Sort by Column
|
|
||||||
* Remove / Hide Column
|
|
||||||
* Custom Actions
|
|
||||||
* Resize Column
|
|
||||||
* Flexible Layout
|
|
||||||
|
|
||||||
### Row Features
|
|
||||||
|
|
||||||
* Row Selection
|
### Key Features
|
||||||
* Tree Structured Rows
|
|
||||||
* Inline Filters
|
- **Cell**: Enable editing within individual cells and features like custom formatters, inline editing, and mouse selection. Users can easily copy cell content, navigate through cells using the keyboard, and take advantage of a custom cell editor for advanced functionality.
|
||||||
* Large Number of Rows
|
- **Column**: Columns are highly flexible, allowing users to reorder, resize, and sort them with ease. Additional features include hiding/removing columns and adding custom actions.
|
||||||
* Dynamic Row Height
|
- **Row**: Rows support advanced interactions, including row selection, tree-structured organization, and inline filters for precise control. They handle large datasets efficiently with dynamic row heights.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
@ -73,18 +52,24 @@ const datatable = new DataTable('#datatable', {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contribution
|
## Development Setup
|
||||||
|
|
||||||
* `yarn start` - Start dev server
|
* `yarn start` - Start dev server
|
||||||
* Open `index.html` located in the root folder, and start development.
|
* Open `index.html` located in the root folder, and start development.
|
||||||
* Run `yarn lint` before committing changes
|
* Run `yarn lint` before committing changes
|
||||||
* This project uses [commitizen](https://github.com/commitizen/cz-cli) for conventional commit messages, use `yarn commit` command instead of `git commit`
|
* This project uses [commitizen](https://github.com/commitizen/cz-cli) for conventional commit messages, use `yarn commit` command instead of `git commit`
|
||||||
|
|
||||||
## Read the blog
|
## Links
|
||||||
|
|
||||||
[Making a new datatable for the web](https://medium.com/frapp%C3%A9-thoughts/things-i-learned-building-a-library-for-the-web-6846a588bf53)
|
- [Making a new datatable for the web](https://medium.com/frapp%C3%A9-thoughts/things-i-learned-building-a-library-for-the-web-6846a588bf53)
|
||||||
|
|
||||||
|
<br>
|
||||||
## License
|
<br>
|
||||||
|
<div align="center" style="padding-top: 0.75rem;">
|
||||||
[MIT](http://opensource.org/licenses/MIT)
|
<a href="https://frappe.io" target="_blank">
|
||||||
|
<picture>
|
||||||
|
<source media="(prefers-color-scheme: dark)" srcset="https://frappe.io/files/Frappe-white.png">
|
||||||
|
<img src="https://frappe.io/files/Frappe-black.png" alt="Frappe Technologies" height="28"/>
|
||||||
|
</picture>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user