material-editable-table
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "material-editable-table", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A materialized, static table react component to display JSON data", | ||
@@ -5,0 +5,0 @@ "main": "build/index.min.js", |
@@ -12,32 +12,28 @@ # material-editable-table | ||
* column | ||
An array containing column definitions | ||
An array containing column definitions | ||
```javascript | ||
{ | ||
tootlp : "id", // The value to be displayed when column header is hovered | ||
readonly : true, // If set to true, this column won't be editable even if the editing props of the table is set | ||
name : "id" // The value displayed on the column header | ||
{ | ||
tooltip : "id", // The value to be displayed when column header is hovered | ||
readonly : true, // If set to true, this column won't be editable even if the editing props of the table is set | ||
name : "id" // The value displayed on the column header | ||
} | ||
``` | ||
``` | ||
* items | ||
An array containing data in json format | ||
An array containing data in json format | ||
```javascript | ||
{ | ||
tootlp : "id", // The value to be displayed when column header is hovered | ||
readonly : true, // If set to true, this column won't be editable if the editing props of the table is set | ||
name : "id" // The value displayed on the column header | ||
} | ||
``` | ||
{id: 1, name: "The first line"} | ||
``` | ||
* showToggle | ||
A boolean value to decide if the editing toggle is shown. Note that this value doesn't affect `editing` or `editable` | ||
A boolean value to decide if the editing toggle is shown. Note that this value doesn't affect `editing` or `editable` | ||
* editing | ||
A boolean value to decide if the table can be edited initially | ||
A boolean value to decide if the table can be edited initially | ||
* editable | ||
Set this to `true` to enable editing feature | ||
Set this to `true` to enable editing feature | ||
* [Other Props] | ||
Other props not discussed above will be propegated to Table component from [material-ui#Table](www.material-ui.com/#/components/table). You can affect table appearance and behaviors there. | ||
Other props not discussed above will be propegated to Table component from [material-ui#Table](www.material-ui.com/#/components/table). You can affect table appearance and behaviors there. | ||
@@ -58,3 +54,3 @@ ## Simple Demostration | ||
</div> | ||
<script src="main.entry.js"></script> <!-- This file is generated using wepack --> | ||
<script src="main.entry.js"></script> <!-- This file is generated using wepack --> | ||
</body> | ||
@@ -94,2 +90,2 @@ </html> | ||
## Licence | ||
MIT | ||
MIT |
28409
89