support custom components as action elements (#536)

* support custom components as action elements

* fix action type

* remove testing code

* disable demo button by default
This commit is contained in:
Denys Vuika
2018-07-25 15:14:07 +01:00
committed by GitHub
parent 5c0ab7b8f0
commit 262240c8ea
7 changed files with 149 additions and 5 deletions

View File

@@ -109,7 +109,7 @@
"type": {
"description": "Element type",
"type": "string",
"enum": ["default", "button", "separator", "menu"]
"enum": ["default", "button", "separator", "menu", "custom"]
},
"title": {
"description": "Element title",
@@ -127,6 +127,10 @@
"description": "Toggles disabled state",
"type": "boolean"
},
"component": {
"description": "Custom component id (requires type to be 'custom')",
"type": "string"
},
"children": {
"description": "Child entries for the container types.",
"type": "array",