Unfinished support for updating attributes
This commit is contained in:
@ -11,6 +11,10 @@
|
||||
"html": false
|
||||
},
|
||||
"attributes": {
|
||||
"selectedDataset": {
|
||||
"type": "number",
|
||||
"default": 1
|
||||
},
|
||||
"columnTypes": {
|
||||
"type": "object",
|
||||
"default": {}
|
||||
@ -39,29 +43,93 @@
|
||||
"type": "number",
|
||||
"default": 1
|
||||
},
|
||||
"datasets": {
|
||||
"gridColumnDefinitions": {
|
||||
"type": "array",
|
||||
"default": [
|
||||
{
|
||||
"name": "Data",
|
||||
"columns": [
|
||||
{
|
||||
"field": "Department",
|
||||
"dataType": "text",
|
||||
"renderFormat": "text",
|
||||
"sorted": "",
|
||||
"width": 150,
|
||||
"editable": true,
|
||||
"position": 0
|
||||
},
|
||||
{
|
||||
"field": "Budget",
|
||||
"dataType": "number",
|
||||
"renderFormat": "currency",
|
||||
"sorted": "asc",
|
||||
"width": 120,
|
||||
"editable": true,
|
||||
"position": 1
|
||||
},
|
||||
{
|
||||
"field": "MeetAt",
|
||||
"dataType": "date",
|
||||
"renderFormat": "datetime",
|
||||
"sorted": "",
|
||||
"width": 150,
|
||||
"editable": true,
|
||||
"position": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Locations",
|
||||
"columns": [
|
||||
{
|
||||
"field": "State",
|
||||
"dataType": "text",
|
||||
"renderFormat": "text",
|
||||
"sorted": "",
|
||||
"width": 150,
|
||||
"editable": true,
|
||||
"position": 0
|
||||
},
|
||||
{
|
||||
"field": "Coordinates",
|
||||
"dataType": "number",
|
||||
"renderFormat": "number",
|
||||
"sorted": "",
|
||||
"width": 120,
|
||||
"editable": true,
|
||||
"position": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"datasets": {
|
||||
"type": "array",
|
||||
"default": [
|
||||
{
|
||||
"name": "Main",
|
||||
"data": [
|
||||
{
|
||||
"Department": "Sheriffs Office",
|
||||
"Budget": "150",
|
||||
"Budget": 1,
|
||||
"MeetAt": "2025-01-26T14:30:00Z",
|
||||
"preferredColor": "red",
|
||||
"PostContent": "<div> </div>"
|
||||
},
|
||||
{
|
||||
"Department": "Assessor",
|
||||
"Budget": "100",
|
||||
"Budget": 2,
|
||||
"MeetAt": "2025-01-26T14:30:00Z",
|
||||
"preferredColor": "#232323",
|
||||
"PostContent": "<div> </div>"
|
||||
},
|
||||
{
|
||||
"Department": "Treasurer",
|
||||
"Budget": "50",
|
||||
"Budget": 3,
|
||||
"MeetAt": "2025-01-26T14:30:00Z",
|
||||
"preferredColor": "#E72323",
|
||||
"PostContent": "<div> </div>"
|
||||
|
||||
@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '5afb8b4f337b11cc4837');
|
||||
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '7a75b5732cbc1928c7a2');
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user