create-table-picker
v0.1.2
Published
A table creater
Downloads
273
Readme
create-table-picker
Table creater based on react-hovertable
Installation
$ npm install --save create-table-picker
Usage
Put the React component that you want to trigger the picker to open in TablePicker
's children. TablePicker
will automatically open when children is onClick
.
var TablePicker = require('create-table-picker');
function onChange(data) {
// for example, {rowNumber: 6, columnNumber: 6}
console.log(data);
}
ReactDOM.render(
<TablePicker onChange={onChange}>
<button>click me</button>
</TablePicker>
, document.getElementById('root'));
Start example server
npm start
License
MIT © Canner