diff options
-rwxr-xr-x | js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | 22 | ||||
-rw-r--r-- | node_modules/components-data/feed-reader.json | 15 | ||||
-rw-r--r-- | node_modules/components-data/map.json | 22 | ||||
-rw-r--r-- | node_modules/components-data/searchfield.json | 20 |
4 files changed, 78 insertions, 1 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js index b4eec771..981e666f 100755 --- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js +++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | |||
@@ -23,6 +23,26 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component | |||
23 | "text": "styles", | 23 | "text": "styles", |
24 | "children": [ | 24 | "children": [ |
25 | { | 25 | { |
26 | "text": "Widgets", | ||
27 | "children": [ | ||
28 | { | ||
29 | "text": "Map", | ||
30 | "dataFile" : "node_modules/components-data/map.json", | ||
31 | "component": "map" | ||
32 | }, | ||
33 | { | ||
34 | "text": "Feed Reader", | ||
35 | "dataFile" : "node_modules/components-data/feed-reader.json", | ||
36 | "component": "feedreader" | ||
37 | }, | ||
38 | { | ||
39 | "text": "Search Bar", | ||
40 | "dataFile" : "node_modules/components-data/searchfield.json", | ||
41 | "component": "searchfield" | ||
42 | } | ||
43 | ] | ||
44 | }, | ||
45 | { | ||
26 | "text": "Montage Components", | 46 | "text": "Montage Components", |
27 | "children": [ | 47 | "children": [ |
28 | { | 48 | { |
@@ -50,7 +70,7 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component | |||
50 | "dataFile" : "node_modules/components-data/number-input.json", | 70 | "dataFile" : "node_modules/components-data/number-input.json", |
51 | "component": "numberInput" | 71 | "component": "numberInput" |
52 | }, | 72 | }, |
53 | { | 73 | { |
54 | "text": "Select Input", | 74 | "text": "Select Input", |
55 | "dataFile" : "node_modules/components-data/select.json", | 75 | "dataFile" : "node_modules/components-data/select.json", |
56 | "component": "select" | 76 | "component": "select" |
diff --git a/node_modules/components-data/feed-reader.json b/node_modules/components-data/feed-reader.json new file mode 100644 index 00000000..6caf768d --- /dev/null +++ b/node_modules/components-data/feed-reader.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "component": "feedreader", | ||
3 | |||
4 | "module": "montage/ui/feed-reader/feed-reader.reel", | ||
5 | |||
6 | "name": "FeedReader", | ||
7 | |||
8 | "properties": [ | ||
9 | { | ||
10 | "name": "feedURL", | ||
11 | "type": "string", | ||
12 | "default": null | ||
13 | } | ||
14 | ] | ||
15 | } \ No newline at end of file | ||
diff --git a/node_modules/components-data/map.json b/node_modules/components-data/map.json new file mode 100644 index 00000000..071fa73a --- /dev/null +++ b/node_modules/components-data/map.json | |||
@@ -0,0 +1,22 @@ | |||
1 | { | ||
2 | "component": "map", | ||
3 | |||
4 | "module": "montage/ui/map.reel", | ||
5 | |||
6 | "name": "Map", | ||
7 | |||
8 | "properties": [ | ||
9 | { | ||
10 | "name": "category", | ||
11 | "type": "string", | ||
12 | "default": null, | ||
13 | "possibleValues": ["restaurant", "hospital", "cafe", "museum"] | ||
14 | }, | ||
15 | { | ||
16 | "name": "center", | ||
17 | "type": "string", | ||
18 | "default": null | ||
19 | } | ||
20 | |||
21 | ] | ||
22 | } \ No newline at end of file | ||
diff --git a/node_modules/components-data/searchfield.json b/node_modules/components-data/searchfield.json new file mode 100644 index 00000000..94c570d9 --- /dev/null +++ b/node_modules/components-data/searchfield.json | |||
@@ -0,0 +1,20 @@ | |||
1 | { | ||
2 | "component": "searchfield", | ||
3 | |||
4 | "module": "montage/ui/textfield.reel", | ||
5 | |||
6 | "name": "Textfield", | ||
7 | |||
8 | "properties": [ | ||
9 | { | ||
10 | "name": "valueBinding", | ||
11 | "type": "string", | ||
12 | "default": null | ||
13 | }, | ||
14 | { | ||
15 | "name": "value", | ||
16 | "type": "string", | ||
17 | "default": "" | ||
18 | } | ||
19 | ] | ||
20 | } \ No newline at end of file | ||