From 14f28d0031dc9d522b4ae7d1dbff192b8d8a670e Mon Sep 17 00:00:00 2001 From: François Frisch Date: Sat, 17 Mar 2012 11:58:58 -0700 Subject: Adding components to PI --- .../ComponentsPanelBase.js | 22 +++++++++++++++++++++- node_modules/components-data/feed-reader.json | 15 +++++++++++++++ node_modules/components-data/map.json | 22 ++++++++++++++++++++++ node_modules/components-data/searchfield.json | 20 ++++++++++++++++++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 node_modules/components-data/feed-reader.json create mode 100644 node_modules/components-data/map.json create mode 100644 node_modules/components-data/searchfield.json 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 @@ -22,6 +22,26 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component value: { "text": "styles", "children": [ + { + "text": "Widgets", + "children": [ + { + "text": "Map", + "dataFile" : "node_modules/components-data/map.json", + "component": "map" + }, + { + "text": "Feed Reader", + "dataFile" : "node_modules/components-data/feed-reader.json", + "component": "feedreader" + }, + { + "text": "Search Bar", + "dataFile" : "node_modules/components-data/searchfield.json", + "component": "searchfield" + } + ] + }, { "text": "Montage Components", "children": [ @@ -50,7 +70,7 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component "dataFile" : "node_modules/components-data/number-input.json", "component": "numberInput" }, - { + { "text": "Select Input", "dataFile" : "node_modules/components-data/select.json", "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 @@ +{ + "component": "feedreader", + + "module": "montage/ui/feed-reader/feed-reader.reel", + + "name": "FeedReader", + + "properties": [ + { + "name": "feedURL", + "type": "string", + "default": null + } + ] +} \ 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 @@ +{ + "component": "map", + + "module": "montage/ui/map.reel", + + "name": "Map", + + "properties": [ + { + "name": "category", + "type": "string", + "default": null, + "possibleValues": ["restaurant", "hospital", "cafe", "museum"] + }, + { + "name": "center", + "type": "string", + "default": null + } + + ] +} \ 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 @@ +{ + "component": "searchfield", + + "module": "montage/ui/textfield.reel", + + "name": "Textfield", + + "properties": [ + { + "name": "valueBinding", + "type": "string", + "default": null + }, + { + "name": "value", + "type": "string", + "default": "" + } + ] +} \ No newline at end of file -- cgit v1.2.3