Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revolist/revogrid-column-date
Custom date column type for RevoGrid.
https://github.com/revolist/revogrid-column-date
datepicker revo-grid revogrid webcomponent
Last synced: 3 months ago
JSON representation
Custom date column type for RevoGrid.
- Host: GitHub
- URL: https://github.com/revolist/revogrid-column-date
- Owner: revolist
- License: mit
- Created: 2020-11-23T20:51:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T14:08:25.000Z (over 1 year ago)
- Last Synced: 2024-05-02T02:21:32.348Z (8 months ago)
- Topics: datepicker, revo-grid, revogrid, webcomponent
- Language: TypeScript
- Homepage: http://revolist.github.io/revogrid
- Size: 1.58 MB
- Stars: 3
- Watchers: 2
- Forks: 5
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 🚨 Repository Notice 🚨
This repo is read-only and will be **deprecated** in v5+ in favor of monorepos. Post issues [here](https://github.com/revolist/revogrid). Happy coding! 🖥️💻
---
# `revogrid-column-date`
Custom column type for [RevoGrid](https://github.com/revolist/revogrid) component based on [duetds-date-picker](https://github.com/duetds/date-picker) library.## Installation
`npm i @revolist/revogrid-column-date`## How to use
- Import Select Column type;
- Specify table data;
- Per column specify column type;
- Register your column type;
```js// do import
import Plugin from "@revolist/revogrid-column-date";const columns = [{ prop: 'name', columnType: 'date' }];
const rows = [{ name: '2020-08-24' }, { name: '2022-08-24' }];// register column type
const columnTypes = { 'date': new Plugin() };// apply data to grid per your framework approach
```