From 90e2b3455a123af8751d63381609b3a5ae304051 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 16 Feb 2012 22:33:08 -0800 Subject: Fixing the selectInput and finishing the textinput Signed-off-by: Valerio Virgillito --- .../ComponentsPanelBase.js | 2 +- node_modules/components-data/textfield.json | 112 ++++++++++++++++++++- 2 files changed, 109 insertions(+), 5 deletions(-) diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js index bcb14013..b4eec771 100755 --- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js +++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js @@ -300,7 +300,7 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component break; case "select": el = NJUtils.makeNJElement("select", "Select", "component"); - el.elementModel.pi = "SelectPi"; + el.elementModel.pi = "SelectInputPi"; break; case "radioButton": el = NJUtils.makeNJElement("input", "Radio Button", "component"); diff --git a/node_modules/components-data/textfield.json b/node_modules/components-data/textfield.json index 4f8a1499..7164b8b3 100644 --- a/node_modules/components-data/textfield.json +++ b/node_modules/components-data/textfield.json @@ -6,16 +6,120 @@ "name": "Textfield", "properties": [ - { - "name": "value", + "name": "accept", + "type": "string", + "default": null + }, + { + "name": "autocomplete", "type": "string", - "default": "Button" + "default": "" + }, + { + "name": "autofocus", + "type": "boolean", + "default": "" + }, + { + "name": "checked", + "type": "boolean", + "default": "" }, { "name": "disabled", "type": "boolean", - "default": "false" + "default": "" + }, + { + "name": "formaction", + "type": "string", + "default": "" + }, + { + "name": "formenctype", + "type": "string", + "default": "" + }, + { + "name": "formmethod", + "type": "string", + "default": "" + }, + { + "name": "formnovalidate", + "type": "boolean", + "default": "" + }, + { + "name": "formtarget", + "type": "string", + "default": "" + }, + { + "name": "list", + "type": "string", + "default": "" + }, + { + "name": "maxlength", + "type": "number", + "default": "" + }, + { + "name": "multiple", + "type": "boolean", + "default": "" + }, + { + "name": "name", + "type": "string", + "default": "" + }, + { + "name": "pattern", + "type": "string", + "default": "" + }, + { + "name": "placeholder", + "type": "string", + "default": "" + }, + { + "name": "readonly", + "type": "boolean", + "default": "" + }, + { + "name": "required", + "type": "boolean", + "default": "" + }, + { + "name": "selectionDirection", + "type": "string", + "default": "" + }, + { + "name": "size", + "type": "number", + "default": "" + }, + { + "name": "src", + "type": "string", + "default": "" + }, + { + "name": "step", + "type": "number", + "default": "" + }, + { + "name": "value", + "type": "string", + "default": "" } ] } \ No newline at end of file -- cgit v1.2.3