From f2f6ed48634ee4d74dd780c66e58c6b1e00234dd Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 14 Feb 2012 23:47:19 -0800 Subject: Completing the anchor element Signed-off-by: Valerio Virgillito --- .../ComponentsPanelBase.js | 2 ++ node_modules/components-data/anchor.json | 35 ++++++++++++++++++---- 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 case "anchor": el = NJUtils.makeNJElement("a", "Anchor", "component"); el.elementModel.pi = "AnchorPi"; + el.setAttribute("href", "http://www.motorola.com"); + el.innerHTML = "link"; break; case "button": 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 @@ "properties": [ { - "name": "label", + "name": "textContent", "type": "string", - "default": "Button" + "default": "" }, { - "name": "enabled", - "type": "boolean", - "default": "true" + "name": "href", + "type": "string", + "default": "" + }, + { + "name": "hreflang", + "type": "string", + "default": "" + }, + { + "name": "media", + "type": "string", + "default": "" + }, + { + "name": "rel", + "type": "string", + "default": "" + }, + { + "name": "target", + "type": "string", + "default": "" + }, + { + "name": "type", + "type": "string", + "default": "" } ] } \ No newline at end of file -- cgit v1.2.3