uxcore-date-cell-field

uxcore-date-cell-field component for uxcore.

Usage no npm install needed!

<script type="module">
  import uxcoreDateCellField from 'https://cdn.skypack.dev/uxcore-date-cell-field';
</script>

README


uxcore-date-cell-field Dependency Status devDependency Status

TL;DR

uxcore-date-cell-field ui component for react

setup develop environment

$ git clone https://github.com/uxcore/uxcore-date-cell-field
$ cd uxcore-date-cell-field
$ npm install
$ gulp server

Usage

var Table = require('uxcore-table');
var DateCellField = require('uxcore-date-cell-field');
var columns = [
    { dataKey: 'startDate', title: 'Start Date', type: 'custom', customField: DateCellField },
    { dataKey: 'endDate', title: 'End Date', type: 'custom', customField: DateCellField, 
        config: {locale: 'en-us', placeholder: 'please select date'}
    }
];
React.render(
  (<Table jsxcolumns={columns} ref="grid" />),
  document.getElementById('target')
);

demo

http://uxcore.github.io/

API

Props

配置项 类型 必填 默认值 功能/备注

See uxcore-calendar