diff --git a/platform/features/layout/bundle.json b/platform/features/layout/bundle.json
index 7fb9b0f2bf..c29fe94f92 100644
--- a/platform/features/layout/bundle.json
+++ b/platform/features/layout/bundle.json
@@ -13,43 +13,47 @@
"model": { "composition": [] },
"properties": [
{
- "label": "Preferred Size",
- "control": "_textfields",
- "values": [
+ "name": "Preferred Size",
+ "control": "composite",
+ "items": [
{
- "label": "Width (px)",
+ "name": "Width (px)",
+ "control": "textfield",
"pattern": "^(\\d*[1-9]\\d*)?$"
},
{
- "label": "Height (px)",
+ "name": "Height (px)",
+ "control": "textfield",
"pattern": "^(\\d*[1-9]\\d*)?$"
}
],
- "key": "preferredSize",
+ "property": "preferredSize",
"conversion": "number[]"
},
{
- "label": "Layout Grid",
- "control": "_textfields",
- "values": [
+ "name": "Layout Grid",
+ "control": "composite",
+ "items": [
{
- "label": "Horizontal grid (px)",
+ "name": "Horizontal grid (px)",
+ "control": "textfield",
"pattern": "^(\\d*[1-9]\\d*)?$"
},
{
- "label": "Vertical grid (px)",
+ "name": "Vertical grid (px)",
+ "control": "textfield",
"pattern": "^(\\d*[1-9]\\d*)?$"
}
],
- "key": "layoutGrid",
+ "property": "layoutGrid",
"conversion": "number[]"
},
{
- "label": "Default View",
- "control": "_select",
- "values": [
- "Plot",
- "Scrolling"
+ "name": "Default View",
+ "control": "select",
+ "options": [
+ { "name": "Plot", "value": "plot" },
+ { "name": "Scrolling", "value": "scrolling" }
],
"comment": "TODO: Infer values from type",
"key": "defaultView"
diff --git a/platform/forms/bundle.json b/platform/forms/bundle.json
index be979e2f77..2954a8eeea 100644
--- a/platform/forms/bundle.json
+++ b/platform/forms/bundle.json
@@ -29,6 +29,10 @@
{
"key": "textfield",
"templateUrl": "templates/controls/textfield.html"
+ },
+ {
+ "key": "composite",
+ "templateUrl": "templates/controls/composite.html"
}
],
"controllers": [
diff --git a/platform/forms/res/templates/controls/composite.html b/platform/forms/res/templates/controls/composite.html
new file mode 100644
index 0000000000..b9c217654f
--- /dev/null
+++ b/platform/forms/res/templates/controls/composite.html
@@ -0,0 +1,13 @@
+