aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js2
-rw-r--r--node_modules/components-data/anchor.json35
2 files changed, 32 insertions, 5 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
index bb6b049a..4a0ac2b5 100644
--- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
+++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
@@ -268,6 +268,8 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component
268 case "anchor": 268 case "anchor":
269 el = NJUtils.makeNJElement("a", "Anchor", "component"); 269 el = NJUtils.makeNJElement("a", "Anchor", "component");
270 el.elementModel.pi = "AnchorPi"; 270 el.elementModel.pi = "AnchorPi";
271 el.setAttribute("href", "http://www.motorola.com");
272 el.innerHTML = "link";
271 break; 273 break;
272 case "button": 274 case "button":
273 el = NJUtils.makeNJElement(name, "Button", "component"); 275 el = NJUtils.makeNJElement(name, "Button", "component");
diff --git a/node_modules/components-data/anchor.json b/node_modules/components-data/anchor.json
index b0284c7e..04faf04d 100644
--- a/node_modules/components-data/anchor.json
+++ b/node_modules/components-data/anchor.json
@@ -8,14 +8,39 @@
8 "properties": [ 8 "properties": [
9 9
10 { 10 {
11 "name": "label", 11 "name": "textContent",
12 "type": "string", 12 "type": "string",
13 "default": "Button" 13 "default": ""
14 }, 14 },
15 { 15 {
16 "name": "enabled", 16 "name": "href",
17 "type": "boolean", 17 "type": "string",
18 "default": "true" 18 "default": ""
19 },
20 {
21 "name": "hreflang",
22 "type": "string",
23 "default": ""
24 },
25 {
26 "name": "media",
27 "type": "string",
28 "default": ""
29 },
30 {
31 "name": "rel",
32 "type": "string",
33 "default": ""
34 },
35 {
36 "name": "target",
37 "type": "string",
38 "default": ""
39 },
40 {
41 "name": "type",
42 "type": "string",
43 "default": ""
19 } 44 }
20 ] 45 ]
21} \ No newline at end of file 46} \ No newline at end of file