From d3373b7ce5bf96618e2f35cd9b23935d14083858 Mon Sep 17 00:00:00 2001 From: neyric Date: Thu, 4 Mar 2010 03:26:58 +0100 Subject: [PATCH] Upgrading to inputEx 0.5.0 --- lib/inputex/404.html | 9 + lib/inputex/README.md | 4 +- lib/inputex/api/AutoComplete.js.html | 86 +- lib/inputex/api/Button.js.html | 431 +++++++ lib/inputex/api/CheckBox.js.html | 62 +- lib/inputex/api/ColorField.js.html | 16 +- lib/inputex/api/ColorPickerField.js.html | 16 +- lib/inputex/api/CombineField.js.html | 25 +- lib/inputex/api/DSSelectField.js.html | 16 +- lib/inputex/api/DataTable.js.html | 46 +- lib/inputex/api/DateField.js.html | 18 +- lib/inputex/api/DatePickerField.js.html | 66 +- lib/inputex/api/DateSelectMonthField.js.html | 20 +- lib/inputex/api/DateSplitField.js.html | 20 +- lib/inputex/api/DateTimeField.js.html | 20 +- lib/inputex/api/Dialog.js.html | 25 +- lib/inputex/api/EmailField.js.html | 23 +- lib/inputex/api/Field.js.html | 50 +- lib/inputex/api/FileField.js.html | 16 +- lib/inputex/api/Form.js.html | 160 ++- lib/inputex/api/Group.js.html | 102 +- lib/inputex/api/HiddenField.js.html | 14 +- lib/inputex/api/IPv4Field.js.html | 16 +- lib/inputex/api/InPlaceEdit.js.html | 65 +- lib/inputex/api/IntegerField.js.html | 18 +- lib/inputex/api/KeyOpValueField-beta.js.html | 67 +- lib/inputex/api/KeyValueField-beta.js.html | 83 +- lib/inputex/api/Lens-beta.js.html | 20 +- lib/inputex/api/ListField.js.html | 33 +- lib/inputex/api/MapField.js.html | 14 +- lib/inputex/api/MenuField.js.html | 43 +- lib/inputex/api/MultiAutoComplete.js.html | 14 +- lib/inputex/api/MultiSelectField.js.html | 44 +- lib/inputex/api/NumberField.js.html | 14 +- lib/inputex/api/PasswordField.js.html | 20 +- lib/inputex/api/RTEField.js.html | 65 +- lib/inputex/api/RadioButton.js.html | 14 +- lib/inputex/api/RadioField.js.html | 56 +- lib/inputex/api/SelectField.js.html | 20 +- lib/inputex/api/SerializeField-beta.js.html | 403 ++++++ lib/inputex/api/SliderField.js.html | 20 +- lib/inputex/api/StringField.js.html | 44 +- lib/inputex/api/Textarea.js.html | 20 +- lib/inputex/api/TimeField.js.html | 20 +- lib/inputex/api/TimeIntervalField.js.html | 21 +- lib/inputex/api/TimeRange.js.html | 320 +++++ lib/inputex/api/TreeField.js.html | 16 +- lib/inputex/api/TypeField.js.html | 95 +- lib/inputex/api/UneditableField.js.html | 16 +- lib/inputex/api/UpperCaseField.js.html | 14 +- lib/inputex/api/UrlField.js.html | 18 +- lib/inputex/api/VectorField.js.html | 22 +- lib/inputex/api/Visus.js.html | 14 +- lib/inputex/api/assets/ac-js | 34 +- lib/inputex/api/classmap.js | 2 +- lib/inputex/api/ddlist.js.html | 14 +- lib/inputex/api/de.js.html | 14 +- lib/inputex/api/dtInPlaceEdit.js.html | 50 +- lib/inputex/api/es.js.html | 16 +- lib/inputex/api/fr.js.html | 16 +- lib/inputex/api/index.html | 17 +- lib/inputex/api/index.json | 2 +- lib/inputex/api/inputEx.AutoComplete.html | 22 +- lib/inputex/api/inputEx.CheckBox.html | 22 +- lib/inputex/api/inputEx.ColorField.html | 22 +- lib/inputex/api/inputEx.ColorPickerField.html | 22 +- lib/inputex/api/inputEx.CombineField.html | 28 +- lib/inputex/api/inputEx.DSSelectField.html | 22 +- lib/inputex/api/inputEx.DateField.html | 22 +- lib/inputex/api/inputEx.DatePickerField.html | 115 +- .../api/inputEx.DateSelectMonthField.html | 26 +- lib/inputex/api/inputEx.DateSplitField.html | 26 +- lib/inputex/api/inputEx.DateTimeField.html | 26 +- lib/inputex/api/inputEx.EmailField.html | 22 +- lib/inputex/api/inputEx.Field.html | 96 +- lib/inputex/api/inputEx.FileField.html | 22 +- lib/inputex/api/inputEx.Form.html | 59 +- lib/inputex/api/inputEx.Group.html | 86 +- lib/inputex/api/inputEx.HiddenField.html | 20 +- lib/inputex/api/inputEx.IPv4Field.html | 22 +- lib/inputex/api/inputEx.InPlaceEdit.html | 22 +- lib/inputex/api/inputEx.IntegerField.html | 20 +- .../api/inputEx.JsonSchema.Builder.html | 16 +- lib/inputex/api/inputEx.JsonSchema.html | 14 +- lib/inputex/api/inputEx.KeyOpValueField.html | 68 +- lib/inputex/api/inputEx.KeyValueField.html | 94 +- lib/inputex/api/inputEx.Lens.html | 26 +- lib/inputex/api/inputEx.ListField.html | 22 +- lib/inputex/api/inputEx.MapField.html | 20 +- lib/inputex/api/inputEx.MenuField.html | 25 +- .../api/inputEx.MultiAutoComplete.html | 20 +- lib/inputex/api/inputEx.MultiSelectField.html | 20 +- lib/inputex/api/inputEx.NumberField.html | 20 +- lib/inputex/api/inputEx.PasswordField.html | 22 +- .../inputEx.RPC.Envelope.JSON-RPC-1.0.html | 14 +- .../inputEx.RPC.Envelope.JSON-RPC-2.0.html | 14 +- .../api/inputEx.RPC.Envelope.JSON.html | 14 +- .../api/inputEx.RPC.Envelope.PATH.html | 14 +- lib/inputex/api/inputEx.RPC.Envelope.URL.html | 14 +- lib/inputex/api/inputEx.RPC.Envelope.html | 14 +- lib/inputex/api/inputEx.RPC.SMDTester.html | 14 +- lib/inputex/api/inputEx.RPC.Service.html | 14 +- lib/inputex/api/inputEx.RPC.Transport.html | 14 +- lib/inputex/api/inputEx.RPC.html | 14 +- lib/inputex/api/inputEx.RTEField.html | 77 +- lib/inputex/api/inputEx.RadioButton.html | 26 +- lib/inputex/api/inputEx.RadioField.html | 84 +- lib/inputex/api/inputEx.SelectField.html | 22 +- lib/inputex/api/inputEx.SerializeField.html | 678 ++++++++++ .../inputEx.SerializeField.serializers.html | 373 ++++++ lib/inputex/api/inputEx.SliderField.html | 22 +- lib/inputex/api/inputEx.StringField.html | 22 +- lib/inputex/api/inputEx.Textarea.html | 22 +- lib/inputex/api/inputEx.TimeField.html | 26 +- .../api/inputEx.TimeIntervalField.html | 91 +- lib/inputex/api/inputEx.TreeField.html | 20 +- lib/inputex/api/inputEx.TypeField.html | 22 +- lib/inputex/api/inputEx.UneditableField.html | 22 +- lib/inputex/api/inputEx.UpperCaseField.html | 20 +- lib/inputex/api/inputEx.UrlField.html | 22 +- lib/inputex/api/inputEx.VectorField.html | 20 +- lib/inputex/api/inputEx.YQL.html | 71 +- lib/inputex/api/inputEx.html | 19 +- lib/inputex/api/inputEx.visus.html | 14 +- lib/inputex/api/inputEx.widget.Button.html | 584 +++++++++ .../api/inputEx.widget.CellEditor.html | 14 +- lib/inputex/api/inputEx.widget.DDList.html | 14 +- .../api/inputEx.widget.DDListItem.html | 14 +- lib/inputex/api/inputEx.widget.DataTable.html | 14 +- lib/inputex/api/inputEx.widget.Dialog.html | 14 +- .../api/inputEx.widget.JsonTreeInspector.html | 14 +- .../api/inputEx.widget.dtInPlaceEdit.html | 14 +- lib/inputex/api/inputex-loader.js.html | 40 +- lib/inputex/api/inputex-rpc.js.html | 26 +- lib/inputex/api/inputex.js.html | 43 +- lib/inputex/api/it.js.html | 14 +- lib/inputex/api/json-schema.js.html | 98 +- lib/inputex/api/json-tree-inspector.js.html | 14 +- lib/inputex/api/module_inputex.html | 59 +- lib/inputex/api/nl.js.html | 14 +- lib/inputex/api/raw.json | 2 +- lib/inputex/api/smdTester.js.html | 34 +- lib/inputex/api/yql.js.html | 20 +- lib/inputex/build/inputex-min.css | 4 +- lib/inputex/build/inputex-min.js | 4 +- lib/inputex/build/inputex.js | 1106 ++++++++++++----- lib/inputex/css/inputEx.css | 86 +- lib/inputex/examples/TaskManager/index.html | 4 +- .../examples/TaskManager/js/TaskManager.js | 26 +- lib/inputex/examples/TaskManager/store.json | 2 +- lib/inputex/examples/TaskManager/store.php | 18 - .../examples/assets/images/button_left.png | Bin 0 -> 847 bytes .../examples/assets/images/button_right.png | Bin 0 -> 526 bytes lib/inputex/examples/autocomplete.html | 175 ++- lib/inputex/examples/checkbox.html | 24 +- lib/inputex/examples/color_field.html | 8 +- lib/inputex/examples/colorpicker_field.html | 6 +- lib/inputex/examples/combine_field.html | 14 +- lib/inputex/examples/css/demo.css | 38 +- lib/inputex/examples/datatable.html | 21 +- lib/inputex/examples/date_field.html | 10 +- lib/inputex/examples/datepicker_field.html | 49 +- .../examples/dateselectmonth_field.html | 4 +- lib/inputex/examples/datesplit_field.html | 4 +- lib/inputex/examples/datetime_field.html | 6 +- lib/inputex/examples/ddlist_widget.html | 18 +- lib/inputex/examples/dialog_widget.html | 118 +- lib/inputex/examples/dsselect_field.html | 8 +- lib/inputex/examples/dtInPlaceEdit.html | 35 +- lib/inputex/examples/email_field.html | 4 +- lib/inputex/examples/file_field.html | 25 +- lib/inputex/examples/form.html | 427 +++++-- lib/inputex/examples/google-charts.html | 33 +- lib/inputex/examples/group.html | 124 +- lib/inputex/examples/hidden_field.html | 8 +- .../examples/ie-child-selector-bug.html | 8 +- lib/inputex/examples/ie-haslayout-bug.html | 27 +- lib/inputex/examples/inplaceedit.html | 61 +- .../examples/inputExHTML/ObjectField.js | 12 +- lib/inputex/examples/inputExHTML/index.html | 23 +- lib/inputex/examples/inputExToSchema.html | 6 +- lib/inputex/examples/integer_field.html | 10 +- lib/inputex/examples/interactions.html | 135 +- lib/inputex/examples/ipv4_field.html | 4 +- lib/inputex/examples/jaxer.html | 16 +- lib/inputex/examples/json-schema.html | 10 +- lib/inputex/examples/json-schema2.html | 4 +- lib/inputex/examples/json-tree-inspector.html | 4 +- lib/inputex/examples/keyopvalue_field.html | 62 +- lib/inputex/examples/keyvalue_field.html | 12 +- lib/inputex/examples/lenses.html | 25 +- lib/inputex/examples/list_field.html | 20 +- lib/inputex/examples/map_field.html | 10 +- lib/inputex/examples/menu_field.html | 8 +- lib/inputex/examples/multiautocomplete.html | 4 +- lib/inputex/examples/multiselect_field.html | 6 +- lib/inputex/examples/number_field.html | 8 +- lib/inputex/examples/password_field.html | 24 +- lib/inputex/examples/phploader/phploader.html | 23 - lib/inputex/examples/radio_field.html | 52 +- lib/inputex/examples/rpc/example.html | 1 + lib/inputex/examples/rpc/flickr.html | 3 +- lib/inputex/examples/rte_field.html | 10 +- lib/inputex/examples/select_field.html | 10 +- lib/inputex/examples/serialize_field.html | 148 +++ lib/inputex/examples/slider_field.html | 8 +- lib/inputex/examples/string_field.html | 29 +- lib/inputex/examples/styling_buttons.html | 188 +++ lib/inputex/examples/styling_description.html | 16 +- lib/inputex/examples/styling_label.html | 16 +- lib/inputex/examples/textarea.html | 10 +- lib/inputex/examples/time_field.html | 6 +- lib/inputex/examples/timeinterval_field.html | 21 +- lib/inputex/examples/tree_field.html | 11 +- lib/inputex/examples/typefield.html | 19 +- lib/inputex/examples/uneditable_field.html | 20 +- lib/inputex/examples/uppercase_field.html | 4 +- lib/inputex/examples/url_field.html | 8 +- lib/inputex/examples/using_xml.html | 53 +- lib/inputex/examples/vector_field.html | 8 +- .../examples/yuiloader-datepicker.html | 4 +- lib/inputex/examples/yuiloader.html | 24 +- lib/inputex/index.html | 19 +- lib/inputex/js/Field.js | 36 +- lib/inputex/js/Form.js | 146 ++- lib/inputex/js/Group.js | 88 +- lib/inputex/js/fields/AutoComplete.js | 72 +- lib/inputex/js/fields/CheckBox.js | 48 +- lib/inputex/js/fields/ColorField.js | 2 +- lib/inputex/js/fields/ColorPickerField.js | 2 +- lib/inputex/js/fields/CombineField.js | 11 +- lib/inputex/js/fields/DSSelectField.js | 2 +- lib/inputex/js/fields/DateField.js | 4 +- lib/inputex/js/fields/DatePickerField.js | 52 +- lib/inputex/js/fields/DateSelectMonthField.js | 6 +- lib/inputex/js/fields/DateSplitField.js | 6 +- lib/inputex/js/fields/DateTimeField.js | 6 +- lib/inputex/js/fields/EmailField.js | 9 +- lib/inputex/js/fields/FileField.js | 2 +- lib/inputex/js/fields/IPv4Field.js | 2 +- lib/inputex/js/fields/InPlaceEdit.js | 51 +- lib/inputex/js/fields/IntegerField.js | 4 +- lib/inputex/js/fields/KeyOpValueField-beta.js | 53 +- lib/inputex/js/fields/KeyValueField-beta.js | 69 +- lib/inputex/js/fields/Lens-beta.js | 6 +- lib/inputex/js/fields/ListField.js | 19 +- lib/inputex/js/fields/MenuField.js | 29 +- lib/inputex/js/fields/MultiSelectField.js | 30 +- lib/inputex/js/fields/PasswordField.js | 6 +- lib/inputex/js/fields/RTEField.js | 51 +- lib/inputex/js/fields/RadioField.js | 42 +- lib/inputex/js/fields/SelectField.js | 6 +- lib/inputex/js/fields/SerializeField-beta.js | 174 +++ lib/inputex/js/fields/SliderField.js | 6 +- lib/inputex/js/fields/StringField.js | 30 +- lib/inputex/js/fields/Textarea.js | 6 +- lib/inputex/js/fields/TimeField.js | 6 +- lib/inputex/js/fields/TimeIntervalField.js | 7 +- lib/inputex/js/fields/TimeRange.js | 91 ++ lib/inputex/js/fields/TreeField.js | 2 +- lib/inputex/js/fields/TypeField.js | 81 +- lib/inputex/js/fields/UneditableField.js | 2 +- lib/inputex/js/fields/UrlField.js | 4 +- lib/inputex/js/fields/VectorField.js | 8 +- lib/inputex/js/inputex-loader.js | 26 +- lib/inputex/js/inputex.js | 29 +- lib/inputex/js/json-schema.js | 84 +- lib/inputex/js/locals/es.js | 2 +- lib/inputex/js/locals/fr.js | 2 +- lib/inputex/js/rpc/inputex-rpc.js | 12 +- lib/inputex/js/rpc/smdTester.js | 20 +- lib/inputex/js/rpc/yql.js | 6 +- lib/inputex/js/widgets/Button.js | 202 +++ lib/inputex/js/widgets/DataTable.js | 32 +- lib/inputex/js/widgets/Dialog.js | 11 +- lib/inputex/js/widgets/dtInPlaceEdit.js | 36 +- lib/inputex/license.txt | 2 +- lib/inputex/res/logo-inputex.xcf | Bin 0 -> 233334 bytes lib/inputex/scripts/build.sh | 29 + .../scripts/doc-parser/AutoComplete.js | 194 +++ .../doc-parser/AutoComplete.js.highlighted | 195 +++ lib/inputex/scripts/doc-parser/Button.js | 202 +++ .../scripts/doc-parser/Button.js.highlighted | 203 +++ lib/inputex/scripts/doc-parser/CheckBox.js | 160 +++ .../doc-parser/CheckBox.js.highlighted | 161 +++ lib/inputex/scripts/doc-parser/ColorField.js | 278 +++++ .../doc-parser/ColorField.js.highlighted | 279 +++++ .../scripts/doc-parser/ColorPickerField.js | 178 +++ .../ColorPickerField.js.highlighted | 179 +++ .../scripts/doc-parser/CombineField.js | 158 +++ .../doc-parser/CombineField.js.highlighted | 159 +++ .../scripts/doc-parser/DSSelectField.js | 113 ++ .../doc-parser/DSSelectField.js.highlighted | 114 ++ lib/inputex/scripts/doc-parser/DataTable.js | 584 +++++++++ .../doc-parser/DataTable.js.highlighted | 585 +++++++++ lib/inputex/scripts/doc-parser/DateField.js | 142 +++ .../doc-parser/DateField.js.highlighted | 143 +++ .../scripts/doc-parser/DatePickerField.js | 216 ++++ .../doc-parser/DatePickerField.js.highlighted | 217 ++++ .../doc-parser/DateSelectMonthField.js | 101 ++ .../DateSelectMonthField.js.highlighted | 102 ++ .../scripts/doc-parser/DateSplitField.js | 151 +++ .../doc-parser/DateSplitField.js.highlighted | 152 +++ .../scripts/doc-parser/DateTimeField.js | 64 + .../doc-parser/DateTimeField.js.highlighted | 65 + lib/inputex/scripts/doc-parser/Dialog.js | 105 ++ .../scripts/doc-parser/Dialog.js.highlighted | 106 ++ lib/inputex/scripts/doc-parser/EmailField.js | 47 + .../doc-parser/EmailField.js.highlighted | 48 + lib/inputex/scripts/doc-parser/Field.js | 391 ++++++ .../scripts/doc-parser/Field.js.highlighted | 392 ++++++ lib/inputex/scripts/doc-parser/FileField.js | 54 + .../doc-parser/FileField.js.highlighted | 55 + lib/inputex/scripts/doc-parser/Form.js | 396 ++++++ .../scripts/doc-parser/Form.js.highlighted | 397 ++++++ lib/inputex/scripts/doc-parser/Group.js | 466 +++++++ .../scripts/doc-parser/Group.js.highlighted | 467 +++++++ lib/inputex/scripts/doc-parser/HiddenField.js | 53 + .../doc-parser/HiddenField.js.highlighted | 54 + lib/inputex/scripts/doc-parser/IPv4Field.js | 33 + .../doc-parser/IPv4Field.js.highlighted | 34 + lib/inputex/scripts/doc-parser/InPlaceEdit.js | 274 ++++ .../doc-parser/InPlaceEdit.js.highlighted | 275 ++++ .../scripts/doc-parser/IntegerField.js | 68 + .../doc-parser/IntegerField.js.highlighted | 69 + .../doc-parser/KeyOpValueField-beta.js | 39 + .../KeyOpValueField-beta.js.highlighted | 40 + .../scripts/doc-parser/KeyValueField-beta.js | 88 ++ .../KeyValueField-beta.js.highlighted | 88 ++ lib/inputex/scripts/doc-parser/Lens-beta.js | 70 ++ .../doc-parser/Lens-beta.js.highlighted | 71 ++ lib/inputex/scripts/doc-parser/ListField.js | 420 +++++++ .../doc-parser/ListField.js.highlighted | 421 +++++++ lib/inputex/scripts/doc-parser/MapField.js | 474 +++++++ .../doc-parser/MapField.js.highlighted | 475 +++++++ lib/inputex/scripts/doc-parser/MenuField.js | 176 +++ .../doc-parser/MenuField.js.highlighted | 177 +++ .../scripts/doc-parser/MultiAutoComplete.js | 115 ++ .../MultiAutoComplete.js.highlighted | 116 ++ .../scripts/doc-parser/MultiSelectField.js | 115 ++ .../MultiSelectField.js.highlighted | 116 ++ lib/inputex/scripts/doc-parser/NumberField.js | 62 + .../doc-parser/NumberField.js.highlighted | 63 + .../scripts/doc-parser/PasswordField.js | 265 ++++ .../doc-parser/PasswordField.js.highlighted | 266 ++++ lib/inputex/scripts/doc-parser/RTEField.js | 147 +++ .../doc-parser/RTEField.js.highlighted | 148 +++ lib/inputex/scripts/doc-parser/RadioButton.js | 41 + .../doc-parser/RadioButton.js.highlighted | 42 + lib/inputex/scripts/doc-parser/RadioField.js | 301 +++++ .../doc-parser/RadioField.js.highlighted | 302 +++++ lib/inputex/scripts/doc-parser/SelectField.js | 226 ++++ .../doc-parser/SelectField.js.highlighted | 227 ++++ .../scripts/doc-parser/SerializeField-beta.js | 174 +++ .../SerializeField-beta.js.highlighted | 175 +++ lib/inputex/scripts/doc-parser/SliderField.js | 105 ++ .../doc-parser/SliderField.js.highlighted | 106 ++ lib/inputex/scripts/doc-parser/StringField.js | 261 ++++ .../doc-parser/StringField.js.highlighted | 262 ++++ lib/inputex/scripts/doc-parser/Textarea.js | 121 ++ .../doc-parser/Textarea.js.highlighted | 122 ++ lib/inputex/scripts/doc-parser/TimeField.js | 50 + .../doc-parser/TimeField.js.highlighted | 51 + .../scripts/doc-parser/TimeIntervalField.js | 118 ++ .../TimeIntervalField.js.highlighted | 119 ++ lib/inputex/scripts/doc-parser/TimeRange.js | 91 ++ .../doc-parser/TimeRange.js.highlighted | 92 ++ lib/inputex/scripts/doc-parser/TreeField.js | 104 ++ .../doc-parser/TreeField.js.highlighted | 105 ++ lib/inputex/scripts/doc-parser/TypeField.js | 272 ++++ .../doc-parser/TypeField.js.highlighted | 273 ++++ .../scripts/doc-parser/UneditableField.js | 54 + .../doc-parser/UneditableField.js.highlighted | 55 + .../scripts/doc-parser/UpperCaseField.js | 44 + .../doc-parser/UpperCaseField.js.highlighted | 45 + lib/inputex/scripts/doc-parser/UrlField.js | 103 ++ .../doc-parser/UrlField.js.highlighted | 104 ++ lib/inputex/scripts/doc-parser/VectorField.js | 37 + .../doc-parser/VectorField.js.highlighted | 38 + lib/inputex/scripts/doc-parser/Visus.js | 97 ++ .../scripts/doc-parser/Visus.js.highlighted | 98 ++ lib/inputex/scripts/doc-parser/ddlist.js | 306 +++++ .../scripts/doc-parser/ddlist.js.highlighted | 307 +++++ lib/inputex/scripts/doc-parser/de.js | 70 ++ .../scripts/doc-parser/de.js.highlighted | 71 ++ .../scripts/doc-parser/dtInPlaceEdit.js | 439 +++++++ .../doc-parser/dtInPlaceEdit.js.highlighted | 440 +++++++ lib/inputex/scripts/doc-parser/es.js | 71 ++ .../scripts/doc-parser/es.js.highlighted | 72 ++ lib/inputex/scripts/doc-parser/fr.js | 80 ++ .../scripts/doc-parser/fr.js.highlighted | 81 ++ .../scripts/doc-parser/inputex-loader.js | 441 +++++++ .../doc-parser/inputex-loader.js.highlighted | 442 +++++++ lib/inputex/scripts/doc-parser/inputex-rpc.js | 487 ++++++++ .../doc-parser/inputex-rpc.js.highlighted | 488 ++++++++ lib/inputex/scripts/doc-parser/inputex.js | 325 +++++ .../scripts/doc-parser/inputex.js.highlighted | 326 +++++ lib/inputex/scripts/doc-parser/it.js | 50 + .../scripts/doc-parser/it.js.highlighted | 51 + lib/inputex/scripts/doc-parser/json-schema.js | 421 +++++++ .../doc-parser/json-schema.js.highlighted | 422 +++++++ .../scripts/doc-parser/json-tree-inspector.js | 255 ++++ .../json-tree-inspector.js.highlighted | 256 ++++ lib/inputex/scripts/doc-parser/nl.js | 56 + .../scripts/doc-parser/nl.js.highlighted | 57 + lib/inputex/scripts/doc-parser/parsed.json | 1 + lib/inputex/scripts/doc-parser/smdTester.js | 111 ++ .../doc-parser/smdTester.js.highlighted | 112 ++ lib/inputex/scripts/doc-parser/yql.js | 138 ++ .../scripts/doc-parser/yql.js.highlighted | 138 ++ lib/inputex/scripts/yuidoc.sh | 41 + lib/inputex/tools/builder/index.html | 118 +- .../inputExModuleMeta.js | 2 + lib/inputex/tools/smd-tester/index.html | 1 + .../yql-trimpath-page-builder/index.html | 1 + .../yql-trimpath-page-builder.js | 28 +- .../tools/yql-trimpath-page/index.html | 10 +- lib/inputex/version.txt | 62 +- 418 files changed, 33592 insertions(+), 2827 deletions(-) create mode 100644 lib/inputex/404.html create mode 100644 lib/inputex/api/Button.js.html create mode 100644 lib/inputex/api/SerializeField-beta.js.html create mode 100644 lib/inputex/api/TimeRange.js.html create mode 100644 lib/inputex/api/inputEx.SerializeField.html create mode 100644 lib/inputex/api/inputEx.SerializeField.serializers.html create mode 100644 lib/inputex/api/inputEx.widget.Button.html delete mode 100644 lib/inputex/examples/TaskManager/store.php create mode 100644 lib/inputex/examples/assets/images/button_left.png create mode 100644 lib/inputex/examples/assets/images/button_right.png delete mode 100644 lib/inputex/examples/phploader/phploader.html create mode 100644 lib/inputex/examples/serialize_field.html create mode 100644 lib/inputex/examples/styling_buttons.html create mode 100644 lib/inputex/js/fields/SerializeField-beta.js create mode 100644 lib/inputex/js/fields/TimeRange.js create mode 100644 lib/inputex/js/widgets/Button.js create mode 100644 lib/inputex/res/logo-inputex.xcf create mode 100755 lib/inputex/scripts/build.sh create mode 100644 lib/inputex/scripts/doc-parser/AutoComplete.js create mode 100644 lib/inputex/scripts/doc-parser/AutoComplete.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Button.js create mode 100644 lib/inputex/scripts/doc-parser/Button.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/CheckBox.js create mode 100644 lib/inputex/scripts/doc-parser/CheckBox.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/ColorField.js create mode 100644 lib/inputex/scripts/doc-parser/ColorField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/ColorPickerField.js create mode 100644 lib/inputex/scripts/doc-parser/ColorPickerField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/CombineField.js create mode 100644 lib/inputex/scripts/doc-parser/CombineField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/DSSelectField.js create mode 100644 lib/inputex/scripts/doc-parser/DSSelectField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/DataTable.js create mode 100644 lib/inputex/scripts/doc-parser/DataTable.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/DateField.js create mode 100644 lib/inputex/scripts/doc-parser/DateField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/DatePickerField.js create mode 100644 lib/inputex/scripts/doc-parser/DatePickerField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/DateSelectMonthField.js create mode 100644 lib/inputex/scripts/doc-parser/DateSelectMonthField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/DateSplitField.js create mode 100644 lib/inputex/scripts/doc-parser/DateSplitField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/DateTimeField.js create mode 100644 lib/inputex/scripts/doc-parser/DateTimeField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Dialog.js create mode 100644 lib/inputex/scripts/doc-parser/Dialog.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/EmailField.js create mode 100644 lib/inputex/scripts/doc-parser/EmailField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Field.js create mode 100644 lib/inputex/scripts/doc-parser/Field.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/FileField.js create mode 100644 lib/inputex/scripts/doc-parser/FileField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Form.js create mode 100644 lib/inputex/scripts/doc-parser/Form.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Group.js create mode 100644 lib/inputex/scripts/doc-parser/Group.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/HiddenField.js create mode 100644 lib/inputex/scripts/doc-parser/HiddenField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/IPv4Field.js create mode 100644 lib/inputex/scripts/doc-parser/IPv4Field.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/InPlaceEdit.js create mode 100644 lib/inputex/scripts/doc-parser/InPlaceEdit.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/IntegerField.js create mode 100644 lib/inputex/scripts/doc-parser/IntegerField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/KeyOpValueField-beta.js create mode 100644 lib/inputex/scripts/doc-parser/KeyOpValueField-beta.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/KeyValueField-beta.js create mode 100644 lib/inputex/scripts/doc-parser/KeyValueField-beta.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Lens-beta.js create mode 100644 lib/inputex/scripts/doc-parser/Lens-beta.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/ListField.js create mode 100644 lib/inputex/scripts/doc-parser/ListField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/MapField.js create mode 100644 lib/inputex/scripts/doc-parser/MapField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/MenuField.js create mode 100644 lib/inputex/scripts/doc-parser/MenuField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/MultiAutoComplete.js create mode 100644 lib/inputex/scripts/doc-parser/MultiAutoComplete.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/MultiSelectField.js create mode 100644 lib/inputex/scripts/doc-parser/MultiSelectField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/NumberField.js create mode 100644 lib/inputex/scripts/doc-parser/NumberField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/PasswordField.js create mode 100644 lib/inputex/scripts/doc-parser/PasswordField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/RTEField.js create mode 100644 lib/inputex/scripts/doc-parser/RTEField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/RadioButton.js create mode 100644 lib/inputex/scripts/doc-parser/RadioButton.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/RadioField.js create mode 100644 lib/inputex/scripts/doc-parser/RadioField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/SelectField.js create mode 100644 lib/inputex/scripts/doc-parser/SelectField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/SerializeField-beta.js create mode 100644 lib/inputex/scripts/doc-parser/SerializeField-beta.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/SliderField.js create mode 100644 lib/inputex/scripts/doc-parser/SliderField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/StringField.js create mode 100644 lib/inputex/scripts/doc-parser/StringField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Textarea.js create mode 100644 lib/inputex/scripts/doc-parser/Textarea.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/TimeField.js create mode 100644 lib/inputex/scripts/doc-parser/TimeField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/TimeIntervalField.js create mode 100644 lib/inputex/scripts/doc-parser/TimeIntervalField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/TimeRange.js create mode 100644 lib/inputex/scripts/doc-parser/TimeRange.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/TreeField.js create mode 100644 lib/inputex/scripts/doc-parser/TreeField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/TypeField.js create mode 100644 lib/inputex/scripts/doc-parser/TypeField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/UneditableField.js create mode 100644 lib/inputex/scripts/doc-parser/UneditableField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/UpperCaseField.js create mode 100644 lib/inputex/scripts/doc-parser/UpperCaseField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/UrlField.js create mode 100644 lib/inputex/scripts/doc-parser/UrlField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/VectorField.js create mode 100644 lib/inputex/scripts/doc-parser/VectorField.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/Visus.js create mode 100644 lib/inputex/scripts/doc-parser/Visus.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/ddlist.js create mode 100644 lib/inputex/scripts/doc-parser/ddlist.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/de.js create mode 100644 lib/inputex/scripts/doc-parser/de.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/dtInPlaceEdit.js create mode 100644 lib/inputex/scripts/doc-parser/dtInPlaceEdit.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/es.js create mode 100644 lib/inputex/scripts/doc-parser/es.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/fr.js create mode 100644 lib/inputex/scripts/doc-parser/fr.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/inputex-loader.js create mode 100644 lib/inputex/scripts/doc-parser/inputex-loader.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/inputex-rpc.js create mode 100644 lib/inputex/scripts/doc-parser/inputex-rpc.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/inputex.js create mode 100644 lib/inputex/scripts/doc-parser/inputex.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/it.js create mode 100644 lib/inputex/scripts/doc-parser/it.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/json-schema.js create mode 100644 lib/inputex/scripts/doc-parser/json-schema.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/json-tree-inspector.js create mode 100644 lib/inputex/scripts/doc-parser/json-tree-inspector.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/nl.js create mode 100644 lib/inputex/scripts/doc-parser/nl.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/parsed.json create mode 100644 lib/inputex/scripts/doc-parser/smdTester.js create mode 100644 lib/inputex/scripts/doc-parser/smdTester.js.highlighted create mode 100644 lib/inputex/scripts/doc-parser/yql.js create mode 100644 lib/inputex/scripts/doc-parser/yql.js.highlighted create mode 100755 lib/inputex/scripts/yuidoc.sh diff --git a/lib/inputex/404.html b/lib/inputex/404.html new file mode 100644 index 00000000..eadee0e1 --- /dev/null +++ b/lib/inputex/404.html @@ -0,0 +1,9 @@ + + + +Page not found + + +Page not found, redirecting to inputEx at http://neyric.github.com/inputex + + \ No newline at end of file diff --git a/lib/inputex/README.md b/lib/inputex/README.md index f9ecab1b..f97f2411 100644 --- a/lib/inputex/README.md +++ b/lib/inputex/README.md @@ -1,7 +1,7 @@ InputEx ======= -[inputEx](http://javascript.neyric.com/inputex) is an open-source javascript framework to build fields and forms for web applications using the YUI library. +[inputEx](http://neyric.github.com/inputex) is an open-source javascript framework to build fields and forms for web applications using the YUI library. All the fields and forms are configured using JSON or created in Javascript. It provides a very efficient abstraction for building interactive web applications. @@ -14,7 +14,7 @@ It is built on top of the [YUI library](http://developer.yahoo.com/yui/) (2.8.0r Resources ========= - * Homepage: [http://javascript.neyric.com/inputex](http://javascript.neyric.com/inputex) + * Homepage: [http://neyric.github.com/inputex](http://neyric.github.com/inputex) * Repository: [http://github.com/neyric/inputex/](http://github.com/neyric/inputex/) * Wiki: [http://wiki.github.com/neyric/inputex](http://wiki.github.com/neyric/inputex) * Issues: [http://github.com/neyric/inputex/issues](http://github.com/neyric/inputex/issues) diff --git a/lib/inputex/api/AutoComplete.js.html b/lib/inputex/api/AutoComplete.js.html index 63c08bc0..8905fd8e 100644 --- a/lib/inputex/api/AutoComplete.js.html +++ b/lib/inputex/api/AutoComplete.js.html @@ -15,8 +15,8 @@
-

inputEx-library

-

inputEx  0.4.0

+

inputEx-library

+

inputEx  0.5.0

inputEx-library > inputEx @@ -58,24 +58,25 @@

inputEx  0.4.0

* @extends inputEx.StringField * @param {Object} options Added options for Autocompleter * <ul> - * <li>datasource: the datasource</li> - * <li>autoComp: autocompleter options</li> + * <li>datasource: the datasource</li> + * <li>autoComp: autocompleter options</li> * <li>returnValue: function to format the returned value (optional)</li> * </ul> */ inputEx.AutoComplete = function(options) { inputEx.AutoComplete.superclass.constructor.call(this, options); + }; lang.extend(inputEx.AutoComplete, inputEx.StringField, { /** * Adds autocomplete options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.AutoComplete.superclass.setOptions.call(this, options); - + // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-AutoComplete'; @@ -83,6 +84,8 @@

inputEx  0.4.0

this.options.datasource = options.datasource; this.options.autoComp = options.autoComp; this.options.returnValue = options.returnValue; + this.options.generateRequest = options.generateRequest; + this.options.datasourceParameters = options.datasourceParameters; }, /** @@ -92,11 +95,10 @@

inputEx  0.4.0

* <li>listener to autocompleter textboxBlurEvent added in buildAutocomplete method</li> * </ul> */ - initEvents: function() { - inputEx.AutoComplete.superclass.initEvents.call(this); - - // remove standard blur listener - Event.removeBlurListener(this.el, this.onBlur); + initEvents: function() { + inputEx.AutoComplete.superclass.initEvents.call(this); + + // remove standard blur listener }, /** @@ -115,7 +117,7 @@

inputEx  0.4.0

if(this.options.size) attributes.size = this.options.size; if(this.options.readonly) attributes.readonly = 'readonly'; if(this.options.maxLength) attributes.maxLength = this.options.maxLength; - + // Create the node this.el = inputEx.cn('input', attributes); @@ -147,10 +149,22 @@

inputEx  0.4.0

if(!this._nElementsReady) { this._nElementsReady = 0; } this._nElementsReady++; if(this._nElementsReady != 2) return; + + if(!lang.isUndefined(this.options.datasourceParameters)) + { + for (param in this.options.datasourceParameters) + { + this.options.datasource[param] = this.options.datasourceParameters[param]; + } + } + // Instantiate AutoComplete this.oAutoComp = new YAHOO.widget.AutoComplete(this.el.id, this.listEl.id, this.options.datasource, this.options.autoComp); - + if(!lang.isUndefined(this.options.generateRequest)) + { + this.oAutoComp.generateRequest = this.options.generateRequest; + } // subscribe to the itemSelect event this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler, this, true); @@ -167,24 +181,31 @@

inputEx  0.4.0

* @param {} aArgs */ itemSelectHandler: function(sType, aArgs) { - var aData = aArgs[2]; - this.setValue( this.options.returnValue ? this.options.returnValue(aData) : aData[0] ); + var aData = aArgs[2]; + this.setValue( this.options.returnValue ? this.options.returnValue(aData) : aData[0] ); }, - + + onBlur: function(e){ + if (this.hiddenEl.value != this.el.value && this.el.value != this.options.typeInvite) this.el.value = this.hiddenEl.value; + if(this.el.value == '' && this.options.typeInvite) { + Dom.addClass(this.divEl, "inputEx-typeInvite"); + if (this.el.value == '') this.el.value = this.options.typeInvite; + } +}, /** * onChange event handler * @param {Event} e The original 'change' event */ - onChange: function(e) { - this.setClassFromState(); - - // Clear the field when no value + onChange: function(e) { + this.setClassFromState(); + // Clear the field when no value + if (this.hiddenEl.value != this.el.value) this.hiddenEl.value = this.el.value; lang.later(50, this, function() { if(this.el.value == "") { this.setValue(""); } }); - }, + }, /** * Set the value @@ -192,17 +213,16 @@

inputEx  0.4.0

* @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(value, sendUpdatedEvt) { - this.hiddenEl.value = value || ""; - + this.el.value = value || ""; // "inherited" from inputex.Field : // (can't inherit of inputex.StringField because would set this.el.value...) // - // set corresponding style - this.setClassFromState(); - - if(sendUpdatedEvt !== false) { - // fire update event + // set corresponding style + this.setClassFromState(); + + if(sendUpdatedEvt !== false) { + // fire update event this.fireUpdatedEvt(); } }, @@ -286,6 +306,8 @@

Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -298,6 +320,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -313,6 +336,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Button.js.html b/lib/inputex/api/Button.js.html new file mode 100644 index 00000000..4960a89b --- /dev/null +++ b/lib/inputex/api/Button.js.html @@ -0,0 +1,431 @@ + + + + + API: inputEx Button.js (YUI Library) + + + + + + + + + + +
    +
    +

    inputEx-library

    +

    inputEx  0.5.0

    + inputEx-library + > inputEx + + > Button.js (source view) +
    +
    + Search: +
    +   +
    +
    +
    +
    + +
    +
    +
    +
    +
    + Filters + + + +
    +
    + +
    + +
    (function () {
    +   var util = YAHOO.util, lang = YAHOO.lang, Event = util.Event, Dom = util.Dom;
    +
    +/**
    + * Create a button
    + * @class inputEx.widget.Button
    + * @constructor
    + * @param {Object} options The following options are available for Button :
    + * <ul>
    + * 	<li><b>id</b>: id of the created A element (default is auto-generated)</li>
    + * 	<li><b>className</b>: CSS class added to the button (default is either "inputEx-Button-Link" or "inputEx-Button-Submit-Link", depending on "type")</li>
    + * 	<li><b>parentEl</b>: The DOM element where we should append the button</li>
    + * 	<li><b>type</b>: "link", "submit-link" or "submit"</li>
    + * 	<li><b>value</b>: text displayed inside the button</li>
    + * 	<li><b>disabled</b>: Disable the button after creation</li>
    + * 	<li><b>onClick</b>: Custom click event handler</li>
    + * </ul>
    + */
    +inputEx.widget.Button = function(options) {
    +   
    +   this.setOptions(options || {});
    +      
    +   if (!!this.options.parentEl) {
    +      this.render(this.options.parentEl);
    +   }
    +   
    +};
    +
    +
    +lang.augmentObject(inputEx.widget.Button.prototype,{
    +   
    +   /**
    + 	 * set the default options
    + 	 */
    +   setOptions: function(options) {
    +      
    +      this.options = {};
    +      this.options.id = lang.isString(options.id) ? options.id  : Dom.generateId();
    +      this.options.className = options.className || "inputEx-Button";
    +      this.options.parentEl = lang.isString(options.parentEl) ? Dom.get(options.parentEl) : options.parentEl;
    +      
    +      // default type === "submit"
    +      this.options.type = (options.type === "link" || options.type === "submit-link") ? options.type : "submit";
    +      
    +      // value is the text displayed inside the button (<input type="submit" value="Submit" /> convention...)
    +      this.options.value = options.value;
    +      
    +      this.options.disabled = !!options.disabled;
    +      
    +      if (lang.isFunction(options.onClick)) {
    +         this.options.onClick = {fn: options.onClick, scope:this};
    +         
    +      } else if (lang.isObject(options.onClick)) {
    +         this.options.onClick = {fn: options.onClick.fn, scope: options.onClick.scope || this};
    +      }
    +      
    +   },
    +   
    +   /**
    + 	 * render the button into the parent Element
    +    * @param {DOMElement} parentEl The DOM element where the button should be rendered
    +	 * @return {DOMElement} The created button
    +	 */
    +   render: function(parentEl) {
    +      
    +      var innerSpan;
    +      
    +      if (this.options.type === "link" || this.options.type === "submit-link") {
    +         
    +         this.el = inputEx.cn('a', {className: this.options.className, id:this.options.id, href:"#"});
    +         Dom.addClass(this.el,this.options.type === "link" ? "inputEx-Button-Link" : "inputEx-Button-Submit-Link");
    +         
    +         innerSpan = inputEx.cn('span', null, null, this.options.value);
    +         
    +         this.el.appendChild(innerSpan);
    +         
    +      // default type is "submit" input
    +      } else {
    +         
    +         this.el = inputEx.cn('input', {type: "submit", value: this.options.value, className: this.options.className, id:this.options.id});
    +         Dom.addClass(this.el,"inputEx-Button-Submit");
    +      }
    +      
    +      parentEl.appendChild(this.el);
    +      
    +      if (this.options.disabled) {
    +         this.disable();
    +      }
    +      
    +      this.initEvents();
    +      
    +      return this.el;
    +   },
    +   
    +   /**
    + 	 * attach the listeners on "click" event and create the custom events
    +	 */
    +   initEvents: function() {
    +
    +      /**
    +		 * Click Event facade (YUI custom event)
    + 		 * @event clickEvent
    +		 */ 
    +      this.clickEvent = new util.CustomEvent("click");
    +
    +      /**
    +		 * Submit Event facade (YUI custom event)
    + 		 * @event submitEvent
    +		 */
    +      this.submitEvent = new util.CustomEvent("submit");
    +      
    +      
    +      Event.addListener(this.el,"click",function(e) {
    +         
    +         var fireSubmitEvent;
    +         
    +         // stop click event, so :
    +         //
    +         //  1. buttons of 'link' or 'submit-link' type don't link to any url
    +         //  2. buttons of 'submit' type (<input type="submit" />) don't fire a 'submit' event
    +         Event.stopEvent(e);
    +         
    +         // button disabled : don't fire clickEvent, and stop here
    +         if (this.disabled) {
    +            fireSubmitEvent = false;
    +            
    +         // button enabled : fire clickEvent
    +         } else {
    +            // submit event will be fired if not prevented by clickEvent
    +            fireSubmitEvent = this.clickEvent.fire();
    +         }
    +         
    +         // link buttons should NOT fire a submit event
    +         if (this.options.type === "link") {
    +            fireSubmitEvent = false;
    +         }
    +         
    +         if (fireSubmitEvent) {
    +            this.submitEvent.fire();
    +         }
    +         
    +      },this,true);
    +      
    +      // Subscribe onClick handler
    +      if (this.options.onClick) {
    +         this.clickEvent.subscribe(this.options.onClick.fn,this.options.onClick.scope,true);
    +      }
    +      
    +   },
    +   
    +   /**
    + 	 * Disable the button
    +	 */
    +   disable: function() {
    +      
    +      this.disabled = true;
    +      
    +      Dom.addClass(this.el,"inputEx-Button-disabled");
    +      
    +      if (this.options.type === "submit") {
    +         this.el.disabled = true;
    +      }
    +   },
    +   
    +   /**
    + 	 * Enable the button
    +	 */
    +   enable: function() {
    +      
    +      this.disabled = false;
    +      
    +      Dom.removeClass(this.el,"inputEx-Button-disabled");
    +      
    +      if (this.options.type === "submit") {
    +         this.el.disabled = false;
    +      }
    +   },
    +   
    +   
    +   /**
    +    * Purge all event listeners and remove the component from the dom
    +    */
    +   destroy: function() {
    +      
    +      // Unsubscribe all listeners to click and submit events
    +      this.clickEvent.unsubscribeAll();
    +      this.submitEvent.unsubscribeAll();
    +      
    +      // Purge element (remove listeners on el and childNodes recursively)
    +      util.Event.purgeElement(this.el, true);
    +      
    +      // Remove from DOM
    +      if(Dom.inDocument(this.el)) {
    +         this.el.parentNode.removeChild(this.el);
    +      }
    +      
    +   }
    +   
    +   
    +});
    +
    +})();
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + Copyright © 2010 Eric Abouaf All rights reserved. +
    +
    + + + diff --git a/lib/inputex/api/CheckBox.js.html b/lib/inputex/api/CheckBox.js.html index 8af51330..f3cdc6fe 100644 --- a/lib/inputex/api/CheckBox.js.html +++ b/lib/inputex/api/CheckBox.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -69,7 +69,7 @@

    inputEx  0.4.0

    /** * Adds the CheckBox specific options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.CheckBox.superclass.setOptions.call(this, options); @@ -100,6 +100,7 @@

    inputEx  0.4.0

    this.fieldContainer.appendChild(this.rightLabelEl); // Keep state of checkbox in a hidden field (format : this.checkedValue or this.uncheckedValue) + // This is useful for non-javascript form submit (it allows custom checked/unchecked values to be submitted) this.hiddenEl = inputEx.cn('input', {type: 'hidden', name: this.options.name || '', value: this.uncheckedValue}); this.fieldContainer.appendChild(this.hiddenEl); }, @@ -108,7 +109,6 @@

    inputEx  0.4.0

    * Clear the previous events and listen for the "change" event */ initEvents: function() { - Event.addListener(this.el, "change", this.onChange, this, true); // Awful Hack to work in IE6 and below (the checkbox doesn't fire the change event) // It seems IE 8 removed this behavior from IE7 so it only works with IE 7 ?? @@ -116,7 +116,9 @@

    inputEx  0.4.0

    Event.addListener(this.el, "click", function() { this.fireUpdatedEvt(); }, this, true); }*/ if( YAHOO.env.ua.ie ) { - Event.addListener(this.el, "click", function() { YAHOO.lang.later(10,this,this.fireUpdatedEvt); }, this, true); + Event.addListener(this.el, "click", function(e) { YAHOO.lang.later(10,this,function(){this.onChange(e);}); }, this, true); + } else { + Event.addListener(this.el, "change", this.onChange, this, true); } Event.addFocusListener(this.el, this.onFocus, this, true); @@ -130,10 +132,7 @@

    inputEx  0.4.0

    onChange: function(e) { this.hiddenEl.value = this.el.checked ? this.checkedValue : this.uncheckedValue; - // In IE the fireUpdatedEvent is sent by the click ! We need to send it only once ! - if( !YAHOO.env.ua.ie ) { - inputEx.CheckBox.superclass.onChange.call(this,e); - } + inputEx.CheckBox.superclass.onChange.call(this,e); }, /** @@ -150,19 +149,36 @@

    inputEx  0.4.0

    * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(value, sendUpdatedEvt) { - if (value===this.checkedValue) { - this.hiddenEl.value = value; - this.el.setAttribute("checked","checked"); - this.el.setAttribute("defaultChecked","checked"); // for IE6 + if (value===this.checkedValue || (typeof(value) == 'string' && typeof(this.checkedValue) == 'boolean' && + value === String(this.checkedValue))) { + this.hiddenEl.value = this.checkedValue; + + // check checkbox (all browsers) + this.el.checked = true; + + // hacks for IE6, because input is not operational at init, + // so "this.el.checked = true" would work for default values ! + // (but still work for later setValue calls) + if (YAHOO.env.ua.ie === 6) { + this.el.setAttribute("defaultChecked","checked"); // for IE6 + } } - else { + else { // DEBUG : /*if (value!==this.uncheckedValue && lang.isObject(console) && lang.isFunction(console.log) ) { console.log("inputEx.CheckBox: value is *"+value+"*, schould be in ["+this.checkedValue+","+this.uncheckedValue+"]"); }*/ - this.hiddenEl.value = value; - this.el.removeAttribute("checked"); - this.el.removeAttribute("defaultChecked"); // for IE6 + this.hiddenEl.value = this.uncheckedValue; + + // uncheck checkbox (all browsers) + this.el.checked = false; + + // hacks for IE6, because input is not operational at init, + // so "this.el.checked = false" would work for default values ! + // (but still work for later setValue calls) + if (YAHOO.env.ua.ie === 6) { + this.el.removeAttribute("defaultChecked"); // for IE6 + } } // Call Field.setValue to set class and fire updated event @@ -187,7 +203,7 @@

    inputEx  0.4.0

    // Register this class as "boolean" type inputEx.registerType("boolean", inputEx.CheckBox, [ - {type: 'string', inputParams: {label: 'Right Label', name: 'rightLabel'} } + {type: 'string', label: 'Right Label', name: 'rightLabel'} ]); })(); @@ -256,6 +272,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -268,6 +286,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -283,6 +302,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/ColorField.js.html b/lib/inputex/api/ColorField.js.html index 0126f7f7..b008e20a 100644 --- a/lib/inputex/api/ColorField.js.html +++ b/lib/inputex/api/ColorField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -75,7 +75,7 @@

    inputEx  0.4.0

    /** * Adds the 'inputEx-ColorField' default className - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.ColorField.superclass.setOptions.call(this, options); @@ -390,6 +390,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -402,6 +404,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -417,6 +420,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/ColorPickerField.js.html b/lib/inputex/api/ColorPickerField.js.html index 55016d57..79bf40da 100644 --- a/lib/inputex/api/ColorPickerField.js.html +++ b/lib/inputex/api/ColorPickerField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -68,7 +68,7 @@

    inputEx  0.4.0

    /** * Adds the 'inputEx-ColorPickerField' default className - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.ColorPickerField.superclass.setOptions.call(this, options); @@ -290,6 +290,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -302,6 +304,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -317,6 +320,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/CombineField.js.html b/lib/inputex/api/CombineField.js.html index 9d4023da..31665a83 100644 --- a/lib/inputex/api/CombineField.js.html +++ b/lib/inputex/api/CombineField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -68,13 +68,11 @@

    inputEx  0.4.0

    lang.extend( inputEx.CombineField, inputEx.Group, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.CombineField.superclass.setOptions.call(this, options); - this.options.label = options.label; - // Overwrite options this.options.className = options.className ? options.className : 'inputEx-CombineField'; @@ -149,8 +147,7 @@

    inputEx  0.4.0

    // Subfields should inherit required property if (this.options.required) { - if (!fieldOptions.inputParams) {fieldOptions.inputParams = {};} - fieldOptions.inputParams.required = true; + fieldOptions.required = true; } return inputEx.CombineField.superclass.renderField.call(this, fieldOptions); @@ -203,8 +200,8 @@

    inputEx  0.4.0

    // Register this class as "combine" type inputEx.registerType("combine", inputEx.CombineField, [ - { type: 'list', inputParams: {name: 'fields', label: 'Elements', required: true, elementType: {type: 'type'} } }, - { type: 'list', inputParams: {name: 'separators', label: 'Separators', required: true } } + { type: 'list', name: 'fields', label: 'Elements', required: true, elementType: {type: 'type'} }, + { type: 'list', name: 'separators', label: 'Separators', required: true } ]); })(); @@ -273,6 +270,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -285,6 +284,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -300,6 +300,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/DSSelectField.js.html b/lib/inputex/api/DSSelectField.js.html index 51fd2af4..f4db2a4f 100644 --- a/lib/inputex/api/DSSelectField.js.html +++ b/lib/inputex/api/DSSelectField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -72,7 +72,7 @@

    inputEx  0.4.0

    YAHOO.lang.extend(inputEx.DSSelectField, inputEx.SelectField, { /** * Setup the additional options for selectfield - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { // set this.options.selectValues and this.options.selectOptions @@ -225,6 +225,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -237,6 +239,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -252,6 +255,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/DataTable.js.html b/lib/inputex/api/DataTable.js.html index 08dd06b0..ef6b5423 100644 --- a/lib/inputex/api/DataTable.js.html +++ b/lib/inputex/api/DataTable.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -285,13 +285,11 @@

    inputEx  0.4.0

    id: this.options.dialogId, inputExDef: { type: 'form', - inputParams: { - fields: this.options.fields, - buttons: [ - {type: 'button', value: msgs.saveText, onClick: function() { that.onDialogSave();} }, - {type: 'button', value: msgs.cancelText, onClick: function() { that.onDialogCancel(); } } - ] - } + fields: this.options.fields, + buttons: [ + {type: 'submit', value: msgs.saveText, onClick: function() { that.onDialogSave(); return false; /* prevent form submit */} }, + {type: 'link', value: msgs.cancelText, onClick: function() { that.onDialogCancel(); } } + ] }, title: this.options.dialogLabel, panelConfig: this.options.panelConfig @@ -480,9 +478,23 @@

    inputEx  0.4.0

    * Convert a single inputEx field definition to a DataTable column definition */ fieldToColumndef: function(field) { - var columnDef = { - key: field.inputParams.name, - label: field.inputParams.label, + + var key, label, colmunDef; + + // Retro-compatibility with inputParms + if (lang.isObject(field.inputParams)) { + key = field.inputParams.name; + label = field.inputParams.label; + + // New prefered way to set options of a field + } else { + key = field.name; + label = field.label; + } + + columnDef = { + key: key, + label: label, sortable: true, resizeable: true }; @@ -684,6 +696,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -696,6 +710,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -711,6 +726,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/DateField.js.html b/lib/inputex/api/DateField.js.html index 96f6581e..ac9cafb0 100644 --- a/lib/inputex/api/DateField.js.html +++ b/lib/inputex/api/DateField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -67,7 +67,7 @@

    inputEx  0.4.0

    lang.extend(inputEx.DateField, inputEx.StringField, { /** * Adds the 'inputEx-DateField' default className - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.DateField.superclass.setOptions.call(this, options); @@ -185,7 +185,7 @@

    inputEx  0.4.0

    // Register this class as "date" type inputEx.registerType("date", inputEx.DateField, [ - {type: 'select', inputParams: {label: 'Date format', name: 'dateFormat', selectOptions: ["m/d/Y", "d/m/Y"], selectValues: ["m/d/Y", "d/m/Y"] } } + {type: 'select', label: 'Date format', name: 'dateFormat', selectOptions: ["m/d/Y", "d/m/Y"], selectValues: ["m/d/Y", "d/m/Y"] } ]); })(); @@ -254,6 +254,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -266,6 +268,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -281,6 +284,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/DatePickerField.js.html b/lib/inputex/api/DatePickerField.js.html index d27be8be..74f6d960 100644 --- a/lib/inputex/api/DatePickerField.js.html +++ b/lib/inputex/api/DatePickerField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -68,14 +68,15 @@

    inputEx  0.4.0

    lang.extend(inputEx.DatePickerField, inputEx.DateField, { /** * Set the default date picker CSS classes - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.DatePickerField.superclass.setOptions.call(this, options); - // Overwrite options + // Overwrite default options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField'; - this.options.readonly = true; + + this.options.readonly = YAHOO.lang.isUndefined(options.readonly) ? true : options.readonly; // Added options this.options.calendar = options.calendar || inputEx.messages.defautCalendarOpts; @@ -103,16 +104,18 @@

    inputEx  0.4.0

    // HACK: Set position absolute to the overlay Dom.setStyle(this.oOverlay.body.parentNode, "position", "absolute"); - - Event.addListener(this.el,'click',function(){ - // calendar may not have been rendered yet - this.renderCalendar(); + // Subscribe the click handler on the field only if readonly + if(this.options.readonly) { + Event.addListener(this.el,'click',function(){ + // calendar may not have been rendered yet + this.renderCalendar(); - if (!this.oOverlay.justHidden) { - this.button._showMenu(); - } - },this,true); - + if (!this.oOverlay.justHidden) { + this.button._showMenu(); + } + },this,true); + } + this.oOverlay.hideEvent.subscribe(function() { this.oOverlay.justHidden = true; YAHOO.lang.later(250,this,function(){this.oOverlay.justHidden=false;}); @@ -215,8 +218,11 @@

    inputEx  0.4.0

    this.calendarRendered = true; }, - // Select the right date and display the right page on calendar, when the field has a value - beforeShowOverlay: function() { + /** + * Select the right date and display the right page on calendar, when the field has a value + */ + beforeShowOverlay: function(e) { + var date = this.getValue(true); if (!!this.calendar) { @@ -231,7 +237,23 @@

    inputEx  0.4.0

    this.calendar.render(); // refresh calendar } - } + }, + + /** + * Disable the field + */ + disable: function() { + inputEx.DatePickerField.superclass.disable.call(this); + this.button.set('disabled', true); + }, + + /** + * Enable the field + */ + enable: function() { + inputEx.DatePickerField.superclass.enable.call(this); + this.button.set('disabled', false); + } }); @@ -306,6 +328,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -318,6 +342,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -333,6 +358,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/DateSelectMonthField.js.html b/lib/inputex/api/DateSelectMonthField.js.html index 71c231b9..01a7b4db 100644 --- a/lib/inputex/api/DateSelectMonthField.js.html +++ b/lib/inputex/api/DateSelectMonthField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -68,13 +68,13 @@

    inputEx  0.4.0

    options.fields = []; for(var i = 0 ; i < 3 ; i++) { if(i == this.dayIndex) { - options.fields.push({type: 'string', inputParams: { typeInvite: inputEx.messages.dayTypeInvite, size: 2} }); + options.fields.push({type: 'string', typeInvite: inputEx.messages.dayTypeInvite, size: 2 }); } else if(i == this.yearIndex) { - options.fields.push({type: 'string', inputParams: { typeInvite: inputEx.messages.yearTypeInvite, size: 4} }); + options.fields.push({type: 'string', typeInvite: inputEx.messages.yearTypeInvite, size: 4 }); } else { - options.fields.push({type: 'select', inputParams: {selectOptions: ([inputEx.messages.selectMonth]).concat(inputEx.messages.months), selectValues: [-1,0,1,2,3,4,5,6,7,8,9,10,11], value: -1} }); + options.fields.push({type: 'select', selectOptions: ([inputEx.messages.selectMonth]).concat(inputEx.messages.months), selectValues: [-1,0,1,2,3,4,5,6,7,8,9,10,11], value: -1 }); } } @@ -213,6 +213,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -225,6 +227,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -240,6 +243,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/DateSplitField.js.html b/lib/inputex/api/DateSplitField.js.html index 50cd128f..c94bb171 100644 --- a/lib/inputex/api/DateSplitField.js.html +++ b/lib/inputex/api/DateSplitField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -68,13 +68,13 @@

    inputEx  0.4.0

    options.fields = []; for(var i = 0 ; i < 3 ; i++) { if(i == this.dayIndex) { - options.fields.push({type: 'integer', inputParams: { typeInvite: inputEx.messages.dayTypeInvite, size: 2} }); + options.fields.push({type: 'integer', typeInvite: inputEx.messages.dayTypeInvite, size: 2 }); } else if(i == this.yearIndex) { - options.fields.push({type: 'integer', inputParams: { typeInvite: inputEx.messages.yearTypeInvite, size: 4} }); + options.fields.push({type: 'integer', typeInvite: inputEx.messages.yearTypeInvite, size: 4 }); } else { - options.fields.push({type: 'integer', inputParams: {typeInvite: inputEx.messages.monthTypeInvite, size: 2} }); + options.fields.push({type: 'integer', typeInvite: inputEx.messages.monthTypeInvite, size: 2 }); } } @@ -263,6 +263,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -275,6 +277,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -290,6 +293,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/DateTimeField.js.html b/lib/inputex/api/DateTimeField.js.html index 6d22174f..1fc1d3ac 100644 --- a/lib/inputex/api/DateTimeField.js.html +++ b/lib/inputex/api/DateTimeField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -63,11 +63,11 @@

    inputEx  0.4.0

    */ inputEx.DateTimeField = function(options) { options.fields = [ - {type: 'datepicker', inputParams: {}}, - {type: 'time', inputParams: {}} + {type: 'datepicker'}, + {type: 'time'} ]; if(options.dateFormat) { - options.fields[0].inputParams.dateFormat = options.dateFormat; + options.fields[0].dateFormat = options.dateFormat; } options.separators = options.separators || [false, "&nbsp;&nbsp;", false]; inputEx.DateTimeField.superclass.constructor.call(this,options); @@ -176,6 +176,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -188,6 +190,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -203,6 +206,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Dialog.js.html b/lib/inputex/api/Dialog.js.html index 8b5bbdb4..79e001fa 100644 --- a/lib/inputex/api/Dialog.js.html +++ b/lib/inputex/api/Dialog.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -101,7 +101,16 @@

    inputEx  0.4.0

    * Render the form */ renderForm: function() { - this._inputExOptions.inputExDef.inputParams.parentEl = this._inputExBodyId; + + // Retro-compatibility with deprecated inputParams Object + if (YAHOO.lang.isObject(this._inputExOptions.inputExDef.inputParams)) { + this._inputExOptions.inputExDef.inputParams.parentEl = this._inputExBodyId; + + // New prefered syntax for field options + } else { + this._inputExOptions.inputExDef.parentEl = this._inputExBodyId; + } + this._inputExFieldInstance = inputEx(this._inputExOptions.inputExDef); this._inputExFieldInstance._inputExDialog = this; }, @@ -208,6 +217,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -220,6 +231,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -235,6 +247,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/EmailField.js.html b/lib/inputex/api/EmailField.js.html index d4abd7f4..8a8e6df6 100644 --- a/lib/inputex/api/EmailField.js.html +++ b/lib/inputex/api/EmailField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -63,7 +63,7 @@

    inputEx  0.4.0

    /** * Set the email regexp and invalid message - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.EmailField.superclass.setOptions.call(this, options); @@ -77,7 +77,12 @@

    inputEx  0.4.0

    * @return {String} The email string */ getValue: function() { - return inputEx.removeAccents(this.el.value.toLowerCase()); + + var value; + + value = inputEx.EmailField.superclass.getValue.call(this); + + return inputEx.removeAccents(value.toLowerCase()); } }); @@ -154,6 +159,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -166,6 +173,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -181,6 +189,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Field.js.html b/lib/inputex/api/Field.js.html index 6b68ae01..2367ae67 100644 --- a/lib/inputex/api/Field.js.html +++ b/lib/inputex/api/Field.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -104,7 +104,7 @@

    inputEx  0.4.0

    /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { @@ -355,13 +355,14 @@

    inputEx  0.4.0

    // Unsubscribe all listeners on the updatedEvt this.updatedEvt.unsubscribeAll(); + // Purge element (remove listeners on el and childNodes recursively) + util.Event.purgeElement(el, true); + // Remove from DOM if(Dom.inDocument(el)) { el.parentNode.removeChild(el); } - // recursively purge element - util.Event.purgeElement(el, true); }, /** @@ -407,16 +408,33 @@

    inputEx  0.4.0

    */ isEmpty: function() { return this.getValue() === ''; - } + }, + + /** + * Set the parentField. + * Generally use by composable fields (ie. Group,Form,ListField,CombineField,...} + * @param {inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField} parentField The parent field instance + */ + setParentField: function(parentField) { + this.parentField = parentField; + }, + + /** + * Return the parent field instance + * @return {inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField} + */ + getParentField: function() { + return this.parentField; + } }; inputEx.Field.groupOptions = [ - { type: "string", inputParams:{label: "Label", name: "label", value: ''} }, - { type: "string", inputParams:{label: "Name", name: "name", value: ''} }, - { type: "string", inputParams: {label: "Description",name: "description", value: ''} }, - { type: "boolean", inputParams: {label: "Required?",name: "required", value: false} }, - { type: "boolean", inputParams: {label: "Show messages",name: "showMsg", value: false} } + { type: "string", label: "Label", name: "label", value: '' }, + { type: "string", label: "Name", name: "name", value: '' }, + { type: "string", label: "Description",name: "description", value: '' }, + { type: "boolean", label: "Required?",name: "required", value: false }, + { type: "boolean", label: "Show messages",name: "showMsg", value: false } ]; })(); @@ -485,6 +503,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -497,6 +517,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -512,6 +533,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/FileField.js.html b/lib/inputex/api/FileField.js.html index 68b277a6..d1d5e3d3 100644 --- a/lib/inputex/api/FileField.js.html +++ b/lib/inputex/api/FileField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -67,7 +67,7 @@

    inputEx  0.4.0

    /** * Adds size and accept options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.FileField.superclass.setOptions.call(this, options); @@ -166,6 +166,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -178,6 +180,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -193,6 +196,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Form.js.html b/lib/inputex/api/Form.js.html index 43858f9d..3498cc4e 100644 --- a/lib/inputex/api/Form.js.html +++ b/lib/inputex/api/Form.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -48,7 +48,7 @@

    inputEx  0.4.0

    #doc3 .classopts { display:none; }
    (function () {
    -   var util = YAHOO.util, lang = YAHOO.lang, Event = YAHOO.util.Event, Dom = util.Dom;
    +   var util = YAHOO.util, lang = YAHOO.lang, Event = util.Event, Dom = util.Dom;
     
     /**
      * Create a group of fields within a FORM tag and adds buttons
    @@ -70,7 +70,7 @@ 

    inputEx  0.4.0

    /** * Adds buttons and set ajax default parameters - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.Form.superclass.setOptions.call(this, options); @@ -83,7 +83,7 @@

    inputEx  0.4.0

    this.options.method = options.method; this.options.className = options.className || 'inputEx-Group'; - this.options.autocomplete = lang.isUndefined(options.autocomplete) ? true : options.autocomplete; + this.options.autocomplete = (options.autocomplete === false || options.autocomplete === "off") ? false : true; this.options.enctype = options.enctype; @@ -146,25 +146,30 @@

    inputEx  0.4.0

    * Render the buttons */ renderButtons: function() { - + + var buttonConf, button, i, buttonsNb = this.options.buttons.length; + this.buttonDiv = inputEx.cn('div', {className: 'inputEx-Form-buttonBar'}); - var button, buttonEl; - for(var i = 0 ; i < this.options.buttons.length ; i++ ) { - button = this.options.buttons[i]; - - // Throw Error if button is undefined - if(!button) { - throw new Error("inputEx.Form: One of the provided button is undefined ! (check trailing comma)"); - } - - buttonEl = inputEx.cn('input', {type: button.type, value: button.value, name: button.name}); - if( button.onClick ) { buttonEl.onclick = button.onClick; } - this.buttons.push(buttonEl); - this.buttonDiv.appendChild(buttonEl); - } - - this.form.appendChild(this.buttonDiv); + for(i = 0 ; i < buttonsNb ; i++ ) { + buttonConf = this.options.buttons[i]; + + // Throw Error if button is undefined + if(!buttonConf) { + throw new Error("inputEx.Form: One of the provided button is undefined ! (check trailing comma)"); + } + + button = new inputEx.widget.Button(buttonConf); + button.render(this.buttonDiv); + + this.buttons.push(button); + + } + + // useful for link buttons re-styling (float required on <a>'s ... ) + this.buttonDiv.appendChild(inputEx.cn('div',null,{clear:'both'})); + + this.form.appendChild(this.buttonDiv); }, @@ -172,10 +177,44 @@

    inputEx  0.4.0

    * Init the events */ initEvents: function() { + + var i, length; + inputEx.Form.superclass.initEvents.call(this); - - // Handle the submit event - Event.addListener(this.form, 'submit', this.options.onSubmit || this.onSubmit,this,true); + + + // Custom event to normalize form submits + this.submitEvent = new util.CustomEvent("submit"); + + + // Two ways to trigger the form submitEvent firing + // + // + // 1. catch a 'submit' event on form (say a user pressed <Enter> in a field) + // + Event.addListener(this.form, 'submit', function(e) { + + // always stop event + Event.stopEvent(e); + + // replace with custom event + this.submitEvent.fire(); + + },this,true); + + + // + // 2. click on a 'submit' or 'submit-link' button + // + for(i=0, length=this.buttons.length; i<length; i++) { + + this.buttons[i].submitEvent.subscribe(function() { this.submitEvent.fire(); }, this, true); + + } + + + // When form submitEvent is fired, call onSubmit + this.submitEvent.subscribe(this.options.onSubmit || this.onSubmit, this, true); }, /** @@ -184,17 +223,20 @@

    inputEx  0.4.0

    * @param {Event} e The original onSubmit event */ onSubmit: function(e) { - + // do nothing if does not validate if ( !this.validate() ) { - Event.stopEvent(e); // no submit - return; // no ajax submit + return; // no submit } if(this.options.ajax) { - Event.stopEvent(e); - this.asyncRequest(); + this.asyncRequest(); // send ajax request + return; } + + // normal submit finally + // (won't fire a dom "submit" event, so no risk to loop) + this.form.submit(); }, /** @@ -338,8 +380,9 @@

    inputEx  0.4.0

    */ enable: function() { inputEx.Form.superclass.enable.call(this); + for (var i = 0 ; i < this.buttons.length ; i++) { - this.buttons[i].disabled = false; + this.buttons[i].enable(); } }, @@ -348,9 +391,32 @@

    inputEx  0.4.0

    */ disable: function() { inputEx.Form.superclass.disable.call(this); + for (var i = 0 ; i < this.buttons.length ; i++) { - this.buttons[i].disabled = true; + this.buttons[i].disable(); + } + }, + + + /** + * Purge all event listeners and remove the component from the dom + */ + destroy: function() { + + var i, length, button; + + // Unsubscribe all listeners to submit event + this.submitEvent.unsubscribeAll(); + + // Recursively destroy buttons + for (i = 0, length = this.buttons.length ; i < length ; i++) { + button = this.buttons[i]; + button.destroy(); } + + // destroy Form itself (+ inputs) + inputEx.Form.superclass.destroy.call(this); + } }); @@ -361,19 +427,17 @@

    inputEx  0.4.0

    // Register this class as "form" type inputEx.registerType("form", inputEx.Form, [ - {type: 'list', inputParams:{ + { + type: 'list', label: 'Buttons', name: 'buttons', - elementType: { - type: 'group', - inputParams: { - fields: [ - { inputParams: {label: 'Label', name: 'value'}}, - { type: 'select', inputParams: {label: 'Type', name: 'type', selectValues:["button", "submit"]} } - ] - } - } - } + elementType: { + type: 'group', + fields: [ + { label: 'Label', name: 'value'}, + { type: 'select', label: 'Type', name: 'type', selectValues:["button", "submit"] } + ] + } } ]); @@ -444,6 +508,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -456,6 +522,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -471,6 +538,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Group.js.html b/lib/inputex/api/Group.js.html index 2550d96b..21b5663f 100644 --- a/lib/inputex/api/Group.js.html +++ b/lib/inputex/api/Group.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -58,7 +58,7 @@

    inputEx  0.4.0

    * @constructor * @param {Object} options The following options are added for Groups and subclasses: * <ul> - * <li>fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, inputParams: {inputparams object} }</li> + * <li>fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, ... }</li> * <li>legend: The legend for the fieldset (default is an empty string)</li> * <li>collapsible: Boolean to make the group collapsible (default is false)</li> * <li>collapsed: If collapsible only, will be collapsed at creation (default is false)</li> @@ -77,29 +77,20 @@

    inputEx  0.4.0

    /** * Adds some options: legend, collapsible, fields... - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { - - this.options = {}; - + + inputEx.Group.superclass.setOptions.call(this, options); + this.options.className = options.className || 'inputEx-Group'; this.options.fields = options.fields; - this.options.id = options.id; - - this.options.name = options.name; - - this.options.value = options.value; - this.options.flatten = options.flatten; this.options.legend = options.legend || ''; - // leave this for compatibility reasons - this.inputConfigs = options.fields; - this.options.collapsible = lang.isUndefined(options.collapsible) ? false : options.collapsible; this.options.collapsed = lang.isUndefined(options.collapsed) ? false : options.collapsed; @@ -123,7 +114,7 @@

    inputEx  0.4.0

    this.divEl.id = this.options.id; } - this.renderFields(this.divEl); + this.renderFields(this.divEl); if(this.options.disabled) { this.disable(); @@ -147,7 +138,7 @@

    inputEx  0.4.0

    } if(!lang.isUndefined(this.options.legend) && this.options.legend !== ''){ - this.legend.appendChild( document.createTextNode(" "+this.options.legend) ); + this.legend.appendChild( inputEx.cn("span", null, null, " "+this.options.legend) ); } if( this.options.collapsible || (!lang.isUndefined(this.options.legend) && this.options.legend !== '') ) { @@ -184,7 +175,7 @@

    inputEx  0.4.0

    renderField: function(fieldOptions) { // Instanciate the field - var fieldInstance = inputEx(fieldOptions); + var fieldInstance = inputEx(fieldOptions,this); this.inputs.push(fieldInstance); @@ -243,6 +234,38 @@

    inputEx  0.4.0

    } return response; }, + + /** + * Alternative method to validate for advanced error handling + * @returns {Object} with all Forms's fields state, error message + * and validate containing a boolean for the global Form validation + */ + getFieldsStates: function() { + var input, inputName, state, message, + returnedObj = { fields:{}, validate:true }; + + // Loop on all the sub fields + for (var i = 0 ; i < this.inputs.length ; i++) { + + input = this.inputs[i]; + inputName = input.options.name; + state = input.getState(); + message = input.getStateString(state); + + returnedObj.fields[inputName] = {}; + returnedObj.fields[inputName].valid = true; + returnedObj.fields[inputName].message = message; + + // check if subfield validates + if( state == inputEx.stateRequired || state == inputEx.stateInvalid ) { + returnedObj.fields[inputName].valid = false; + returnedObj.validate = false; + } + + } + + return returnedObj; + }, /** * Enable all fields in the group @@ -454,7 +477,26 @@

    inputEx  0.4.0

    } } } - } + }, + + + /** + * Purge all event listeners and remove the component from the dom + */ + destroy: function() { + + var i, length, field; + + // Recursively destroy inputs + for (i = 0, length = this.inputs.length ; i < length ; i++) { + field = this.inputs[i]; + field.destroy(); + } + + // Destroy group itself + inputEx.Group.superclass.destroy.call(this); + + } }); @@ -462,11 +504,11 @@

    inputEx  0.4.0

    // Register this class as "group" type inputEx.registerType("group", inputEx.Group, [ - { type: "string", inputParams:{label: "Name", name: "name", value: ''} }, - { type: 'string', inputParams: { label: 'Legend', name:'legend'}}, - { type: 'boolean', inputParams: {label: 'Collapsible', name:'collapsible', value: false}}, - { type: 'boolean', inputParams: {label: 'Collapsed', name:'collapsed', value: false}}, - { type: 'list', inputParams:{ label: 'Fields', name: 'fields', elementType: {type: 'type' } } } + { type: "string", label: "Name", name: "name", value: '' }, + { type: 'string', label: 'Legend', name:'legend'}, + { type: 'boolean', label: 'Collapsible', name:'collapsible', value: false}, + { type: 'boolean', label: 'Collapsed', name:'collapsed', value: false}, + { type: 'list', label: 'Fields', name: 'fields', elementType: {type: 'type' } } ], true); @@ -536,6 +578,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -548,6 +592,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -563,6 +608,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/HiddenField.js.html b/lib/inputex/api/HiddenField.js.html index a7d46506..64c146ed 100644 --- a/lib/inputex/api/HiddenField.js.html +++ b/lib/inputex/api/HiddenField.js.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/IPv4Field.js.html b/lib/inputex/api/IPv4Field.js.html index cf893cc7..231717b0 100644 --- a/lib/inputex/api/IPv4Field.js.html +++ b/lib/inputex/api/IPv4Field.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -63,7 +63,7 @@

    inputEx  0.4.0

    /** * set IPv4 regexp and invalid string - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.IPv4Field.superclass.setOptions.call(this, options); @@ -145,6 +145,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -157,6 +159,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -172,6 +175,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/InPlaceEdit.js.html b/lib/inputex/api/InPlaceEdit.js.html index 3dd948a7..29e8dab0 100644 --- a/lib/inputex/api/InPlaceEdit.js.html +++ b/lib/inputex/api/InPlaceEdit.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -70,14 +70,18 @@

    inputEx  0.4.0

    lang.extend(inputEx.InPlaceEdit, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.InPlaceEdit.superclass.setOptions.call(this, options); - this.options.animColors = options.animColors || {from: '#ffff99' , to: '#ffffff'}; this.options.visu = options.visu; + this.options.editorField = options.editorField; + + this.options.buttonTypes = options.buttonTypes || {ok:"submit",cancel:"link"}; + + this.options.animColors = options.animColors || null; }, /** @@ -96,24 +100,31 @@

    inputEx  0.4.0

    this.editorContainer = inputEx.cn('div', {className: CSS_PREFIX+'editor'}, {display: 'none'}); // Render the editor field - this.editorField = inputEx(this.options.editorField); + this.editorField = inputEx(this.options.editorField,this); var editorFieldEl = this.editorField.getEl(); this.editorContainer.appendChild( editorFieldEl ); Dom.addClass( editorFieldEl , CSS_PREFIX+'editorDiv'); - this.okButton = inputEx.cn('a', {className: CSS_PREFIX+'OkButton'}, null, inputEx.messages.okEditor); - this.okButton.href = ""; // IE required (here, not in the cn fct) - this.editorContainer.appendChild(this.okButton); - - this.cancelLink = inputEx.cn('a', {className: CSS_PREFIX+'CancelLink'}, null, inputEx.messages.cancelEditor); - this.cancelLink.href = ""; // IE required (here, not in the cn fct) - this.editorContainer.appendChild(this.cancelLink); + this.okButton = new inputEx.widget.Button({ + type: this.options.buttonTypes.ok, + parentEl: this.editorContainer, + value: inputEx.messages.okEditor, + className: "inputEx-Button "+CSS_PREFIX+'OkButton', + onClick: {fn: this.onOkEditor, scope:this} + }); + + this.cancelLink = new inputEx.widget.Button({ + type: this.options.buttonTypes.cancel, + parentEl: this.editorContainer, + value: inputEx.messages.cancelEditor, + className: "inputEx-Button "+CSS_PREFIX+'CancelLink', + onClick: {fn: this.onCancelEditor, scope:this} + }); // Line breaker () this.editorContainer.appendChild( inputEx.cn('div',null, {clear: 'both'}) ); - //this.divEl.appendChild(this.editorContainer); this.fieldContainer.appendChild(this.editorContainer); }, @@ -140,7 +151,7 @@

    inputEx  0.4.0

    } this.colorAnim = new YAHOO.util.ColorAnim(this.formattedContainer, {backgroundColor: this.options.animColors}, 1); this.colorAnim.onComplete.subscribe(function() { Dom.setStyle(this.formattedContainer, 'background-color', ''); }, this, true); - this.colorAnim.animate(); + this.colorAnim.animate(); }, /** @@ -169,14 +180,12 @@

    inputEx  0.4.0

    initEvents: function() { Event.addListener(this.formattedContainer, "click", this.openEditor, this, true); - // For color animation - Event.addListener(this.formattedContainer, 'mouseover', this.onVisuMouseOver, this, true); - Event.addListener(this.formattedContainer, 'mouseout', this.onVisuMouseOut, this, true); - - // Editor: - Event.addListener(this.okButton, 'click', this.onOkEditor, this, true); - Event.addListener(this.cancelLink, 'click', this.onCancelEditor, this, true); - + // For color animation (if specified) + if (this.options.animColors) { + Event.addListener(this.formattedContainer, 'mouseover', this.onVisuMouseOver, this, true); + Event.addListener(this.formattedContainer, 'mouseout', this.onVisuMouseOut, this, true); + } + if(this.editorField.el) { // Register some listeners Event.addListener(this.editorField.el, "keyup", this.onKeyUp, this, true); @@ -308,7 +317,7 @@

    inputEx  0.4.0

    // Register this class as "inplaceedit" type inputEx.registerType("inplaceedit", inputEx.InPlaceEdit, [ - { type:'type', inputParams: {label: 'Editor', name: 'editorField'} } + { type:'type', label: 'Editor', name: 'editorField'} ]); })(); @@ -377,6 +386,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -389,6 +400,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -404,6 +416,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/IntegerField.js.html b/lib/inputex/api/IntegerField.js.html index 8a1ee40f..0e7578f5 100644 --- a/lib/inputex/api/IntegerField.js.html +++ b/lib/inputex/api/IntegerField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -110,8 +110,8 @@

    inputEx  0.4.0

    // Register this class as "integer" type inputEx.registerType("integer", inputEx.IntegerField, [ - //{ type: 'integer', inputParams: {label: 'Radix', name: 'radix', value: 10}}, - {type: 'boolean', inputParams: {label: 'Accept negative', name: 'negative', value: false} } + //{ type: 'integer', label: 'Radix', name: 'radix', value: 10}, + {type: 'boolean', label: 'Accept negative', name: 'negative', value: false } ]); })(); @@ -180,6 +180,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -192,6 +194,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -207,6 +210,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/KeyOpValueField-beta.js.html b/lib/inputex/api/KeyOpValueField-beta.js.html index 60e0019f..8d4ecbdb 100644 --- a/lib/inputex/api/KeyOpValueField-beta.js.html +++ b/lib/inputex/api/KeyOpValueField-beta.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -52,31 +52,38 @@

    inputEx  0.4.0

    * @class inputEx.KeyOpValueField * @constructor * @extend inputEx.KeyValueField + * @param {Object} options InputEx definition object with the "availableFields" */ -inputEx.KeyOpValueField = function(searchFormDef) { - - this.nameIndex = {}; - var fieldNames = [], fieldLabels = []; - for(var i = 0 ; i < searchFormDef.fields.length ; i++) { - var field = searchFormDef.fields[i]; - this.nameIndex[field.inputParams.name] = field; - fieldNames.push(field.inputParams.name); - fieldLabels.push(field.inputParams.label || field.inputParams.name); - } - - var opts = { - fields: [ - {type: 'select', inputParams: { selectValues: fieldNames, selectOptions: fieldLabels } }, - {type: 'select', inputParams: { selectValues: ["=", ">", "<", ">=", "<=", "!=", "LIKE", "NOT LIKE", "IS NULL", "IS NOT NULL"]} }, - searchFormDef.fields[0] - ], - parentEl: searchFormDef.parentEl - }; - - - inputEx.KeyValueField.superclass.constructor.call(this, opts); +inputEx.KeyOpValueField = function(options) { + inputEx.KeyValueField.superclass.constructor.call(this, options); }; -YAHOO.lang.extend( inputEx.KeyOpValueField, inputEx.KeyValueField, {}); +YAHOO.lang.extend( inputEx.KeyOpValueField, inputEx.KeyValueField, { + + /** + * Setup the options.fields from the availableFields option + */ + setOptions: function(options) { + + var selectFieldConfig = this.generateSelectConfig(options.availableFields); + + var newOptions = { + fields: [ + selectFieldConfig, + {type: 'select', selectValues: options.operators || ["=", ">", "<", ">=", "<=", "!=", "LIKE", "NOT LIKE", "IS NULL", "IS NOT NULL"] }, + this.nameIndex[options.availableFields[0].name] + ] + }; + + if(options.operatorLabels) { + newOptions.fields[1].selectOptions = options.operatorLabels; + } + + YAHOO.lang.augmentObject(newOptions, options); + + inputEx.KeyValueField.superclass.setOptions.call(this, newOptions); + } + +}); inputEx.registerType("keyopvalue", inputEx.KeyOpValueField, {});
    @@ -144,6 +151,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -156,6 +165,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -171,6 +181,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/KeyValueField-beta.js.html b/lib/inputex/api/KeyValueField-beta.js.html index 6c8ce6b8..28692882 100644 --- a/lib/inputex/api/KeyValueField-beta.js.html +++ b/lib/inputex/api/KeyValueField-beta.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -52,28 +52,10 @@

    inputEx  0.4.0

    * @class inputEx.KeyValueField * @constructor * @extends inputEx.CombineField - * @param {Object} searchFormDef InputEx definition object + * @param {Object} options InputEx definition object with the "availableFields" */ -inputEx.KeyValueField = function(searchFormDef) { - - this.nameIndex = {}; - var fieldNames = [], fieldLabels = []; - for(var i = 0 ; i < searchFormDef.fields.length ; i++) { - var field = searchFormDef.fields[i]; - this.nameIndex[field.inputParams.name] = field; - fieldNames.push(field.inputParams.name); - fieldLabels.push(field.inputParams.label || field.inputParams.name); - } - - var opts = { - fields: [ - {type: 'select', inputParams: { selectValues: fieldNames, selectOptions: fieldLabels } }, - searchFormDef.fields[0] - ], - parentEl: searchFormDef.parentEl - }; - - inputEx.KeyValueField.superclass.constructor.call(this, opts); +inputEx.KeyValueField = function(options) { + inputEx.KeyValueField.superclass.constructor.call(this, options); }; YAHOO.lang.extend( inputEx.KeyValueField, inputEx.CombineField, { @@ -86,6 +68,51 @@

    inputEx  0.4.0

    this.inputs[0].updatedEvt.subscribe(this.onSelectFieldChange, this, true); }, + + + /** + * Generate + */ + generateSelectConfig: function(availableFields) { + + this.nameIndex = {}; + + var fieldNames = [], fieldLabels = [],i, field, fieldCopy, k, l; + + for( i = 0 , l = availableFields.length ; i < l ; i++) { + field = availableFields[i]; + fieldCopy = {}; + for(k in field) { + if(field.hasOwnProperty(k) && k != "label") { + fieldCopy[k] = field[k]; + } + } + this.nameIndex[field.name] = fieldCopy; + fieldNames.push(field.name); + fieldLabels.push(field.label || field.name); + } + + return {type: 'select', selectValues: fieldNames, selectOptions: fieldLabels }; + }, + + /** + * Setup the options.fields from the availableFields option + */ + setOptions: function(options) { + + var selectFieldConfig = this.generateSelectConfig(options.availableFields); + + var newOptions = { + fields: [ + selectFieldConfig, + this.nameIndex[options.availableFields[0].name] + ] + }; + + YAHOO.lang.augmentObject(newOptions, options); + + inputEx.KeyValueField.superclass.setOptions.call(this, newOptions); + }, /** * Rebuild the value field @@ -172,6 +199,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -184,6 +213,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -199,6 +229,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Lens-beta.js.html b/lib/inputex/api/Lens-beta.js.html index fb75877b..8e527cb4 100644 --- a/lib/inputex/api/Lens-beta.js.html +++ b/lib/inputex/api/Lens-beta.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -77,7 +77,7 @@

    inputEx  0.4.0

    var lens = ""; if( !lang.isString(options.lens) ) { for(var i = 0 ; i < this.options.fields.length ; i++) { - lens += "<div class='field-"+this.options.fields[i].inputParams.name+"'></div>"; + lens += "<div class='field-"+this.options.fields[i].name+"'></div>"; } } this.options.lens = lang.isString(options.lens) ? options.lens : lens; @@ -93,9 +93,9 @@

    inputEx  0.4.0

    parentEl.innerHTML = this.options.lens; for(var i = 0 ; i < this.options.fields.length ; i++) { - var els = YAHOO.util.Dom.getElementsByClassName( "field-"+this.options.fields[i].inputParams.name, "div", parentEl); + var els = YAHOO.util.Dom.getElementsByClassName( "field-"+this.options.fields[i].name, "div", parentEl); var el = els[0]; - var params = { parentEl: el, editorField: this.options.fields[i], name: this.options.fields[i].inputParams.name }; + var params = { parentEl: el, editorField: this.options.fields[i], name: this.options.fields[i].name }; if(this.options.visus) { params.visu = this.options.visus[i]; } @@ -182,6 +182,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -194,6 +196,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -209,6 +212,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/ListField.js.html b/lib/inputex/api/ListField.js.html index b34ae5c4..b04a2b8a 100644 --- a/lib/inputex/api/ListField.js.html +++ b/lib/inputex/api/ListField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -81,7 +81,7 @@

    inputEx  0.4.0

    /** * Set the ListField classname - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.ListField.superclass.setOptions.call(this, options); @@ -272,10 +272,17 @@

    inputEx  0.4.0

    // Instantiate the new subField var opts = lang.merge({}, this.options.elementType); - if(!opts.inputParams) opts.inputParams = {}; - if(!lang.isUndefined(value)) opts.inputParams.value = value; - var el = inputEx(opts); + // Retro-compatibility with deprecated inputParams Object : TODO -> remove + if(lang.isObject(opts.inputParams) && !lang.isUndefined(value)) { + opts.inputParams.value = value; + + // New prefered way to set options of a field + } else if (!lang.isUndefined(value)) { + opts.value = value; + } + + var el = inputEx(opts,this); var subFieldEl = el.getEl(); Dom.setStyle(subFieldEl, 'margin-left', '4px'); @@ -451,8 +458,8 @@

    inputEx  0.4.0

    // Register this class as "list" type inputEx.registerType("list", inputEx.ListField, [ - { type: 'string', inputParams: {label: 'List label', name: 'listLabel', value: ''}}, - { type: 'type', inputParams: {label: 'List element type', required: true, name: 'elementType'} } + { type: 'string', label: 'List label', name: 'listLabel', value: ''}, + { type: 'type', label: 'List element type', required: true, name: 'elementType' } ]); @@ -525,6 +532,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -537,6 +546,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -552,6 +562,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/MapField.js.html b/lib/inputex/api/MapField.js.html index 8c6058db..28c71581 100644 --- a/lib/inputex/api/MapField.js.html +++ b/lib/inputex/api/MapField.js.html @@ -15,8 +15,8 @@
    diff --git a/lib/inputex/api/MenuField.js.html b/lib/inputex/api/MenuField.js.html index d6c8d216..e3964848 100644 --- a/lib/inputex/api/MenuField.js.html +++ b/lib/inputex/api/MenuField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -58,10 +58,11 @@

    inputEx  0.4.0

    * @constructor * @param {Object} options Added options: * <ul> + * <li>typeInvite : text to display when no selection made</li> * <li>menuItems : contains descriptions of menu items</li> * <li>menuTrigger : event to trigger menu show</li> - * <li>menuInvite : text to display when no selection made</li> * <li>menuPosition : array of corners positions (syntax : ['menu popup corner','invite div corner'])</li> + * <li>menuConfig (optional) : object used as a config for the YUI Menu generated by MenuField * </ul> */ inputEx.MenuField = function(options) { @@ -71,7 +72,7 @@

    inputEx  0.4.0

    lang.extend(inputEx.MenuField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.MenuField.superclass.setOptions.call(this,options); @@ -80,10 +81,13 @@

    inputEx  0.4.0

    this.options.className = options.className ? options.className : 'inputEx-Field inputEx-MenuField'; // New options - this.options.menuInvite = options.menuInvite || inputEx.messages.menuInvite; + this.options.typeInvite = options.typeInvite || inputEx.messages.menuTypeInvite; this.options.menuTrigger = options.menuTrigger || "click"; this.options.menuPosition = options.menuPosition || ["tl","tr"]; this.options.menuItems = options.menuItems; + + // Configuration options for the generated YUI Menu instance + this.options.menuConfig = options.menuConfig || {}; }, @@ -93,7 +97,7 @@

    inputEx  0.4.0

    renderComponent: function() { // Div to display the invite, then the selected text - this.el = inputEx.cn('div', {className:'inputEx-Result'}, null, this.options.menuInvite); + this.el = inputEx.cn('div', {className:'inputEx-Result'}, null, this.options.typeInvite); YAHOO.util.Dom.addClass(this.el, (this.options.menuPosition[1] == "tr") ? "inputEx-RightArrow" : "inputEx-DownArrow"); this.fieldContainer.appendChild(this.el); @@ -128,7 +132,13 @@

    inputEx  0.4.0

    var item; for (var i=0, length = conf.length; i < length; i++) { item = conf[i]; - + if (YAHOO.lang.isUndefined(item.text) && !YAHOO.lang.isUndefined(item.value)) { + item.text = item.value; + } + if (YAHOO.lang.isUndefined(item.value) && !YAHOO.lang.isUndefined(item.text)) { + item.value = item.text; + } + // item with submenu // -> explore deeper if (!YAHOO.lang.isUndefined(item.submenu)) { @@ -164,7 +174,10 @@

    inputEx  0.4.0

    var context = [this.el].concat(this.options.menuPosition); - this.menu = new YAHOO.widget.Menu(YAHOO.util.Dom.generateId(),{context:context}); + // Add generated context to the menuConfig + this.options.menuConfig.context = context; + + this.menu = new YAHOO.widget.Menu(YAHOO.util.Dom.generateId(),this.options.menuConfig); this.menu.addItems(this.options.menuItems); this.menu.render(this.menuContainer); }, @@ -195,7 +208,7 @@

    inputEx  0.4.0

    setValue: function(value, sendUpdatedEvt) { // update text - this.el.innerHTML = this._textFromValue[value] || this.options.menuInvite; + this.el.innerHTML = this._textFromValue[value] || this.options.typeInvite; // set value this.hiddenEl.value = (!!this._textFromValue[value]) ? value : ''; @@ -204,7 +217,7 @@

    inputEx  0.4.0

    }); -inputEx.messages.menuInvite = "Click here to select"; +inputEx.messages.menuTypeInvite = "Click here to select"; // Register this class as "menu" type inputEx.registerType("menu", inputEx.MenuField); @@ -275,6 +288,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -287,6 +302,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -302,6 +318,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/MultiAutoComplete.js.html b/lib/inputex/api/MultiAutoComplete.js.html index 51477cf2..c247152f 100644 --- a/lib/inputex/api/MultiAutoComplete.js.html +++ b/lib/inputex/api/MultiAutoComplete.js.html @@ -15,8 +15,8 @@
    diff --git a/lib/inputex/api/MultiSelectField.js.html b/lib/inputex/api/MultiSelectField.js.html index e93a6d23..6b16974a 100644 --- a/lib/inputex/api/MultiSelectField.js.html +++ b/lib/inputex/api/MultiSelectField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -97,15 +97,10 @@

    inputEx  0.4.0

    * Add an item to the list when the select changed */ onAddNewItem: function() { - if(this.el.selectedIndex != 0) { + if(this.el.selectedIndex !== 0) { // Add the value to the ddlist - if(this.options.selectOptions) { - this.ddlist.addItem({value: this.options.selectValues[this.el.selectedIndex], label: this.options.selectOptions[this.el.selectedIndex]}); - } - else { - this.ddlist.addItem(this.options.selectValues[this.el.selectedIndex]); - } + this.ddlist.addItem({value: this.options.selectValues[this.el.selectedIndex], label: this.options.selectOptions[this.el.selectedIndex]}); // mark option disabled this.el.childNodes[this.el.selectedIndex].disabled = true; @@ -124,17 +119,28 @@

    inputEx  0.4.0

    */ setValue: function(value, sendUpdatedEvt) { - this.ddlist.setValue(value); + var i, length, index, label, ddlistValue = []; + + if (!YAHOO.lang.isArray(value)) { return; } // Re-enable all options - for(var i = 0 ; i < this.el.childNodes.length ; i++) { + for(i = 0, length=this.el.childNodes.length ; i < length ; i++) { this.el.childNodes[i].disabled = false; } - // disable selected options - for(i = 0 ; i < value.length ; i++) { - var index = inputEx.indexOf(value[i], this.options.selectValues); + + // disable selected options and fill ddlist value + for(i = 0, length=value.length ; i < length ; i++) { + + index = inputEx.indexOf(value[i], this.options.selectValues); + label = this.options.selectOptions[index]; + ddlistValue.push({value: value[i], label: label}); + this.el.childNodes[index].disabled = true; } + + // set ddlist value + this.ddlist.setValue(ddlistValue); + if(sendUpdatedEvt !== false) { // fire update event @@ -221,6 +227,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -233,6 +241,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -248,6 +257,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/NumberField.js.html b/lib/inputex/api/NumberField.js.html index b3fd3f40..a7737202 100644 --- a/lib/inputex/api/NumberField.js.html +++ b/lib/inputex/api/NumberField.js.html @@ -15,8 +15,8 @@
    diff --git a/lib/inputex/api/PasswordField.js.html b/lib/inputex/api/PasswordField.js.html index d0526d97..6881522b 100644 --- a/lib/inputex/api/PasswordField.js.html +++ b/lib/inputex/api/PasswordField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -77,7 +77,7 @@

    inputEx  0.4.0

    /** * Add the password regexp, strengthIndicator, capsLockWarning - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.PasswordField.superclass.setOptions.call(this, options); @@ -307,8 +307,8 @@

    inputEx  0.4.0

    // Register this class as "password" type inputEx.registerType("password", inputEx.PasswordField, [ - {type: 'boolean', inputParams: {label: 'Strength indicator', name: 'strengthIndicator', value: false} }, - {type: 'boolean', inputParams: {label: 'CapsLock warning', name: 'capsLockWarning', value: false} } + {type: 'boolean', label: 'Strength indicator', name: 'strengthIndicator', value: false }, + {type: 'boolean', label: 'CapsLock warning', name: 'capsLockWarning', value: false } ]); })(); @@ -377,6 +377,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -389,6 +391,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -404,6 +407,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/RTEField.js.html b/lib/inputex/api/RTEField.js.html index 44cf9adf..195cd172 100644 --- a/lib/inputex/api/RTEField.js.html +++ b/lib/inputex/api/RTEField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -59,7 +59,7 @@

    inputEx  0.4.0

    * @param {Object} options Added options: * <ul> * <li>opts: the options to be added when calling the RTE constructor (see YUI RTE)</li> - * <li>type: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.</li> + * <li>editorType: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.</li> * </ul> */ inputEx.RTEField = function(options) { @@ -68,13 +68,13 @@

    inputEx  0.4.0

    lang.extend(inputEx.RTEField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.RTEField.superclass.setOptions.call(this, options); this.options.opts = options.opts || {}; - this.options.type = options.type; + this.options.editorType = options.editorType; }, /** @@ -85,7 +85,7 @@

    inputEx  0.4.0

    var id = "inputEx-RTEField-"+inputEx.RTEfieldsNumber; var attributes = {id:id}; - if(this.options.name) attributes.name = this.options.name; + if(this.options.name) { attributes.name = this.options.name; } this.el = inputEx.cn('textarea', attributes); @@ -96,7 +96,8 @@

    inputEx  0.4.0

    var _def = { height: '300px', width: '580px', - dompath: true + dompath: true, + filterWord:true // get rid of the MS word junk }; //The options object var o = this.options.opts; @@ -106,8 +107,8 @@

    inputEx  0.4.0

    _def[i] = o[i]; } } - //Check if options.type is present and set to simple, if it is use SimpleEditor instead of Editor - var editorType = ((this.options.type && (this.options.type == 'simple')) ? YAHOO.widget.SimpleEditor : YAHOO.widget.Editor); + //Check if options.editorType is present and set to simple, if it is use SimpleEditor instead of Editor + var editorType = ((this.options.editorType && (this.options.editorType == 'simple')) ? YAHOO.widget.SimpleEditor : YAHOO.widget.Editor); //If this fails then the code is not loaded on the page if (editorType) { @@ -116,6 +117,32 @@

    inputEx  0.4.0

    } else { alert('Editor is not on the page'); } + + + /** + * Filters out msword html comments, classes, and other junk + * (complementary with YAHOO.widget.SimpleEditor.prototype.filter_msword, when filterWord option is true) + * @param {String} value The html string + * @return {String} The html string + */ + this.editor.filter_msword = function(html) { + + html = editorType.prototype.filter_msword.call(this,html); + + // if we don't filter ms word junk + if (!this.get('filterWord')) { + return html; + } + + html = html.replace( /<!--[^>][\s\S]*-->/gi, ''); // strip (meta-)comments + html = html.replace( /<\/?meta[^>]*>/gi, ''); // strip meta tags + html = html.replace( /<\/?link[^>]*>/gi, ''); // strip link tags + html = html.replace( / class=('|")?MsoNormal('|")?/gi, ''); // strip MS office class + html = YAHOO.lang.trim(html); // trim spaces + + return html; + }; + }, /** @@ -148,13 +175,19 @@

    inputEx  0.4.0

    * @return {String} the html string */ getValue: function() { + + var html; + try { - this.editor.saveHTML(); - return this.el.value; + // trigger HTML cleaning (strip MS word or internal junk) + // + save to hidden textarea (required for classic HTML 'submit') + html = this.editor.saveHTML(); + return html; } catch(ex) { return null; } } + }); // Register this class as "html" type @@ -226,6 +259,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -238,6 +273,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -253,6 +289,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/RadioButton.js.html b/lib/inputex/api/RadioButton.js.html index 1eb6944f..ca721a57 100644 --- a/lib/inputex/api/RadioButton.js.html +++ b/lib/inputex/api/RadioButton.js.html @@ -15,8 +15,8 @@
    diff --git a/lib/inputex/api/RadioField.js.html b/lib/inputex/api/RadioField.js.html index c95ec4c2..b7fa616f 100644 --- a/lib/inputex/api/RadioField.js.html +++ b/lib/inputex/api/RadioField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -80,12 +80,11 @@

    inputEx  0.4.0

    /** * Adds the Radio button specific options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.RadioField.superclass.setOptions.call(this, options); - - this.options.className = options.className ? options.className : 'inputEx-Field inputEx-RadioField'; + if (lang.isUndefined(options.allowAny) || options.allowAny === false ) { this.options.allowAny = false; } else { @@ -98,6 +97,14 @@

    inputEx  0.4.0

    this.options.choices = options.choices; // values == choices if not provided this.options.values = lang.isArray(options.values) ? options.values : options.choices; + + this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline" + + this.options.className = options.className ? options.className : 'inputEx-Field inputEx-RadioField'; + if (this.options.display === "vertically") { + this.options.className += ' inputEx-RadioField-Vertically'; + } + }, /** @@ -139,11 +146,14 @@

    inputEx  0.4.0

    this.radioAny = inputEx.cn('input', { type: 'radio', name: this.options.name }); } div.appendChild(this.radioAny); - + this.anyField = new inputEx.StringField({value:this.options.allowAny.value}); + this.anyField.disable(); + Dom.setStyle(this.radioAny, "float","left"); Dom.setStyle(this.anyField.getEl(), "float","left"); - this.anyField.disable(); + /* Hack for firefox 3.5+ */ + if (YAHOO.env.ua.gecko >= 1.91) { Dom.setStyle(this.radioAny, "marginTop","0.2em"); } if (this.options.allowAny.separators) { sep = inputEx.cn("div",null,{margin:"3px"},this.options.allowAny.separators[0] || ''); @@ -309,14 +319,32 @@

    inputEx  0.4.0

    } return true; + }, + + /** + * Disable the field + */ + disable: function() { + for(var i = 0 ; i < this.optionEls.length; i++) { + this.optionEls[i].disabled = true; + } + }, + + /** + * Enable the field + */ + enable: function() { + for(var i = 0 ; i < this.optionEls.length; i++) { + this.optionEls[i].disabled = false; + } } }); // Register this class as "radio" type inputEx.registerType("radio", inputEx.RadioField, [ - {type: 'list', inputParams: {label: 'Options', name: 'choices', elementType: {type: 'string'} } }, - {type: 'boolean', inputParams: {label: 'Allow custom value', name: 'allowAny'}, value: false } + {type: 'list', label: 'Options', name: 'choices', elementType: {type: 'string'} }, + {type: 'boolean', label: 'Allow custom value', name: 'allowAny', value: false } ]); })(); @@ -385,6 +413,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -397,6 +427,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -412,6 +443,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/SelectField.js.html b/lib/inputex/api/SelectField.js.html index 85b642a0..dd64a446 100644 --- a/lib/inputex/api/SelectField.js.html +++ b/lib/inputex/api/SelectField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -69,7 +69,7 @@

    inputEx  0.4.0

    lang.extend(inputEx.SelectField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.SelectField.superclass.setOptions.call(this,options); @@ -268,8 +268,8 @@

    inputEx  0.4.0

    // Register this class as "select" type inputEx.registerType("select", inputEx.SelectField, [ - { type: 'list', inputParams: {name: 'selectValues', label: 'Values', elementType: {type: 'string'}, required: true } }, - { type: 'list', inputParams: {name: 'selectOptions', label: 'Options', elementType: {type: 'string'} } } + { type: 'list', name: 'selectValues', label: 'Values', elementType: {type: 'string'}, required: true }, + { type: 'list', name: 'selectOptions', label: 'Options', elementType: {type: 'string'} } ]); })(); @@ -338,6 +338,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -350,6 +352,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -365,6 +368,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/SerializeField-beta.js.html b/lib/inputex/api/SerializeField-beta.js.html new file mode 100644 index 00000000..1a536e85 --- /dev/null +++ b/lib/inputex/api/SerializeField-beta.js.html @@ -0,0 +1,403 @@ + + + + + API: inputEx SerializeField-beta.js (YUI Library) + + + + + + + + + + +
    +
    +

    inputEx-library

    +

    inputEx  0.5.0

    + inputEx-library + > inputEx + + > SerializeField-beta.js (source view) +
    +
    + Search: +
    +   +
    +
    +
    +
    + +
    +
    +
    +
    +
    + Filters + + + +
    +
    + +
    + +
    (function() {
    +
    +   var Event = YAHOO.util.Event, Dom = YAHOO.util.Dom, lang = YAHOO.lang;
    +
    +/**
    + * SerializeField allows to serialize/deserialize a complex sub-group to a string
    + * @class inputEx.SerializeField
    + * @extends inputEx.Field
    + * @constructor
    + * @param {Object} options  Standard inputEx options definition
    + */
    +inputEx.SerializeField = function(options) {
    +   inputEx.SerializeField.superclass.constructor.call(this, options);
    +   
    +};
    +
    +lang.extend(inputEx.SerializeField, inputEx.Field, {
    +	
    +	/**
    +    * Adds some options: subfield & serializer
    +    * @param {Object} options Options object as passed to the constructor
    +    */
    +   setOptions: function(options) {
    +      inputEx.SerializeField.superclass.setOptions.call(this, options);
    +   	this.options.className = options.className || 'inputEx-SerializedField';
    +
    +		this.options.subfield = options.subfield || {type: 'string'};
    +		this.options.serializer = options.serializer || "json";
    +	},
    +	
    +   /**
    +    * Render the subfield
    +    */
    +   renderComponent: function() {
    +	
    +      this.subfieldWrapper = inputEx.cn('div', {className: "inputEx-SerializedField-SubFieldWrapper"});
    +      this.fieldContainer.appendChild( this.subfieldWrapper );
    +      
    +		var config = {parentEl: this.subfieldWrapper};
    +		lang.augmentObject(config, this.options.subfield);
    +      this.subField = inputEx( config, this);
    +   },
    +
    +	/**
    +	 * Subscribe the subField
    +	 */
    +	initEvents: function() {
    +      inputEx.SerializeField.superclass.initEvents.call(this); 
    +      this.subField.updatedEvt.subscribe(this.fireUpdatedEvt, this, true);
    +   },
    +
    +	/**
    +	 * Use the subField getValue and serialize it with the selected serializing method
    +	 */
    +	getValue: function() {
    +		var val = this.subField.getValue();
    +		return this.serialize(val);
    +	},
    +	
    +	/**
    +	 * Use the deserialize method and set the value of the subField
    +	 */
    +	setValue: function(sValue, sendUpdatedEvt) {
    +		var obj = this.deserialize(sValue);
    +		this.subField.setValue(obj, sendUpdatedEvt);
    +	},
    +	
    +	/**
    +	 * Use the configured serializer
    +	 */
    +	serialize: function(o) {
    +		return inputEx.SerializeField.serializers[this.options.serializer].serialize(o);
    +	},
    +	
    +	/**
    +	 * Use the configured deserializer
    +	 */
    +	deserialize: function(sValue) {
    +		return inputEx.SerializeField.serializers[this.options.serializer].deserialize(sValue);
    +	},
    +	
    +	/**
    +	 * Sets the focus on this field
    +	 */
    +	focus: function() {
    +		this.subField.focus();
    +	}
    +	
    +});
    +
    +/**
    + * Default serializers for the SerializeField
    + * @class inputEx.SerializeField.serializers
    + * @static
    + */
    +inputEx.SerializeField.serializers = {
    +
    +	/**
    +	 * JSON Serializer
    +	 * @static
    +	 */
    +	json: {
    +		
    +		/**
    +		 * serialize to JSON
    +		 * @static
    +		 */
    +		serialize: function(o) {
    +			return YAHOO.lang.JSON.stringify(o);
    +		},
    +
    +		/**
    +		 * deserialize from JSON
    +		 * @static
    +		 */
    +		deserialize: function(sValue) {
    +			return YAHOO.lang.JSON.parse(sValue);
    +		}
    +	},
    +	
    +	/**
    +	 * XML Serializer (uses the ObjTree library)
    +	 * @static
    +	 */
    +	xml: {
    +		
    +		/**
    +		 * serialize to XML
    +		 * @static
    +		 */
    +		serialize: function(o) {
    +			if(!XML || !YAHOO.lang.isFunction(XML.ObjTree) ) {
    +				alert("ObjTree.js not loaded.");
    +				return null;
    +			}
    +			var xotree = new XML.ObjTree();
    +			return xotree.writeXML(o);
    +		},
    +
    +		/**
    +		 * deserialize from XML 
    +		 * @static
    +		 */
    +		deserialize: function(sValue) {
    +			if(!XML || !YAHOO.lang.isFunction(XML.ObjTree) ) {
    +				alert("ObjTree.js not loaded.");
    +				return null;
    +			}
    +			var xotree = new XML.ObjTree();
    +		  	var tree = xotree.parseXML( sValue );
    +			return tree;
    +		}
    +	}/*,
    +	
    +	flatten: {
    +		serialize: function(o) {
    +			// TODO: 
    +		},
    +
    +		deserialize: function(sValue) {
    +			// TODO: 
    +		}
    +	}*/
    +	
    +};
    +
    +
    +// Register this class as "serialize" type
    +inputEx.registerType("serialize", inputEx.SerializeField, [
    +	{ type:'type', label: 'SubField', name: 'subfield'},
    +	{ type:'select', name: 'serializer', label: 'Serializer', selectValues: ['json','xml'/*,'flatten'*/], value: 'json'}
    +]);
    +
    +})();
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + Copyright © 2010 Eric Abouaf All rights reserved. +
    +
    + + + diff --git a/lib/inputex/api/SliderField.js.html b/lib/inputex/api/SliderField.js.html index a861e7b3..5bc11db4 100644 --- a/lib/inputex/api/SliderField.js.html +++ b/lib/inputex/api/SliderField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -64,7 +64,7 @@

    inputEx  0.4.0

    YAHOO.lang.extend(inputEx.SliderField, inputEx.Field, { /** * Set the classname to 'inputEx-SliderField' - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.SliderField.superclass.setOptions.call(this, options); @@ -147,8 +147,8 @@

    inputEx  0.4.0

    // Register this class as "slider" type inputEx.registerType("slider", inputEx.SliderField, [ - { type: 'integer', inputParams: {label: 'Min. value', name: 'minValue', value: 0} }, - { type: 'integer', inputParams: {label: 'Max. value', name: 'maxValue', value: 100} } + { type: 'integer', label: 'Min. value', name: 'minValue', value: 0 }, + { type: 'integer', label: 'Max. value', name: 'maxValue', value: 100 } ]); })(); @@ -217,6 +217,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -229,6 +231,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -244,6 +247,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/StringField.js.html b/lib/inputex/api/StringField.js.html index d31acaa3..020c8b9b 100644 --- a/lib/inputex/api/StringField.js.html +++ b/lib/inputex/api/StringField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -77,7 +77,7 @@

    inputEx  0.4.0

    lang.extend(inputEx.StringField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.StringField.superclass.setOptions.call(this, options); @@ -88,6 +88,8 @@

    inputEx  0.4.0

    this.options.minLength = options.minLength; this.options.typeInvite = options.typeInvite; this.options.readonly = options.readonly; + this.options.autocomplete = (options.autocomplete === false || options.autocomplete === "off") ? false : true; + this.options.trim = (options.trim === true) ? true : false; }, @@ -103,11 +105,12 @@

    inputEx  0.4.0

    var attributes = {}; attributes.type = 'text'; attributes.id = this.divEl.id?this.divEl.id+'-field':YAHOO.util.Dom.generateId(); - if(this.options.size) attributes.size = this.options.size; - if(this.options.name) attributes.name = this.options.name; - if(this.options.readonly) attributes.readonly = 'readonly'; + if(this.options.size) { attributes.size = this.options.size; } + if(this.options.name) { attributes.name = this.options.name; } + if(this.options.readonly) { attributes.readonly = 'readonly'; } - if(this.options.maxLength) attributes.maxLength = this.options.maxLength; + if(this.options.maxLength) { attributes.maxLength = this.options.maxLength; } + if(!this.options.autocomplete) { attributes.autocomplete = 'off'; } // Create the node this.el = inputEx.cn('input', attributes); @@ -142,7 +145,16 @@

    inputEx  0.4.0

    * @param {String} The string value */ getValue: function() { - return (this.options.typeInvite && this.el.value == this.options.typeInvite) ? '' : this.el.value; + + var value; + + value = (this.options.typeInvite && this.el.value == this.options.typeInvite) ? '' : this.el.value; + + if (this.options.trim) { + value = YAHOO.lang.trim(value); + } + + return value; }, /** @@ -290,9 +302,9 @@

    inputEx  0.4.0

    // Register this class as "string" type inputEx.registerType("string", inputEx.StringField, [ - { type: 'string', inputParams: { label: 'Type invite', name: 'typeInvite', value: ''}}, - { type: 'integer', inputParams: { label: 'Size', name: 'size', value: 20}}, - { type: 'integer', inputParams: { label: 'Min. length', name: 'minLength', value: 0}} + { type: 'string', label: 'Type invite', name: 'typeInvite', value: ''}, + { type: 'integer', label: 'Size', name: 'size', value: 20}, + { type: 'integer', label: 'Min. length', name: 'minLength', value: 0} ]); })(); @@ -361,6 +373,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -373,6 +387,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -388,6 +403,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Textarea.js.html b/lib/inputex/api/Textarea.js.html index b8cb4c97..7e4d0b7d 100644 --- a/lib/inputex/api/Textarea.js.html +++ b/lib/inputex/api/Textarea.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -69,7 +69,7 @@

    inputEx  0.4.0

    /** * Set the specific options (rows and cols) - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.Textarea.superclass.setOptions.call(this, options); @@ -163,8 +163,8 @@

    inputEx  0.4.0

    // Register this class as "text" type inputEx.registerType("text", inputEx.Textarea, [ - { type: 'integer', inputParams: {label: 'Rows', name: 'rows', value: 6} }, - { type: 'integer', inputParams: {label: 'Cols', name: 'cols', value: 23} } + { type: 'integer', label: 'Rows', name: 'rows', value: 6 }, + { type: 'integer', label: 'Cols', name: 'cols', value: 23 } ]); })(); @@ -233,6 +233,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -245,6 +247,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -260,6 +263,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/TimeField.js.html b/lib/inputex/api/TimeField.js.html index be64aff0..86b70641 100644 --- a/lib/inputex/api/TimeField.js.html +++ b/lib/inputex/api/TimeField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -65,9 +65,9 @@

    inputEx  0.4.0

    for(i = 0 ; i < 24 ; i++) { s="";if(i<10){s="0";} s+= i;h.push(s);} for(i = 0 ; i < 60 ; i++) { s="";if(i<10){s="0";} s+= i;m.push(s);secs.push(s);} options.fields = [ - {type: 'select', inputParams: {selectOptions: h, selectValues: h} }, - {type: 'select', inputParams: {selectOptions: m, selectValues: m} }, - {type: 'select', inputParams: {selectOptions: secs, selectValues: secs} } + {type: 'select', selectOptions: h, selectValues: h }, + {type: 'select', selectOptions: m, selectValues: m }, + {type: 'select', selectOptions: secs, selectValues: secs } ]; options.separators = options.separators || [false,":",":",false]; inputEx.TimeField.superclass.constructor.call(this,options); @@ -162,6 +162,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -174,6 +176,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -189,6 +192,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/TimeIntervalField.js.html b/lib/inputex/api/TimeIntervalField.js.html index b28091c9..520b23ef 100644 --- a/lib/inputex/api/TimeIntervalField.js.html +++ b/lib/inputex/api/TimeIntervalField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -82,11 +82,12 @@

    inputEx  0.4.0

    var n=[]; for(var i=1;i<=60;i++){ n.push(i); } this.options.fields = options.fields || [ - {type: 'select', inputParams: { selectValues: n }}, - {type: 'select', inputParams: { + {type: 'select', selectValues: n }, + { + type: 'select', selectOptions: [unitsStr.SECOND, unitsStr.MINUTE, unitsStr.HOUR, unitsStr.DAY, unitsStr.MONTH, unitsStr.YEAR], selectValues: [units.SECOND, units.MINUTE, units.HOUR, units.DAY, units.MONTH, units.YEAR] - } } + } ]; this.options.separators = options.separators || [false, "&nbsp;&nbsp;", false]; @@ -229,6 +230,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -241,6 +244,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -256,6 +260,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/TimeRange.js.html b/lib/inputex/api/TimeRange.js.html new file mode 100644 index 00000000..84a77f2e --- /dev/null +++ b/lib/inputex/api/TimeRange.js.html @@ -0,0 +1,320 @@ + + + + + API: inputEx TimeRange.js (YUI Library) + + + + + + + + + + +
    +
    +

    inputEx-library

    +

    inputEx  0.5.0

    + inputEx-library + > inputEx + + > TimeRange.js (source view) +
    +
    + Search: +
    +   +
    +
    +
    +
    + +
    +
    +
    +
    +
    + Filters + + + +
    +
    + +
    + +
    /**
    + * Tweaking the TimeField to make a Time Range (two TimeFields)
    + *    - doesn't show seconds
    + *    - Minutes by group of 5
    + */
    +inputEx.TimeRange = function(options) {
    +   
    +   var h1 = [], h2 = [], i, m = [], s;
    +   for(i = 0 ; i < 25 ; i++) { 
    +		s="";
    +		if ( i<10 ){ s="0"; } 
    +		s+= i;
    +		h2.push(s);
    +   	if ( i<24 ){ h1.push(s); } // First block of hours musn't contain 24
    +	}
    +	m = ["00","05","10","15","20","25","30","35","40","45","50","55"];
    +	
    +   options.fields = [
    +      {type: 'select', selectOptions: h1, selectValues: h1 },
    +      {type: 'select', selectOptions: m, selectValues: m },
    +      {type: 'select', selectOptions: h2, selectValues: h2 },
    +      {type: 'select', selectOptions: m, selectValues: m }
    +   ];
    +
    +   options.separators = options.separators || [false,"H","&nbsp; à &nbsp;","H",false];
    +   inputEx.TimeRange.superclass.constructor.call(this,options);
    +
    +	// Hook toogleEndMinutes to the updatedEvt of the 3d select
    +	// Like that when the user selects/unselects 24h the minutes will toogle accordingly
    +	var that = this;
    +	this.inputs[2].updatedEvt.subscribe(function(){
    +		that.toogleEndMinutes();
    +	});
    +	
    +};
    +
    +YAHOO.lang.extend(inputEx.TimeRange, inputEx.CombineField, {   
    +   /**
    +    * Returns an array like ["HH:MM","HH:MM"]
    +    */
    +   getValue: function() {
    +      var values = inputEx.TimeRange.superclass.getValue.call(this);
    +
    +		var returnedValue = [];
    +		returnedValue.push(values[0]+":"+values[1]);
    +		returnedValue.push(values[2]+":"+values[3]);
    +		
    +      return returnedValue;
    +   },
    +
    +   /**
    +    * Set the value 
    +    * @param {array} array with 4 Hour strings in display order (format ["HH","MM", "HH","MM"])
    +    * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)
    +    */
    +   setValue: function(arr, sendUpdatedEvt) {
    +		var values = arr[0].split(":").concat(arr[1].split(":"));
    +      inputEx.TimeRange.superclass.setValue.call(this, values, sendUpdatedEvt);
    +		this.toogleEndMinutes();
    +   },
    +
    +	/**
    +	 * Disable the last selector and set it to "00" when the third one's value is 24
    +	 * (it will be inccorect to have an end superior to 24:00)
    +	 */
    +	toogleEndMinutes: function(){		
    +		var endHours = this.inputs[2];
    +		var endMinutes = this.inputs[3];
    +		
    +		if( endHours.getValue() == '24' ){ endMinutes.setValue("00"); endMinutes.disable();}
    +		else{ endMinutes.enable(); }		
    +	},
    +
    +	validate: function(){
    +		var values = this.getValue();
    +		
    +		var hm = values[1].split(":");
    +		if(hm[0] == '24' && hm[1] != '00'){
    +			return false;
    +		}
    +		
    +		if(values[0] >= values[1]){
    +			return false;	
    +		}
    +		
    +		return true;
    +	}
    +
    +});
    +
    +inputEx.registerType("timerange", inputEx.TimeRange);
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + Copyright © 2010 Eric Abouaf All rights reserved. +
    +
    + + + diff --git a/lib/inputex/api/TreeField.js.html b/lib/inputex/api/TreeField.js.html index 2a849824..469d59fd 100644 --- a/lib/inputex/api/TreeField.js.html +++ b/lib/inputex/api/TreeField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -107,7 +107,7 @@

    inputEx  0.4.0

    this.fieldContainer.appendChild(this.addButton); // Instanciate the new subField - this.subField = inputEx(this.options.elementType); + this.subField = inputEx(this.options.elementType,this); var subFieldEl = this.subField.getEl(); Dom.setStyle(subFieldEl, 'margin-left', '4px'); @@ -216,6 +216,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -228,6 +230,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -243,6 +246,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/TypeField.js.html b/lib/inputex/api/TypeField.js.html index 2ad298fc..e30f7806 100644 --- a/lib/inputex/api/TypeField.js.html +++ b/lib/inputex/api/TypeField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -56,7 +56,7 @@

    inputEx  0.4.0

    * @class inputEx.TypeField * @extends inputEx.Field * @constructor - * @param {Object} options Standard inputEx inputParams definition + * @param {Object} options Standard inputEx options definition */ inputEx.TypeField = function(options) { inputEx.TypeField.superclass.constructor.call(this, options); @@ -198,14 +198,17 @@

    inputEx  0.4.0

    if(this.fieldValue) { this.fieldValue.close(); this.fieldValue.destroy(); - this.fieldValue = null; + delete this.fieldValue; this.fieldValueWrapper.innerHTML = ''; } // Re-build the fieldValue - var fieldOptions = { type: this.getValue().type, inputParams: this.group.getValue() }; - fieldOptions.inputParams.parentEl = this.fieldValueWrapper; - this.fieldValue = inputEx(fieldOptions); + var fieldOptions = this.group.getValue(); + + fieldOptions.type = this.getValue().type; + fieldOptions.parentEl = this.fieldValueWrapper; + + this.fieldValue = inputEx(fieldOptions,this); // Refire the event when the fieldValue is updated this.fieldValue.updatedEvt.subscribe(this.fireUpdatedEvt, this, true); @@ -222,7 +225,7 @@

    inputEx  0.4.0

    * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(value, sendUpdatedEvt) { - + // Set type in property panel this.typeSelect.setValue(value.type, false); @@ -230,14 +233,28 @@

    inputEx  0.4.0

    this.rebuildGroupOptions(); // Set the parameters value - this.group.setValue(value.inputParams, false); + + // Retro-compatibility with deprecated inputParams Object + if (lang.isObject(value.inputParams)) { + this.group.setValue(value.inputParams, false); + + // New prefered way to describe a field + } else { + this.group.setValue(value, false); + } // Rebuild the fieldValue this.updateFieldValue(); - // Set field value - if(lang.isObject(value.inputParams) && typeof value.inputParams.value != "undefined") { + // Set field value : TODO -> fix it for default value (because updateFieldValue is called after first setValue) + + // Retro-compatibility with deprecated inputParams Object + if(lang.isObject(value.inputParams) && !lang.isUndefined(value.inputParams.value)) { this.fieldValue.setValue(value.inputParams.value); + + // New prefered way to describe a field + } else if (!lang.isUndefined(value.value)) { + this.fieldValue.setValue(value.value); } if(sendUpdatedEvt !== false) { @@ -253,46 +270,52 @@

    inputEx  0.4.0

    getValue: function() { var getDefaultValueForField = function (classObj, paramName) { - for(var i = 0 ; i < classObj.groupOptions.length ; i++) { - var f = classObj.groupOptions[i]; - if(f.inputParams.name == paramName) return f.inputParams.value; + var i, length = classObj.groupOptions.length, f; + + for(i = 0 ; i < length ; i++) { + f = classObj.groupOptions[i]; + + // Retro-compatibility with deprecated inputParams Object + if(lang.isObject(f.inputParams) && f.inputParams.name == paramName) { + return f.inputParams.value; + + // New prefered way to use field options + } else if (f.name == paramName) { + return f.value; + } } return undefined; }; - var inputParams = this.group.getValue(); + + // The field parameters + var fieldParams = this.group.getValue(); var classObj = inputEx.getFieldClass(this.typeSelect.getValue()); - for(var key in inputParams) { - if( inputParams.hasOwnProperty(key) ) { + // + default values + for(var key in fieldParams) { + if( fieldParams.hasOwnProperty(key) ) { var value1 = getDefaultValueForField(classObj, key); - var value2 = inputParams[key]; + var value2 = fieldParams[key]; if(value1 == value2) { - inputParams[key] = undefined; + fieldParams[key] = undefined; } } } - - - var obj = { - // The field type - type: this.typeSelect.getValue(), - - // The field parameters - inputParams: inputParams - }; + // The field type + fieldParams.type = this.typeSelect.getValue(); // The value defined by the fieldValue - if(this.fieldValue) obj.inputParams.value = this.fieldValue.getValue(); + if(this.fieldValue) fieldParams.value = this.fieldValue.getValue(); - return obj; + return fieldParams; } }); -// Register this class as "select" type +// Register this class as "type" type inputEx.registerType("type", inputEx.TypeField, []); })(); @@ -361,6 +384,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -373,6 +398,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -388,6 +414,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/UneditableField.js.html b/lib/inputex/api/UneditableField.js.html index 17d7f4c1..cef4f987 100644 --- a/lib/inputex/api/UneditableField.js.html +++ b/lib/inputex/api/UneditableField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -67,7 +67,7 @@

    inputEx  0.4.0

    /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.UneditableField.superclass.setOptions.call(this,options); @@ -166,6 +166,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -178,6 +180,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -193,6 +196,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/UpperCaseField.js.html b/lib/inputex/api/UpperCaseField.js.html index 744a0e41..3729f556 100644 --- a/lib/inputex/api/UpperCaseField.js.html +++ b/lib/inputex/api/UpperCaseField.js.html @@ -15,8 +15,8 @@
    diff --git a/lib/inputex/api/UrlField.js.html b/lib/inputex/api/UrlField.js.html index 89e82a20..6b2db0b7 100644 --- a/lib/inputex/api/UrlField.js.html +++ b/lib/inputex/api/UrlField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -69,7 +69,7 @@

    inputEx  0.4.0

    /** * Adds the invalid Url message - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.UrlField.superclass.setOptions.call(this, options); @@ -146,7 +146,7 @@

    inputEx  0.4.0

    // Register this class as "url" type inputEx.registerType("url", inputEx.UrlField, [ - { type: 'boolean', inputParams: {label: 'Display favicon', name:'favicon', value: true}} + { type: 'boolean', label: 'Display favicon', name:'favicon', value: true} ]); })(); @@ -215,6 +215,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -227,6 +229,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -242,6 +245,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/VectorField.js.html b/lib/inputex/api/VectorField.js.html index 692ddf8c..3a198999 100644 --- a/lib/inputex/api/VectorField.js.html +++ b/lib/inputex/api/VectorField.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -71,16 +71,16 @@

    inputEx  0.4.0

    this.options.fields = []; for(var i = 0 ; i < this.options.dimension ; i++) { - this.options.fields.push({type: 'number', inputParams: {size: this.options.size} }); + this.options.fields.push({type: 'number', size: this.options.size }); } } }); // Register this class as "2Dvector" type inputEx.registerType("vector", inputEx.VectorField, [ - { type: 'integer', inputParams: { label: 'Dimension', name:'dimension', value: 2}}, - { type: 'integer', inputParams: { label: 'Size', name:'size', value: 3}}, - { type: 'list', inputParams: {name: 'separators', label: 'Separators', required: true } } + { type: 'integer', label: 'Dimension', name:'dimension', value: 2}, + { type: 'integer', label: 'Size', name:'size', value: 3}, + { type: 'list', name: 'separators', label: 'Separators', required: true } ]); })(); @@ -149,6 +149,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -161,6 +163,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -176,6 +179,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/Visus.js.html b/lib/inputex/api/Visus.js.html index 42a66f5e..2a0ac88d 100644 --- a/lib/inputex/api/Visus.js.html +++ b/lib/inputex/api/Visus.js.html @@ -15,8 +15,8 @@
    diff --git a/lib/inputex/api/assets/ac-js b/lib/inputex/api/assets/ac-js index c739d610..e1d7f168 100644 --- a/lib/inputex/api/assets/ac-js +++ b/lib/inputex/api/assets/ac-js @@ -12,13 +12,22 @@ ITEM_TEMPLATE = '{host} {name}', // ITEM_TEMPLATE = '{host} {params} {name}', // ITEM_TEMPLATE = '{host} {params} {name}
    {description}
    ', - yuidoc = YAHOO.namespace('yuidoc'); - -yuidoc.init = function() { + yuidoc = YAHOO.namespace('yuidoc'), + propdata, + initialized = false; +yuidoc.init = function(altdata) { + yuidoc.initUI(altdata); }; -yuidoc.initUI = function() { +yuidoc.initUI = function(altdata) { + + if (initialized) { + return; + } + + propdata = ALL_YUI_PROPS || altdata; + //Checkboxes are available.. var handleClick = function(e) { var id, checked = false; @@ -75,14 +84,10 @@ yuidoc.initUI = function() { //Starting the AutoComplete code var getResults = function(query) { var results = []; - if(query && query.length > 0) { - + if (query && query.length > 0) { var q = query.toLowerCase(); - - for (var i=0, len=ALL_YUI_PROPS.length; i diff --git a/lib/inputex/api/de.js.html b/lib/inputex/api/de.js.html index 8767b3f5..d08e0485 100644 --- a/lib/inputex/api/de.js.html +++ b/lib/inputex/api/de.js.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/dtInPlaceEdit.js.html b/lib/inputex/api/dtInPlaceEdit.js.html index 22540ae5..5424d607 100644 --- a/lib/inputex/api/dtInPlaceEdit.js.html +++ b/lib/inputex/api/dtInPlaceEdit.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -119,7 +119,15 @@

    inputEx  0.4.0

    // index fields declaration by keys var fieldsByKey = {}; for(var k = 0 ; k < this.options.fields.length ; k++) { - fieldsByKey[this.options.fields[k].inputParams.name] = this.options.fields[k]; + + // Retro-compatibility with inputParms + if (lang.isObject(this.options.fields[k].inputParams)) { + fieldsByKey[this.options.fields[k].inputParams.name] = this.options.fields[k]; + // New prefered way to use options of a field + } else { + fieldsByKey[this.options.fields[k].name] = this.options.fields[k]; + } + } for(var i = 0 ; i < columndefs.length ; i++) { var columnDef = columndefs[i]; @@ -291,11 +299,27 @@

    inputEx  0.4.0

    for(var i=0, fieldsLength = this.options.fields.length; i<fieldsLength; i++){ field = this.options.fields[i]; - if( !lang.isUndefined(field.inputParams.required) ){ - if( lang.isUndefined(record.getData(field.inputParams.name)) ){ - requiredFields.push(field.inputParams.label); - } - } + + // Retro-compatibility with inputParms + if (lang.isObject(field.inputParams)) { + + if( !lang.isUndefined(field.inputParams.required) ){ + if( lang.isUndefined(record.getData(field.inputParams.name)) ){ + requiredFields.push(field.inputParams.label); + } + } + + // New prefered way to set options of a field + } else { + + if( !lang.isUndefined(field.required) ){ + if( lang.isUndefined(record.getData(field.name)) ){ + requiredFields.push(field.label); + } + } + } + + } //If not all the required fields are set @@ -527,6 +551,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -539,6 +565,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -554,6 +581,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/es.js.html b/lib/inputex/api/es.js.html index 68b062e7..7f7ca58d 100644 --- a/lib/inputex/api/es.js.html +++ b/lib/inputex/api/es.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -89,7 +89,7 @@

    inputEx  0.4.0

    msgs.stringTooShort = ["Este campo debe contener al menos "," caracteres (letras o números)"]; msgs.stringTooLong = ["Este campo debe contener como mucho "," caracteres (letras o números)"]; msgs.ajaxWait = "Enviando..."; - msgs.menuInvite = "Haga click aquí para seleccionar"; + msgs.menuTypeInvite = "Haga click aquí para seleccionar"; // List msgs.listAddLink = "Añadir"; @@ -183,6 +183,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -195,6 +197,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -210,6 +213,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/fr.js.html b/lib/inputex/api/fr.js.html index 2e2fb4e7..d007524c 100644 --- a/lib/inputex/api/fr.js.html +++ b/lib/inputex/api/fr.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -89,7 +89,7 @@

    inputEx  0.4.0

    msgs.stringTooShort = ["Ce champ doit contenir au moins "," caract&egrave;res (lettres ou chiffres)"]; msgs.stringTooLong = ["Ce champ doit contenir au plus "," caract&egrave;res (lettres ou chiffres)"]; msgs.ajaxWait = "Envoi en cours..."; - msgs.menuInvite = "Cliquez ici pour choisir"; + msgs.menuTypeInvite = "Cliquez ici pour choisir"; // List msgs.listAddLink = "Ajouter"; @@ -192,6 +192,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -204,6 +206,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -219,6 +222,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/index.html b/lib/inputex/api/index.html index f9225205..4fac5dd6 100644 --- a/lib/inputex/api/index.html +++ b/lib/inputex/api/index.html @@ -15,8 +15,8 @@
    diff --git a/lib/inputex/api/index.json b/lib/inputex/api/index.json index 4b89a167..e55742d5 100644 --- a/lib/inputex/api/index.json +++ b/lib/inputex/api/index.json @@ -1 +1 @@ -[{"url": "inputEx.ListField.html#method_addElement", "access": "", "host": "inputEx.ListField", "type": "method", "name": "addElement"}, {"url": "inputEx.visus.html#method_addInputExModules", "access": "", "host": "inputEx.visus", "type": "method", "name": "addInputExModules"}, {"url": "inputEx.widget.DDList.html#method_addItem", "access": "", "host": "inputEx.widget.DDList", "type": "method", "name": "addItem"}, {"url": "inputEx.SelectField.html#method_addOption", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "addOption"}, {"url": "inputEx.Form.html#method_asyncRequest", "access": "", "host": "inputEx.Form", "type": "method", "name": "asyncRequest"}, {"url": "inputEx.AutoComplete.html#method_buildAutocomplete", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "buildAutocomplete"}, {"url": "inputEx.widget.JsonTreeInspector.html#method_buildBranch", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "method", "name": "buildBranch"}, {"url": "inputEx.html#method_buildField", "access": "", "host": "inputEx", "type": "method", "name": "buildField"}, {"url": "inputEx.widget.Dialog.html#method_buildForm", "access": "", "host": "inputEx.widget.Dialog", "type": "method", "name": "buildForm"}, {"url": "inputEx.PasswordField.html#property_byId", "access": "", "host": "inputEx.PasswordField", "type": "property", "name": "byId"}, {"url": "inputEx.Field.html#method_clear", "access": "", "host": "inputEx.Field", "type": "method", "name": "clear"}, {"url": "inputEx.Group.html#method_clear", "access": "", "host": "inputEx.Group", "type": "method", "name": "clear"}, {"url": "inputEx.RadioField.html#method_clear", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "clear"}, {"url": "inputEx.Field.html#method_close", "access": "", "host": "inputEx.Field", "type": "method", "name": "close"}, {"url": "inputEx.Group.html#method_close", "access": "", "host": "inputEx.Group", "type": "method", "name": "close"}, {"url": "inputEx.ColorField.html#method_close", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "close"}, {"url": "inputEx.InPlaceEdit.html#method_close", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "close"}, {"url": "inputEx.html#method_cn", "access": "", "host": "inputEx", "type": "method", "name": "cn"}, {"url": "inputEx.html#method_compactArray", "access": "", "host": "inputEx", "type": "method", "name": "compactArray"}, {"url": "inputEx.widget.DataTable.html#property_datatable", "access": "", "host": "inputEx.widget.DataTable", "type": "property", "name": "datatable"}, {"url": "inputEx.JsonSchema.Builder.html#property_defaultOptions", "access": "", "host": "inputEx.JsonSchema.Builder", "type": "property", "name": "defaultOptions"}, {"url": "inputEx.JsonSchema.Builder.html#method_defaultReferenceResolver", "access": "", "host": "inputEx.JsonSchema.Builder", "type": "method", "name": "defaultReferenceResolver"}, {"url": "inputEx.RPC.Envelope.URL.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.URL", "type": "method", "name": "deserialize"}, {"url": "inputEx.RPC.Envelope.PATH.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.PATH", "type": "method", "name": "deserialize"}, {"url": "inputEx.RPC.Envelope.JSON.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.JSON", "type": "method", "name": "deserialize"}, {"url": "inputEx.RPC.Envelope.JSON-RPC-1.0.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-1.0", "type": "method", "name": "deserialize"}, {"url": "inputEx.RPC.Envelope.JSON-RPC-2.0.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-2.0", "type": "method", "name": "deserialize"}, {"url": "inputEx.Field.html#method_destroy", "access": "", "host": "inputEx.Field", "type": "method", "name": "destroy"}, {"url": "inputEx.widget.JsonTreeInspector.html#method_destroy", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "method", "name": "destroy"}, {"url": "inputEx.Field.html#method_disable", "access": "", "host": "inputEx.Field", "type": "method", "name": "disable"}, {"url": "inputEx.Form.html#method_disable", "access": "", "host": "inputEx.Form", "type": "method", "name": "disable"}, {"url": "inputEx.Group.html#method_disable", "access": "", "host": "inputEx.Group", "type": "method", "name": "disable"}, {"url": "inputEx.CheckBox.html#method_disable", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "disable"}, {"url": "inputEx.SelectField.html#method_disable", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "disable"}, {"url": "inputEx.StringField.html#method_disable", "access": "", "host": "inputEx.StringField", "type": "method", "name": "disable"}, {"url": "inputEx.UrlField.html#method_displayFavicon", "access": "", "host": "inputEx.UrlField", "type": "method", "name": "displayFavicon"}, {"url": "inputEx.Field.html#method_displayMessage", "access": "", "host": "inputEx.Field", "type": "method", "name": "displayMessage"}, {"url": "inputEx.visus.html#method_dump", "access": "", "host": "inputEx.visus", "type": "method", "name": "dump"}, {"url": "inputEx.widget.JsonTreeInspector.html#property_el", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "property", "name": "el"}, {"url": "inputEx.widget.DataTable.html#property_element", "access": "", "host": "inputEx.widget.DataTable", "type": "property", "name": "element"}, {"url": "inputEx.Field.html#method_enable", "access": "", "host": "inputEx.Field", "type": "method", "name": "enable"}, {"url": "inputEx.Form.html#method_enable", "access": "", "host": "inputEx.Form", "type": "method", "name": "enable"}, {"url": "inputEx.Group.html#method_enable", "access": "", "host": "inputEx.Group", "type": "method", "name": "enable"}, {"url": "inputEx.CheckBox.html#method_enable", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "enable"}, {"url": "inputEx.SelectField.html#method_enable", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "enable"}, {"url": "inputEx.StringField.html#method_enable", "access": "", "host": "inputEx.StringField", "type": "method", "name": "enable"}, {"url": "inputEx.widget.DDListItem.html#method_endDrag", "access": "", "host": "inputEx.widget.DDListItem", "type": "method", "name": "endDrag"}, {"url": "inputEx.widget.DataTable.html#event_Event fired when an item is added", "access": "", "host": "inputEx.widget.DataTable", "type": "event", "name": "Event fired when an item is added"}, {"url": "inputEx.widget.DataTable.html#event_Event fired when an item is modified", "access": "", "host": "inputEx.widget.DataTable", "type": "event", "name": "Event fired when an item is modified"}, {"url": "inputEx.widget.DataTable.html#event_Event fired when an item is removed", "access": "", "host": "inputEx.widget.DataTable", "type": "event", "name": "Event fired when an item is removed"}, {"url": "inputEx.widget.JsonTreeInspector.html#method_expandAll", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "method", "name": "expandAll"}, {"url": "inputEx.widget.JsonTreeInspector.html#method_expandBranch", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "method", "name": "expandBranch"}, {"url": "inputEx.widget.JsonTreeInspector.html#method_expandElement", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "method", "name": "expandElement"}, {"url": "inputEx.RPC.Service.html#method_fetch", "access": "", "host": "inputEx.RPC.Service", "type": "method", "name": "fetch"}, {"url": "inputEx.widget.DataTable.html#method_fieldsToColumndefs", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "fieldsToColumndefs"}, {"url": "inputEx.widget.DataTable.html#method_fieldToColumndef", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "fieldToColumndef"}, {"url": "inputEx.Field.html#method_fireUpdatedEvt", "access": "", "host": "inputEx.Field", "type": "method", "name": "fireUpdatedEvt"}, {"url": "inputEx.Field.html#method_focus", "access": "", "host": "inputEx.Field", "type": "method", "name": "focus"}, {"url": "inputEx.Group.html#method_focus", "access": "", "host": "inputEx.Group", "type": "method", "name": "focus"}, {"url": "inputEx.StringField.html#method_focus", "access": "", "host": "inputEx.StringField", "type": "method", "name": "focus"}, {"url": "inputEx.widget.CellEditor.html#method_focus", "access": "", "host": "inputEx.widget.CellEditor", "type": "method", "name": "focus"}, {"url": "inputEx.DateField.html#method_formatDate", "access": "", "host": "inputEx.DateField", "type": "method", "name": "formatDate"}, {"url": "inputEx.RPC.html#method_formForMethod", "access": "", "host": "inputEx.RPC", "type": "method", "name": "formForMethod"}, {"url": "inputEx.JsonSchema.Builder.html#method_formFromInstance", "access": "", "host": "inputEx.JsonSchema.Builder", "type": "method", "name": "formFromInstance"}, {"url": "inputEx.visus.html#method_func", "access": "", "host": "inputEx.visus", "type": "method", "name": "func"}, {"url": "inputEx.RPC.Service.html#method__generateService", "access": "", "host": "inputEx.RPC.Service", "type": "method", "name": "_generateService"}, {"url": "inputEx.RPC.html#method_generateServiceForm", "access": "", "host": "inputEx.RPC", "type": "method", "name": "generateServiceForm"}, {"url": "inputEx.RPC.Transport.html#method_GET", "access": "", "host": "inputEx.RPC.Transport", "type": "method", "name": "GET"}, {"url": "inputEx.Field.html#method_getEl", "access": "", "host": "inputEx.Field", "type": "method", "name": "getEl"}, {"url": "inputEx.Group.html#method_getFieldByName", "access": "", "host": "inputEx.Group", "type": "method", "name": "getFieldByName"}, {"url": "inputEx.html#method_getFieldClass", "access": "", "host": "inputEx", "type": "method", "name": "getFieldClass"}, {"url": "inputEx.widget.Dialog.html#method_getForm", "access": "", "host": "inputEx.widget.Dialog", "type": "method", "name": "getForm"}, {"url": "inputEx.widget.CellEditor.html#method_getInputValue", "access": "", "host": "inputEx.widget.CellEditor", "type": "method", "name": "getInputValue"}, {"url": "inputEx.PasswordField.html#method_getPasswordStrength", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "getPasswordStrength"}, {"url": "inputEx.Field.html#method_getState", "access": "", "host": "inputEx.Field", "type": "method", "name": "getState"}, {"url": "inputEx.MultiAutoComplete.html#method_getState", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "getState"}, {"url": "inputEx.Field.html#method_getStateString", "access": "", "host": "inputEx.Field", "type": "method", "name": "getStateString"}, {"url": "inputEx.PasswordField.html#method_getStateString", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "getStateString"}, {"url": "inputEx.StringField.html#method_getStateString", "access": "", "host": "inputEx.StringField", "type": "method", "name": "getStateString"}, {"url": "inputEx.Textarea.html#method_getStateString", "access": "", "host": "inputEx.Textarea", "type": "method", "name": "getStateString"}, {"url": "inputEx.html#method_getType", "access": "", "host": "inputEx", "type": "method", "name": "getType"}, {"url": "inputEx.Field.html#method_getValue", "access": "", "host": "inputEx.Field", "type": "method", "name": "getValue"}, {"url": "inputEx.Group.html#method_getValue", "access": "", "host": "inputEx.Group", "type": "method", "name": "getValue"}, {"url": "inputEx.AutoComplete.html#method_getValue", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "getValue"}, {"url": "inputEx.CheckBox.html#method_getValue", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "getValue"}, {"url": "inputEx.ColorField.html#method_getValue", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "getValue"}, {"url": "inputEx.ColorPickerField.html#method_getValue", "access": "", "host": "inputEx.ColorPickerField", "type": "method", "name": "getValue"}, {"url": "inputEx.CombineField.html#method_getValue", "access": "", "host": "inputEx.CombineField", "type": "method", "name": "getValue"}, {"url": "inputEx.DateField.html#method_getValue", "access": "", "host": "inputEx.DateField", "type": "method", "name": "getValue"}, {"url": "inputEx.DateTimeField.html#method_getValue", "access": "", "host": "inputEx.DateTimeField", "type": "method", "name": "getValue"}, {"url": "inputEx.EmailField.html#method_getValue", "access": "", "host": "inputEx.EmailField", "type": "method", "name": "getValue"}, {"url": "inputEx.HiddenField.html#method_getValue", "access": "", "host": "inputEx.HiddenField", "type": "method", "name": "getValue"}, {"url": "inputEx.InPlaceEdit.html#method_getValue", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "getValue"}, {"url": "inputEx.IntegerField.html#method_getValue", "access": "", "host": "inputEx.IntegerField", "type": "method", "name": "getValue"}, {"url": "inputEx.ListField.html#method_getValue", "access": "", "host": "inputEx.ListField", "type": "method", "name": "getValue"}, {"url": "inputEx.MapField.html#method_getValue", "access": "", "host": "inputEx.MapField", "type": "method", "name": "getValue"}, {"url": "inputEx.MultiAutoComplete.html#method_getValue", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "getValue"}, {"url": "inputEx.MultiSelectField.html#method_getValue", "access": "", "host": "inputEx.MultiSelectField", "type": "method", "name": "getValue"}, {"url": "inputEx.NumberField.html#method_getValue", "access": "", "host": "inputEx.NumberField", "type": "method", "name": "getValue"}, {"url": "inputEx.RTEField.html#method_getValue", "access": "", "host": "inputEx.RTEField", "type": "method", "name": "getValue"}, {"url": "inputEx.RadioField.html#method_getValue", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "getValue"}, {"url": "inputEx.SelectField.html#method_getValue", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "getValue"}, {"url": "inputEx.SliderField.html#method_getValue", "access": "", "host": "inputEx.SliderField", "type": "method", "name": "getValue"}, {"url": "inputEx.StringField.html#method_getValue", "access": "", "host": "inputEx.StringField", "type": "method", "name": "getValue"}, {"url": "inputEx.TimeField.html#method_getValue", "access": "", "host": "inputEx.TimeField", "type": "method", "name": "getValue"}, {"url": "inputEx.TimeIntervalField.html#method_getValue", "access": "", "host": "inputEx.TimeIntervalField", "type": "method", "name": "getValue"}, {"url": "inputEx.TreeField.html#method_getValue", "access": "", "host": "inputEx.TreeField", "type": "method", "name": "getValue"}, {"url": "inputEx.TypeField.html#method_getValue", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "getValue"}, {"url": "inputEx.UneditableField.html#method_getValue", "access": "", "host": "inputEx.UneditableField", "type": "method", "name": "getValue"}, {"url": "inputEx.widget.Dialog.html#method_getValue", "access": "", "host": "inputEx.widget.Dialog", "type": "method", "name": "getValue"}, {"url": "inputEx.widget.DDList.html#method_getValue", "access": "", "host": "inputEx.widget.DDList", "type": "method", "name": "getValue"}, {"url": "inputEx.widget.JsonTreeInspector.html#property_hash", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "property", "name": "hash"}, {"url": "inputEx.Field.html#method_hide", "access": "", "host": "inputEx.Field", "type": "method", "name": "hide"}, {"url": "inputEx.Form.html#method_hideMask", "access": "", "host": "inputEx.Form", "type": "method", "name": "hideMask"}, {"url": "inputEx.html#method_indexOf", "access": "", "host": "inputEx", "type": "method", "name": "indexOf"}, {"url": "inputEx.YQL.html#method_init", "access": "", "host": "inputEx.YQL", "type": "method", "name": "init"}, {"url": "inputEx.Field.html#method_initEvents", "access": "", "host": "inputEx.Field", "type": "method", "name": "initEvents"}, {"url": "inputEx.Form.html#method_initEvents", "access": "", "host": "inputEx.Form", "type": "method", "name": "initEvents"}, {"url": "inputEx.Group.html#method_initEvents", "access": "", "host": "inputEx.Group", "type": "method", "name": "initEvents"}, {"url": "inputEx.AutoComplete.html#method_initEvents", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "initEvents"}, {"url": "inputEx.CheckBox.html#method_initEvents", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "initEvents"}, {"url": "inputEx.InPlaceEdit.html#method_initEvents", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "initEvents"}, {"url": "inputEx.KeyValueField.html#method_initEvents", "access": "", "host": "inputEx.KeyValueField", "type": "method", "name": "initEvents"}, {"url": "inputEx.ListField.html#method_initEvents", "access": "", "host": "inputEx.ListField", "type": "method", "name": "initEvents"}, {"url": "inputEx.MultiSelectField.html#method_initEvents", "access": "", "host": "inputEx.MultiSelectField", "type": "method", "name": "initEvents"}, {"url": "inputEx.RadioField.html#method_initEvents", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "initEvents"}, {"url": "inputEx.SelectField.html#method_initEvents", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "initEvents"}, {"url": "inputEx.StringField.html#method_initEvents", "access": "", "host": "inputEx.StringField", "type": "method", "name": "initEvents"}, {"url": "inputEx.TypeField.html#method_initEvents", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "initEvents"}, {"url": "inputEx.widget.DataTable.html#method_initEvents", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "initEvents"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_initEvents", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "initEvents"}, {"url": "inputEx.YQL.html#method_initTrimpathPage", "access": "", "host": "inputEx.YQL", "type": "method", "name": "initTrimpathPage"}, {"url": "inputEx.JsonSchema.html#method_inputExToSchema", "access": "", "host": "inputEx.JsonSchema", "type": "method", "name": "inputExToSchema"}, {"url": "inputEx.Textarea.html#method_insert", "access": "", "host": "inputEx.Textarea", "type": "method", "name": "insert"}, {"url": "inputEx.Field.html#method_isEmpty", "access": "", "host": "inputEx.Field", "type": "method", "name": "isEmpty"}, {"url": "inputEx.RadioField.html#method_isEmpty", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "isEmpty"}, {"url": "inputEx.AutoComplete.html#method_itemSelectHandler", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "itemSelectHandler"}, {"url": "inputEx.MultiAutoComplete.html#method_itemSelectHandler", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "itemSelectHandler"}, {"url": "inputEx.RPC.Transport.html#method_JSONP", "access": "", "host": "inputEx.RPC.Transport", "type": "method", "name": "JSONP"}, {"url": "inputEx.widget.JsonTreeInspector.html#method_jsonPath", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "method", "name": "jsonPath"}, {"url": "inputEx.RPC.SMDTester.html#method_loadSMD", "access": "", "host": "inputEx.RPC.SMDTester", "type": "method", "name": "loadSMD"}, {"url": "inputEx.html#property_messages", "access": "", "host": "inputEx", "type": "property", "name": "messages"}, {"url": "inputEx.ListField.html#method_onAddButton", "access": "", "host": "inputEx.ListField", "type": "method", "name": "onAddButton"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onAddButton", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onAddButton"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onAddFailure", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onAddFailure"}, {"url": "inputEx.MultiSelectField.html#method_onAddNewItem", "access": "", "host": "inputEx.MultiSelectField", "type": "method", "name": "onAddNewItem"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onAddSuccess", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onAddSuccess"}, {"url": "inputEx.ListField.html#method_onArrowDown", "access": "", "host": "inputEx.ListField", "type": "method", "name": "onArrowDown"}, {"url": "inputEx.ListField.html#method_onArrowUp", "access": "", "host": "inputEx.ListField", "type": "method", "name": "onArrowUp"}, {"url": "inputEx.Field.html#method_onBlur", "access": "", "host": "inputEx.Field", "type": "method", "name": "onBlur"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onCancelButton", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onCancelButton"}, {"url": "inputEx.InPlaceEdit.html#method_onCancelEditor", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "onCancelEditor"}, {"url": "inputEx.widget.DataTable.html#method_onCancelForm", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "onCancelForm"}, {"url": "inputEx.widget.DataTable.html#method__onCellClick", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "_onCellClick"}, {"url": "inputEx.widget.DataTable.html#method_onCellClick", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "onCellClick"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method__onCellClick", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "_onCellClick"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onCellClick", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onCellClick"}, {"url": "inputEx.Field.html#method_onChange", "access": "", "host": "inputEx.Field", "type": "method", "name": "onChange"}, {"url": "inputEx.Group.html#method_onChange", "access": "", "host": "inputEx.Group", "type": "method", "name": "onChange"}, {"url": "inputEx.AutoComplete.html#method_onChange", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "onChange"}, {"url": "inputEx.CheckBox.html#method_onChange", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "onChange"}, {"url": "inputEx.MultiAutoComplete.html#method_onChange", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "onChange"}, {"url": "inputEx.RadioField.html#method_onChange", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "onChange"}, {"url": "inputEx.TypeField.html#method_onChangeGroupOptions", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "onChangeGroupOptions"}, {"url": "inputEx.widget.DataTable.html#method_onClickModify", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "onClickModify"}, {"url": "inputEx.ColorField.html#method_onColorClick", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "onColorClick"}, {"url": "inputEx.DSSelectField.html#method_onDatasourceFailure", "access": "", "host": "inputEx.DSSelectField", "type": "method", "name": "onDatasourceFailure"}, {"url": "inputEx.DSSelectField.html#method_onDatasourceSuccess", "access": "", "host": "inputEx.DSSelectField", "type": "method", "name": "onDatasourceSuccess"}, {"url": "inputEx.ListField.html#method_onDelete", "access": "", "host": "inputEx.ListField", "type": "method", "name": "onDelete"}, {"url": "inputEx.widget.DataTable.html#method_onDialogCancel", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "onDialogCancel"}, {"url": "inputEx.widget.DataTable.html#method_onDialogSave", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "onDialogSave"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onDialogSave", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onDialogSave"}, {"url": "inputEx.widget.DDListItem.html#method_onDrag", "access": "", "host": "inputEx.widget.DDListItem", "type": "method", "name": "onDrag"}, {"url": "inputEx.widget.DDListItem.html#method_onDragDrop", "access": "", "host": "inputEx.widget.DDListItem", "type": "method", "name": "onDragDrop"}, {"url": "inputEx.widget.DDListItem.html#method_onDragOver", "access": "", "host": "inputEx.widget.DDListItem", "type": "method", "name": "onDragOver"}, {"url": "inputEx.Field.html#method_onFocus", "access": "", "host": "inputEx.Field", "type": "method", "name": "onFocus"}, {"url": "inputEx.StringField.html#method_onFocus", "access": "", "host": "inputEx.StringField", "type": "method", "name": "onFocus"}, {"url": "inputEx.PasswordField.html#method_onInput", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "onInput"}, {"url": "inputEx.widget.DataTable.html#method_onInsertButton", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "onInsertButton"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onInsertButton", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onInsertButton"}, {"url": "inputEx.widget.JsonTreeInspector.html#method_onItemClick", "access": "", "host": "inputEx.widget.JsonTreeInspector", "type": "method", "name": "onItemClick"}, {"url": "inputEx.MultiSelectField.html#method_onItemRemoved", "access": "", "host": "inputEx.MultiSelectField", "type": "method", "name": "onItemRemoved"}, {"url": "inputEx.InPlaceEdit.html#method_onKeyDown", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "onKeyDown"}, {"url": "inputEx.PasswordField.html#method_onKeyPress", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "onKeyPress"}, {"url": "inputEx.UpperCaseField.html#method_onKeyPress", "access": "", "host": "inputEx.UpperCaseField", "type": "method", "name": "onKeyPress"}, {"url": "inputEx.InPlaceEdit.html#method_onKeyUp", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "onKeyUp"}, {"url": "inputEx.PasswordField.html#method_onKeyUp", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "onKeyUp"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onModifyItem", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onModifyItem"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onModifySuccess", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onModifySuccess"}, {"url": "inputEx.InPlaceEdit.html#method_onOkEditor", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "onOkEditor"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onRemoveFailure", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onRemoveFailure"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onRemoveItem", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onRemoveItem"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_onRemoveSuccess", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "onRemoveSuccess"}, {"url": "inputEx.widget.DDList.html#method_onReordered", "access": "", "host": "inputEx.widget.DDList", "type": "method", "name": "onReordered"}, {"url": "inputEx.KeyValueField.html#method_onSelectFieldChange", "access": "", "host": "inputEx.KeyValueField", "type": "method", "name": "onSelectFieldChange"}, {"url": "inputEx.RPC.SMDTester.html#method_onServiceLoaded", "access": "", "host": "inputEx.RPC.SMDTester", "type": "method", "name": "onServiceLoaded"}, {"url": "inputEx.RPC.SMDTester.html#method_onServiceMethod", "access": "", "host": "inputEx.RPC.SMDTester", "type": "method", "name": "onServiceMethod"}, {"url": "inputEx.Form.html#method_onSubmit", "access": "", "host": "inputEx.Form", "type": "method", "name": "onSubmit"}, {"url": "inputEx.TypeField.html#method_onTogglePropertiesPanel", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "onTogglePropertiesPanel"}, {"url": "inputEx.InPlaceEdit.html#method_onVisuMouseOut", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "onVisuMouseOut"}, {"url": "inputEx.InPlaceEdit.html#method_onVisuMouseOver", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "onVisuMouseOver"}, {"url": "inputEx.InPlaceEdit.html#method_openEditor", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "openEditor"}, {"url": "inputEx.Field.html#property_options", "access": "", "host": "inputEx.Field", "type": "property", "name": "options"}, {"url": "inputEx.ColorField.html#property_palettes", "access": "", "host": "inputEx.ColorField", "type": "property", "name": "palettes"}, {"url": "inputEx.DateField.html#method_parseWithFormat", "access": "", "host": "inputEx.DateField", "type": "method", "name": "parseWithFormat"}, {"url": "inputEx.DSSelectField.html#method_populateSelect", "access": "", "host": "inputEx.DSSelectField", "type": "method", "name": "populateSelect"}, {"url": "inputEx.RPC.Transport.html#method_POST", "access": "", "host": "inputEx.RPC.Transport", "type": "method", "name": "POST"}, {"url": "inputEx.MapField.html#method_preload", "access": "", "host": "inputEx.MapField", "type": "method", "name": "preload"}, {"url": "inputEx.RPC.Service.html#method_process", "access": "", "host": "inputEx.RPC.Service", "type": "method", "name": "process"}, {"url": "inputEx.YQL.html#method_query", "access": "", "host": "inputEx.YQL", "type": "method", "name": "query"}, {"url": "inputEx.YQL.html#method_queryCode", "access": "", "host": "inputEx.YQL", "type": "method", "name": "queryCode"}, {"url": "inputEx.TypeField.html#method_rebuildGroupOptions", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "rebuildGroupOptions"}, {"url": "inputEx.JsonSchema.Builder.html#property_referenceResolver", "access": "", "host": "inputEx.JsonSchema.Builder", "type": "property", "name": "referenceResolver"}, {"url": "inputEx.html#property_regexps", "access": "", "host": "inputEx", "type": "property", "name": "regexps"}, {"url": "inputEx.html#method_registerType", "access": "", "host": "inputEx", "type": "method", "name": "registerType"}, {"url": "inputEx.html#method_removeAccents", "access": "", "host": "inputEx", "type": "method", "name": "removeAccents"}, {"url": "inputEx.ListField.html#method_removeElement", "access": "", "host": "inputEx.ListField", "type": "method", "name": "removeElement"}, {"url": "inputEx.widget.DDList.html#method_removeItem", "access": "", "host": "inputEx.widget.DDList", "type": "method", "name": "removeItem"}, {"url": "inputEx.widget.DataTable.html#method_removeUnsavedRecord", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "removeUnsavedRecord"}, {"url": "inputEx.Field.html#method_render", "access": "", "host": "inputEx.Field", "type": "method", "name": "render"}, {"url": "inputEx.Form.html#method_render", "access": "", "host": "inputEx.Form", "type": "method", "name": "render"}, {"url": "inputEx.Group.html#method_render", "access": "", "host": "inputEx.Group", "type": "method", "name": "render"}, {"url": "inputEx.HiddenField.html#method_render", "access": "", "host": "inputEx.HiddenField", "type": "method", "name": "render"}, {"url": "inputEx.UrlField.html#method_render", "access": "", "host": "inputEx.UrlField", "type": "method", "name": "render"}, {"url": "inputEx.widget.DataTable.html#method_render", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "render"}, {"url": "inputEx.Form.html#method_renderButtons", "access": "", "host": "inputEx.Form", "type": "method", "name": "renderButtons"}, {"url": "inputEx.DatePickerField.html#method_renderCalendar", "access": "", "host": "inputEx.DatePickerField", "type": "method", "name": "renderCalendar"}, {"url": "inputEx.ColorField.html#method_renderColorGrid", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "renderColorGrid"}, {"url": "inputEx.Field.html#method_renderComponent", "access": "", "host": "inputEx.Field", "type": "method", "name": "renderComponent"}, {"url": "inputEx.AutoComplete.html#method_renderComponent", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "renderComponent"}, {"url": "inputEx.CheckBox.html#method_renderComponent", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "renderComponent"}, {"url": "inputEx.ColorField.html#method_renderComponent", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.ColorPickerField.html#method_renderComponent", "access": "", "host": "inputEx.ColorPickerField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.DSSelectField.html#method_renderComponent", "access": "", "host": "inputEx.DSSelectField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.DatePickerField.html#method_renderComponent", "access": "", "host": "inputEx.DatePickerField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.FileField.html#method_renderComponent", "access": "", "host": "inputEx.FileField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.InPlaceEdit.html#method_renderComponent", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "renderComponent"}, {"url": "inputEx.ListField.html#method_renderComponent", "access": "", "host": "inputEx.ListField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.MapField.html#method_renderComponent", "access": "", "host": "inputEx.MapField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.MenuField.html#method_renderComponent", "access": "", "host": "inputEx.MenuField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.MultiAutoComplete.html#method_renderComponent", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "renderComponent"}, {"url": "inputEx.MultiSelectField.html#method_renderComponent", "access": "", "host": "inputEx.MultiSelectField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.PasswordField.html#method_renderComponent", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.RTEField.html#method_renderComponent", "access": "", "host": "inputEx.RTEField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.RadioField.html#method_renderComponent", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.SelectField.html#method_renderComponent", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.SliderField.html#method_renderComponent", "access": "", "host": "inputEx.SliderField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.StringField.html#method_renderComponent", "access": "", "host": "inputEx.StringField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.Textarea.html#method_renderComponent", "access": "", "host": "inputEx.Textarea", "type": "method", "name": "renderComponent"}, {"url": "inputEx.TreeField.html#method_renderComponent", "access": "", "host": "inputEx.TreeField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.TypeField.html#method_renderComponent", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "renderComponent"}, {"url": "inputEx.widget.DataTable.html#method_renderDatatable", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "renderDatatable"}, {"url": "inputEx.widget.DataTable.html#method_renderDialog", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "renderDialog"}, {"url": "inputEx.InPlaceEdit.html#method_renderEditor", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "renderEditor"}, {"url": "inputEx.Group.html#method_renderField", "access": "", "host": "inputEx.Group", "type": "method", "name": "renderField"}, {"url": "inputEx.CombineField.html#method_renderField", "access": "", "host": "inputEx.CombineField", "type": "method", "name": "renderField"}, {"url": "inputEx.Group.html#method_renderFields", "access": "", "host": "inputEx.Group", "type": "method", "name": "renderFields"}, {"url": "inputEx.CombineField.html#method_renderFields", "access": "", "host": "inputEx.CombineField", "type": "method", "name": "renderFields"}, {"url": "inputEx.Lens.html#method_renderFields", "access": "", "host": "inputEx.Lens", "type": "method", "name": "renderFields"}, {"url": "inputEx.widget.Dialog.html#method_renderForm", "access": "", "host": "inputEx.widget.Dialog", "type": "method", "name": "renderForm"}, {"url": "inputEx.widget.CellEditor.html#method_renderForm", "access": "", "host": "inputEx.widget.CellEditor", "type": "method", "name": "renderForm"}, {"url": "inputEx.Form.html#method_renderMask", "access": "", "host": "inputEx.Form", "type": "method", "name": "renderMask"}, {"url": "inputEx.widget.DataTable.html#method_renderShowHideColumnsDlg", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "renderShowHideColumnsDlg"}, {"url": "inputEx.ListField.html#method_renderSubField", "access": "", "host": "inputEx.ListField", "type": "method", "name": "renderSubField"}, {"url": "inputEx.TreeField.html#method_renderSubField", "access": "", "host": "inputEx.TreeField", "type": "method", "name": "renderSubField"}, {"url": "inputEx.visus.html#method_renderVisu", "access": "", "host": "inputEx.visus", "type": "method", "name": "renderVisu"}, {"url": "inputEx.InPlaceEdit.html#method_renderVisuDiv", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "renderVisuDiv"}, {"url": "inputEx.widget.CellEditor.html#method_resetForm", "access": "", "host": "inputEx.widget.CellEditor", "type": "method", "name": "resetForm"}, {"url": "inputEx.RPC.Transport.html#method_REST", "access": "", "host": "inputEx.RPC.Transport", "type": "method", "name": "REST"}, {"url": "inputEx.Group.html#method_runAction", "access": "", "host": "inputEx.Group", "type": "method", "name": "runAction"}, {"url": "inputEx.Group.html#method_runFieldsInteractions", "access": "", "host": "inputEx.Group", "type": "method", "name": "runFieldsInteractions"}, {"url": "inputEx.Group.html#method_runInteractions", "access": "", "host": "inputEx.Group", "type": "method", "name": "runInteractions"}, {"url": "inputEx.widget.CellEditor.html#method_save", "access": "", "host": "inputEx.widget.CellEditor", "type": "method", "name": "save"}, {"url": "inputEx.JsonSchema.Builder.html#property_schemaIdentifierMap", "access": "", "host": "inputEx.JsonSchema.Builder", "type": "property", "name": "schemaIdentifierMap"}, {"url": "inputEx.JsonSchema.Builder.html#method_schemaToInputEx", "access": "", "host": "inputEx.JsonSchema.Builder", "type": "method", "name": "schemaToInputEx"}, {"url": "inputEx.JsonSchema.Builder.html#property_schemaToParamMap", "access": "", "host": "inputEx.JsonSchema.Builder", "type": "property", "name": "schemaToParamMap"}, {"url": "inputEx.DSSelectField.html#method_sendDataRequest", "access": "", "host": "inputEx.DSSelectField", "type": "method", "name": "sendDataRequest"}, {"url": "inputEx.RPC.Envelope.URL.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.URL", "type": "method", "name": "serialize"}, {"url": "inputEx.RPC.Envelope.PATH.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.PATH", "type": "method", "name": "serialize"}, {"url": "inputEx.RPC.Envelope.JSON.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.JSON", "type": "method", "name": "serialize"}, {"url": "inputEx.RPC.Envelope.JSON-RPC-1.0.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-1.0", "type": "method", "name": "serialize"}, {"url": "inputEx.RPC.Envelope.JSON-RPC-2.0.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-2.0", "type": "method", "name": "serialize"}, {"url": "inputEx.PasswordField.html#method_setCapsLockWarning", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "setCapsLockWarning"}, {"url": "inputEx.Field.html#method_setClassFromState", "access": "", "host": "inputEx.Field", "type": "method", "name": "setClassFromState"}, {"url": "inputEx.StringField.html#method_setClassFromState", "access": "", "host": "inputEx.StringField", "type": "method", "name": "setClassFromState"}, {"url": "inputEx.widget.DataTable.html#method_setColumnDefs", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "setColumnDefs"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_setColumnDefs", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "setColumnDefs"}, {"url": "inputEx.PasswordField.html#method_setConfirmationField", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "setConfirmationField"}, {"url": "inputEx.ColorField.html#method_setDefaultColors", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "setDefaultColors"}, {"url": "inputEx.Group.html#method_setErrors", "access": "", "host": "inputEx.Group", "type": "method", "name": "setErrors"}, {"url": "inputEx.Field.html#method_setOptions", "access": "", "host": "inputEx.Field", "type": "method", "name": "setOptions"}, {"url": "inputEx.Form.html#method_setOptions", "access": "", "host": "inputEx.Form", "type": "method", "name": "setOptions"}, {"url": "inputEx.Group.html#method_setOptions", "access": "", "host": "inputEx.Group", "type": "method", "name": "setOptions"}, {"url": "inputEx.AutoComplete.html#method_setOptions", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "setOptions"}, {"url": "inputEx.CheckBox.html#method_setOptions", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "setOptions"}, {"url": "inputEx.ColorField.html#method_setOptions", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "setOptions"}, {"url": "inputEx.ColorPickerField.html#method_setOptions", "access": "", "host": "inputEx.ColorPickerField", "type": "method", "name": "setOptions"}, {"url": "inputEx.CombineField.html#method_setOptions", "access": "", "host": "inputEx.CombineField", "type": "method", "name": "setOptions"}, {"url": "inputEx.DSSelectField.html#method_setOptions", "access": "", "host": "inputEx.DSSelectField", "type": "method", "name": "setOptions"}, {"url": "inputEx.DateField.html#method_setOptions", "access": "", "host": "inputEx.DateField", "type": "method", "name": "setOptions"}, {"url": "inputEx.DatePickerField.html#method_setOptions", "access": "", "host": "inputEx.DatePickerField", "type": "method", "name": "setOptions"}, {"url": "inputEx.EmailField.html#method_setOptions", "access": "", "host": "inputEx.EmailField", "type": "method", "name": "setOptions"}, {"url": "inputEx.FileField.html#method_setOptions", "access": "", "host": "inputEx.FileField", "type": "method", "name": "setOptions"}, {"url": "inputEx.IPv4Field.html#method_setOptions", "access": "", "host": "inputEx.IPv4Field", "type": "method", "name": "setOptions"}, {"url": "inputEx.InPlaceEdit.html#method_setOptions", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "setOptions"}, {"url": "inputEx.IntegerField.html#method_setOptions", "access": "", "host": "inputEx.IntegerField", "type": "method", "name": "setOptions"}, {"url": "inputEx.Lens.html#method_setOptions", "access": "", "host": "inputEx.Lens", "type": "method", "name": "setOptions"}, {"url": "inputEx.ListField.html#method_setOptions", "access": "", "host": "inputEx.ListField", "type": "method", "name": "setOptions"}, {"url": "inputEx.MapField.html#method_setOptions", "access": "", "host": "inputEx.MapField", "type": "method", "name": "setOptions"}, {"url": "inputEx.MenuField.html#method_setOptions", "access": "", "host": "inputEx.MenuField", "type": "method", "name": "setOptions"}, {"url": "inputEx.MultiAutoComplete.html#method_setOptions", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "setOptions"}, {"url": "inputEx.NumberField.html#method_setOptions", "access": "", "host": "inputEx.NumberField", "type": "method", "name": "setOptions"}, {"url": "inputEx.PasswordField.html#method_setOptions", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "setOptions"}, {"url": "inputEx.RTEField.html#method_setOptions", "access": "", "host": "inputEx.RTEField", "type": "method", "name": "setOptions"}, {"url": "inputEx.RadioField.html#method_setOptions", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "setOptions"}, {"url": "inputEx.SelectField.html#method_setOptions", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "setOptions"}, {"url": "inputEx.SliderField.html#method_setOptions", "access": "", "host": "inputEx.SliderField", "type": "method", "name": "setOptions"}, {"url": "inputEx.StringField.html#method_setOptions", "access": "", "host": "inputEx.StringField", "type": "method", "name": "setOptions"}, {"url": "inputEx.Textarea.html#method_setOptions", "access": "", "host": "inputEx.Textarea", "type": "method", "name": "setOptions"}, {"url": "inputEx.TimeIntervalField.html#method_setOptions", "access": "", "host": "inputEx.TimeIntervalField", "type": "method", "name": "setOptions"}, {"url": "inputEx.UneditableField.html#method_setOptions", "access": "", "host": "inputEx.UneditableField", "type": "method", "name": "setOptions"}, {"url": "inputEx.UrlField.html#method_setOptions", "access": "", "host": "inputEx.UrlField", "type": "method", "name": "setOptions"}, {"url": "inputEx.VectorField.html#method_setOptions", "access": "", "host": "inputEx.VectorField", "type": "method", "name": "setOptions"}, {"url": "inputEx.widget.DataTable.html#method_setOptions", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "setOptions"}, {"url": "inputEx.widget.DDList.html#method_setOptions", "access": "", "host": "inputEx.widget.DDList", "type": "method", "name": "setOptions"}, {"url": "inputEx.widget.dtInPlaceEdit.html#method_setOptions", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "type": "method", "name": "setOptions"}, {"url": "inputEx.Field.html#method_setValue", "access": "", "host": "inputEx.Field", "type": "method", "name": "setValue"}, {"url": "inputEx.Group.html#method_setValue", "access": "", "host": "inputEx.Group", "type": "method", "name": "setValue"}, {"url": "inputEx.AutoComplete.html#method_setValue", "access": "", "host": "inputEx.AutoComplete", "type": "method", "name": "setValue"}, {"url": "inputEx.CheckBox.html#method_setValue", "access": "", "host": "inputEx.CheckBox", "type": "method", "name": "setValue"}, {"url": "inputEx.ColorField.html#method_setValue", "access": "", "host": "inputEx.ColorField", "type": "method", "name": "setValue"}, {"url": "inputEx.ColorPickerField.html#method_setValue", "access": "", "host": "inputEx.ColorPickerField", "type": "method", "name": "setValue"}, {"url": "inputEx.CombineField.html#method_setValue", "access": "", "host": "inputEx.CombineField", "type": "method", "name": "setValue"}, {"url": "inputEx.DateField.html#method_setValue", "access": "", "host": "inputEx.DateField", "type": "method", "name": "setValue"}, {"url": "inputEx.DateSplitField.html#method_setValue", "access": "", "host": "inputEx.DateSplitField", "type": "method", "name": "setValue"}, {"url": "inputEx.DateTimeField.html#method_setValue", "access": "", "host": "inputEx.DateTimeField", "type": "method", "name": "setValue"}, {"url": "inputEx.HiddenField.html#method_setValue", "access": "", "host": "inputEx.HiddenField", "type": "method", "name": "setValue"}, {"url": "inputEx.InPlaceEdit.html#method_setValue", "access": "", "host": "inputEx.InPlaceEdit", "type": "method", "name": "setValue"}, {"url": "inputEx.ListField.html#method_setValue", "access": "", "host": "inputEx.ListField", "type": "method", "name": "setValue"}, {"url": "inputEx.MapField.html#method_setValue", "access": "", "host": "inputEx.MapField", "type": "method", "name": "setValue"}, {"url": "inputEx.MultiAutoComplete.html#method_setValue", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "setValue"}, {"url": "inputEx.MultiSelectField.html#method_setValue", "access": "", "host": "inputEx.MultiSelectField", "type": "method", "name": "setValue"}, {"url": "inputEx.RTEField.html#method_setValue", "access": "", "host": "inputEx.RTEField", "type": "method", "name": "setValue"}, {"url": "inputEx.RadioField.html#method_setValue", "access": "", "host": "inputEx.RadioField", "type": "method", "name": "setValue"}, {"url": "inputEx.SelectField.html#method_setValue", "access": "", "host": "inputEx.SelectField", "type": "method", "name": "setValue"}, {"url": "inputEx.SliderField.html#method_setValue", "access": "", "host": "inputEx.SliderField", "type": "method", "name": "setValue"}, {"url": "inputEx.StringField.html#method_setValue", "access": "", "host": "inputEx.StringField", "type": "method", "name": "setValue"}, {"url": "inputEx.TimeField.html#method_setValue", "access": "", "host": "inputEx.TimeField", "type": "method", "name": "setValue"}, {"url": "inputEx.TimeIntervalField.html#method_setValue", "access": "", "host": "inputEx.TimeIntervalField", "type": "method", "name": "setValue"}, {"url": "inputEx.TreeField.html#method_setValue", "access": "", "host": "inputEx.TreeField", "type": "method", "name": "setValue"}, {"url": "inputEx.TypeField.html#method_setValue", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "setValue"}, {"url": "inputEx.UneditableField.html#method_setValue", "access": "", "host": "inputEx.UneditableField", "type": "method", "name": "setValue"}, {"url": "inputEx.UpperCaseField.html#method_setValue", "access": "", "host": "inputEx.UpperCaseField", "type": "method", "name": "setValue"}, {"url": "inputEx.widget.Dialog.html#method_setValue", "access": "", "host": "inputEx.widget.Dialog", "type": "method", "name": "setValue"}, {"url": "inputEx.widget.DDList.html#method_setValue", "access": "", "host": "inputEx.widget.DDList", "type": "method", "name": "setValue"}, {"url": "inputEx.Field.html#method_show", "access": "", "host": "inputEx.Field", "type": "method", "name": "show"}, {"url": "inputEx.Form.html#method_showMask", "access": "", "host": "inputEx.Form", "type": "method", "name": "showMask"}, {"url": "inputEx.widget.DataTable.html#method_showTableOptions", "access": "", "host": "inputEx.widget.DataTable", "type": "method", "name": "showTableOptions"}, {"url": "inputEx.html#method_sn", "access": "", "host": "inputEx", "type": "method", "name": "sn"}, {"url": "inputEx.html#property_spacerUrl", "access": "", "host": "inputEx", "type": "property", "name": "spacerUrl"}, {"url": "inputEx.widget.DDListItem.html#method_startDrag", "access": "", "host": "inputEx.widget.DDListItem", "type": "method", "name": "startDrag"}, {"url": "inputEx.html#property_stateEmpty", "access": "", "host": "inputEx", "type": "property", "name": "stateEmpty"}, {"url": "inputEx.html#property_stateInvalid", "access": "", "host": "inputEx", "type": "property", "name": "stateInvalid"}, {"url": "inputEx.html#property_stateRequired", "access": "", "host": "inputEx", "type": "property", "name": "stateRequired"}, {"url": "inputEx.html#property_stateValid", "access": "", "host": "inputEx", "type": "property", "name": "stateValid"}, {"url": "inputEx.ListField.html#property_subFields", "access": "", "host": "inputEx.ListField", "type": "property", "name": "subFields"}, {"url": "inputEx.RPC.Transport.html#method_TCP/IP", "access": "", "host": "inputEx.RPC.Transport", "type": "method", "name": "TCP/IP"}, {"url": "inputEx.Group.html#method_toggleCollapse", "access": "", "host": "inputEx.Group", "type": "method", "name": "toggleCollapse"}, {"url": "inputEx.visus.html#method_trimpath", "access": "", "host": "inputEx.visus", "type": "method", "name": "trimpath"}, {"url": "inputEx.html#property_typeClasses", "access": "", "host": "inputEx", "type": "property", "name": "typeClasses"}, {"url": "inputEx.Field.html#event_updatedEvt", "access": "", "host": "inputEx.Field", "type": "event", "name": "updatedEvt"}, {"url": "inputEx.TypeField.html#method_updateFieldValue", "access": "", "host": "inputEx.TypeField", "type": "method", "name": "updateFieldValue"}, {"url": "inputEx.widget.DDList.html#method_updateItem", "access": "", "host": "inputEx.widget.DDList", "type": "method", "name": "updateItem"}, {"url": "inputEx.PasswordField.html#method_updateStrengthIndicator", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "updateStrengthIndicator"}, {"url": "inputEx.Field.html#method_validate", "access": "", "host": "inputEx.Field", "type": "method", "name": "validate"}, {"url": "inputEx.Group.html#method_validate", "access": "", "host": "inputEx.Group", "type": "method", "name": "validate"}, {"url": "inputEx.DateField.html#method_validate", "access": "", "host": "inputEx.DateField", "type": "method", "name": "validate"}, {"url": "inputEx.IntegerField.html#method_validate", "access": "", "host": "inputEx.IntegerField", "type": "method", "name": "validate"}, {"url": "inputEx.ListField.html#method_validate", "access": "", "host": "inputEx.ListField", "type": "method", "name": "validate"}, {"url": "inputEx.MultiAutoComplete.html#method_validate", "access": "", "host": "inputEx.MultiAutoComplete", "type": "method", "name": "validate"}, {"url": "inputEx.NumberField.html#method_validate", "access": "", "host": "inputEx.NumberField", "type": "method", "name": "validate"}, {"url": "inputEx.PasswordField.html#method_validate", "access": "", "host": "inputEx.PasswordField", "type": "method", "name": "validate"}, {"url": "inputEx.StringField.html#method_validate", "access": "", "host": "inputEx.StringField", "type": "method", "name": "validate"}, {"url": "inputEx.Textarea.html#method_validate", "access": "", "host": "inputEx.Textarea", "type": "method", "name": "validate"}, {"url": "inputEx.MapField.html#method_wait_create", "access": "", "host": "inputEx.MapField", "type": "method", "name": "wait_create"}, {"url": "inputEx.html#property_widget", "access": "", "host": "inputEx", "type": "property", "name": "widget"}, {"url": "inputEx.widget.DDList.html#event_YAHOO custom event fired when an item is removed", "access": "", "host": "inputEx.widget.DDList", "type": "event", "name": "YAHOO custom event fired when an item is removed"}, {"url": "inputEx.widget.DDList.html#event_YAHOO custom event fired when the list is reordered", "access": "", "host": "inputEx.widget.DDList", "type": "event", "name": "YAHOO custom event fired when the list is reordered"}] \ No newline at end of file +[{"name": "addElement", "url": "inputEx.ListField.html#method_addElement", "access": "", "host": "inputEx.ListField", "params": "The initial value of the subfield to create", "type": "method", "description": "Adds an element"}, {"name": "addInputExModules", "url": "inputEx.visus.html#method_addInputExModules", "access": "", "host": "inputEx.visus", "params": "yuiLoader YUI Loader instance, inputExPath (optional) inputExPath", "type": "method", "description": "Add inputEx modules to a YUI loader"}, {"name": "addItem", "url": "inputEx.widget.DDList.html#method_addItem", "access": "", "host": "inputEx.widget.DDList", "params": "item Either a string with the given value or an object with \"label\" and \"value\" attributes", "type": "method", "description": "Add an item to the list"}, {"name": "addOption", "url": "inputEx.SelectField.html#method_addOption", "access": "", "host": "inputEx.SelectField", "params": "item ", "type": "method", "description": "Add an option in the selector"}, {"name": "asyncRequest", "url": "inputEx.Form.html#method_asyncRequest", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Send the form value in JSON through an ajax request"}, {"name": "beforeShowOverlay", "url": "inputEx.DatePickerField.html#method_beforeShowOverlay", "access": "", "host": "inputEx.DatePickerField", "params": "", "type": "method", "description": "Select the right date and display the right page on calendar, when the field has a value"}, {"name": "buildAutocomplete", "url": "inputEx.AutoComplete.html#method_buildAutocomplete", "access": "", "host": "inputEx.AutoComplete", "params": "", "type": "method", "description": "Build the YUI autocompleter"}, {"name": "buildBranch", "url": "inputEx.widget.JsonTreeInspector.html#method_buildBranch", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "", "type": "method", "description": "Build the sub-branch for obj"}, {"name": "buildField", "url": "inputEx.html#method_buildField", "access": "", "host": "inputEx", "params": "fieldOptions ", "type": "method", "description": ""}, {"name": "buildForm", "url": "inputEx.widget.Dialog.html#method_buildForm", "access": "", "host": "inputEx.widget.Dialog", "params": "", "type": "method", "description": "render the inputExDef as a inputEx field"}, {"name": "byId", "url": "inputEx.PasswordField.html#property_byId", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "property", "description": "Keep track of all instances, indexed by ids, for the password confirmation field"}, {"name": "clear", "url": "inputEx.Field.html#method_clear", "access": "", "host": "inputEx.Field", "params": "[sendUpdatedEvt] (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Clear the field by setting the field value to this.options.value"}, {"name": "clear", "url": "inputEx.Group.html#method_clear", "access": "", "host": "inputEx.Group", "params": "[sendUpdatedEvt] (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Clear all subfields"}, {"name": "clear", "url": "inputEx.RadioField.html#method_clear", "access": "", "host": "inputEx.RadioField", "params": "[sendUpdatedEvt] (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Clear the field by setting the field value to this.options.value"}, {"name": "clickEvent", "url": "inputEx.widget.Button.html#event_clickEvent", "access": "", "host": "inputEx.widget.Button", "params": "", "type": "event", "description": "Click Event facade (YUI custom event)"}, {"name": "close", "url": "inputEx.Field.html#method_close", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Close the field and eventually opened popups..."}, {"name": "close", "url": "inputEx.Group.html#method_close", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Close the group (recursively calls \"close\" on each field, does NOT hide the group )\nCall this function before hidding the group to close any field popup"}, {"name": "close", "url": "inputEx.ColorField.html#method_close", "access": "", "host": "inputEx.ColorField", "params": "", "type": "method", "description": "Call overlay when field is removed"}, {"name": "close", "url": "inputEx.InPlaceEdit.html#method_close", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Close the editor when calling the close function on this field"}, {"name": "cn", "url": "inputEx.html#method_cn", "access": "", "host": "inputEx", "params": "tag The tagName to create (ex: 'div', 'a', ...), [domAttributes] see inputEx.sn, [styleAttributes] see inputEx.sn, [innerHTML] The html string to append into the created element", "type": "method", "description": "Helper function to create a DOM node. (wrapps the document.createElement tag and the inputEx.sn functions)"}, {"name": "compactArray", "url": "inputEx.html#method_compactArray", "access": "", "host": "inputEx", "params": "arr The array to compact", "type": "method", "description": "Create a new array without the null or undefined values"}, {"name": "datatable", "url": "inputEx.widget.DataTable.html#property_datatable", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "property", "description": "YUI's datatable instance"}, {"name": "defaultOptions", "url": "inputEx.JsonSchema.Builder.html#property_defaultOptions", "access": "", "host": "inputEx.JsonSchema.Builder", "params": "", "type": "property", "description": "options to be applied unless already specified"}, {"name": "defaultReferenceResolver", "url": "inputEx.JsonSchema.Builder.html#method_defaultReferenceResolver", "access": "", "host": "inputEx.JsonSchema.Builder", "params": "", "type": "method", "description": "return a schema based on the reference value default is to look up in map"}, {"name": "deserialize", "url": "inputEx.SerializeField.html#method_deserialize", "access": "", "host": "inputEx.SerializeField", "params": "", "type": "method", "description": "Use the configured deserializer"}, {"name": "deserialize", "url": "inputEx.SerializeField.serializers.html#method_deserialize", "access": "", "host": "inputEx.SerializeField.serializers", "params": "", "type": "method", "description": "deserialize from JSON"}, {"name": "deserialize", "url": "inputEx.RPC.Envelope.URL.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.URL", "params": "", "type": "method", "description": "Deserialize"}, {"name": "deserialize", "url": "inputEx.RPC.Envelope.PATH.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.PATH", "params": "", "type": "method", "description": "deserialize"}, {"name": "deserialize", "url": "inputEx.RPC.Envelope.JSON.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.JSON", "params": "", "type": "method", "description": "deserialize"}, {"name": "deserialize", "url": "inputEx.RPC.Envelope.JSON-RPC-1.0.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-1.0", "params": "", "type": "method", "description": "deserialize"}, {"name": "deserialize", "url": "inputEx.RPC.Envelope.JSON-RPC-2.0.html#method_deserialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-2.0", "params": "", "type": "method", "description": "serialize"}, {"name": "destroy", "url": "inputEx.Field.html#method_destroy", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Purge all event listeners and remove the component from the dom"}, {"name": "destroy", "url": "inputEx.Form.html#method_destroy", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Purge all event listeners and remove the component from the dom"}, {"name": "destroy", "url": "inputEx.Group.html#method_destroy", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Purge all event listeners and remove the component from the dom"}, {"name": "destroy", "url": "inputEx.widget.Button.html#method_destroy", "access": "", "host": "inputEx.widget.Button", "params": "", "type": "method", "description": "Purge all event listeners and remove the component from the dom"}, {"name": "destroy", "url": "inputEx.widget.JsonTreeInspector.html#method_destroy", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "", "type": "method", "description": "Destroy the widget"}, {"name": "disable", "url": "inputEx.Field.html#method_disable", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Disable the field"}, {"name": "disable", "url": "inputEx.Form.html#method_disable", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Disable all fields and buttons in the form"}, {"name": "disable", "url": "inputEx.Group.html#method_disable", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Disable all fields in the group"}, {"name": "disable", "url": "inputEx.CheckBox.html#method_disable", "access": "", "host": "inputEx.CheckBox", "params": "", "type": "method", "description": "Disable the field"}, {"name": "disable", "url": "inputEx.DatePickerField.html#method_disable", "access": "", "host": "inputEx.DatePickerField", "params": "", "type": "method", "description": "Disable the field"}, {"name": "disable", "url": "inputEx.RadioField.html#method_disable", "access": "", "host": "inputEx.RadioField", "params": "", "type": "method", "description": "Disable the field"}, {"name": "disable", "url": "inputEx.SelectField.html#method_disable", "access": "", "host": "inputEx.SelectField", "params": "", "type": "method", "description": "Disable the field"}, {"name": "disable", "url": "inputEx.StringField.html#method_disable", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Disable the field"}, {"name": "disable", "url": "inputEx.widget.Button.html#method_disable", "access": "", "host": "inputEx.widget.Button", "params": "", "type": "method", "description": "Disable the button"}, {"name": "displayFavicon", "url": "inputEx.UrlField.html#method_displayFavicon", "access": "", "host": "inputEx.UrlField", "params": "", "type": "method", "description": "Display the favicon if the icon was found (use of the naturalWidth property)"}, {"name": "displayMessage", "url": "inputEx.Field.html#method_displayMessage", "access": "", "host": "inputEx.Field", "params": "msg Message to display", "type": "method", "description": "Update the message"}, {"name": "dump", "url": "inputEx.visus.html#method_dump", "access": "", "host": "inputEx.visus", "params": "", "type": "method", "description": "Use YAHOO.lang.dump\noptions = {visuType: 'dump'}"}, {"name": "el", "url": "inputEx.widget.JsonTreeInspector.html#property_el", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "", "type": "property", "description": "Main div element"}, {"name": "element", "url": "inputEx.widget.DataTable.html#property_element", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "property", "description": "Main container"}, {"name": "enable", "url": "inputEx.Field.html#method_enable", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Enable the field"}, {"name": "enable", "url": "inputEx.Form.html#method_enable", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Enable all fields and buttons in the form"}, {"name": "enable", "url": "inputEx.Group.html#method_enable", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Enable all fields in the group"}, {"name": "enable", "url": "inputEx.CheckBox.html#method_enable", "access": "", "host": "inputEx.CheckBox", "params": "", "type": "method", "description": "Enable the field"}, {"name": "enable", "url": "inputEx.DatePickerField.html#method_enable", "access": "", "host": "inputEx.DatePickerField", "params": "", "type": "method", "description": "Enable the field"}, {"name": "enable", "url": "inputEx.RadioField.html#method_enable", "access": "", "host": "inputEx.RadioField", "params": "", "type": "method", "description": "Enable the field"}, {"name": "enable", "url": "inputEx.SelectField.html#method_enable", "access": "", "host": "inputEx.SelectField", "params": "", "type": "method", "description": "Enable the field"}, {"name": "enable", "url": "inputEx.StringField.html#method_enable", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Enable the field"}, {"name": "enable", "url": "inputEx.widget.Button.html#method_enable", "access": "", "host": "inputEx.widget.Button", "params": "", "type": "method", "description": "Enable the button"}, {"name": "endDrag", "url": "inputEx.widget.DDListItem.html#method_endDrag", "access": "", "host": "inputEx.widget.DDListItem", "params": "", "type": "method", "description": "Handle the endDrag and eventually fire the listReordered event"}, {"name": "Event fired when an item is added", "url": "inputEx.widget.DataTable.html#event_Event fired when an item is added", "access": "", "host": "inputEx.widget.DataTable", "params": "Added record", "type": "event", "description": ""}, {"name": "Event fired when an item is modified", "url": "inputEx.widget.DataTable.html#event_Event fired when an item is modified", "access": "", "host": "inputEx.widget.DataTable", "params": "Modified record", "type": "event", "description": ""}, {"name": "Event fired when an item is removed", "url": "inputEx.widget.DataTable.html#event_Event fired when an item is removed", "access": "", "host": "inputEx.widget.DataTable", "params": "Removed record", "type": "event", "description": ""}, {"name": "expandAll", "url": "inputEx.widget.JsonTreeInspector.html#method_expandAll", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "maxLevel ", "type": "method", "description": "Expand the root node"}, {"name": "expandBranch", "url": "inputEx.widget.JsonTreeInspector.html#method_expandBranch", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "li , maxLevel ", "type": "method", "description": "Expand a branch given a li element"}, {"name": "expandElement", "url": "inputEx.widget.JsonTreeInspector.html#method_expandElement", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "", "type": "method", "description": "expand the node given the li element"}, {"name": "fetch", "url": "inputEx.RPC.Service.html#method_fetch", "access": "", "host": "inputEx.RPC.Service", "params": "Absolute or relative url", "type": "method", "description": "Download the SMD at the given url"}, {"name": "fieldsToColumndefs", "url": "inputEx.widget.DataTable.html#method_fieldsToColumndefs", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Convert an inputEx fields definition to a DataTable columns definition"}, {"name": "fieldToColumndef", "url": "inputEx.widget.DataTable.html#method_fieldToColumndef", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Convert a single inputEx field definition to a DataTable column definition"}, {"name": "filter_msword", "url": "inputEx.RTEField.html#method_filter_msword", "access": "", "host": "inputEx.RTEField", "params": "value The html string", "type": "method", "description": "Filters out msword html comments, classes, and other junk\n(complementary with YAHOO.widget.SimpleEditor.prototype.filter_msword, when filterWord option is true)"}, {"name": "fireUpdatedEvt", "url": "inputEx.Field.html#method_fireUpdatedEvt", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Fire the \"updated\" event (only if the field validated)\nEscape the stack using a setTimeout"}, {"name": "focus", "url": "inputEx.Field.html#method_focus", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Focus the field"}, {"name": "focus", "url": "inputEx.Group.html#method_focus", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Set the focus to the first input in the group"}, {"name": "focus", "url": "inputEx.SerializeField.html#method_focus", "access": "", "host": "inputEx.SerializeField", "params": "", "type": "method", "description": "Sets the focus on this field"}, {"name": "focus", "url": "inputEx.StringField.html#method_focus", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Set the focus to this field"}, {"name": "focus", "url": "inputEx.widget.CellEditor.html#method_focus", "access": "", "host": "inputEx.widget.CellEditor", "params": "", "type": "method", "description": "Sets focus in CellEditor."}, {"name": "formatDate", "url": "inputEx.DateField.html#method_formatDate", "access": "", "host": "inputEx.DateField", "params": "", "type": "method", "description": "Those methods are limited but largely enough for our usage"}, {"name": "formForMethod", "url": "inputEx.RPC.html#method_formForMethod", "access": "", "host": "inputEx.RPC", "params": "method A method created through inputEx.RPC.Service", "type": "method", "description": "Return the inputEx form options from a method"}, {"name": "formFromInstance", "url": "inputEx.JsonSchema.Builder.html#method_formFromInstance", "access": "", "host": "inputEx.JsonSchema.Builder", "params": "", "type": "method", "description": "Create an inputEx Json form definition from a json schema instance object\nRespect the \"Self-Defined Schema Convention\""}, {"name": "func", "url": "inputEx.visus.html#method_func", "access": "", "host": "inputEx.visus", "params": "", "type": "method", "description": "Use a rendering function\noptions = {visuType: 'func', func: function(data) { ...code here...} }"}, {"name": "generateSelectConfig", "url": "inputEx.KeyValueField.html#method_generateSelectConfig", "access": "", "host": "inputEx.KeyValueField", "params": "", "type": "method", "description": "Generate"}, {"name": "_generateService", "url": "inputEx.RPC.Service.html#method__generateService", "access": "", "host": "inputEx.RPC.Service", "params": "serviceName , method ", "type": "method", "description": "Generate the function from a service definition"}, {"name": "generateServiceForm", "url": "inputEx.RPC.html#method_generateServiceForm", "access": "", "host": "inputEx.RPC", "params": "method A method created through inputEx.RPC.Service, formOpts ", "type": "method", "description": "Build a form to run a service !"}, {"name": "GET", "url": "inputEx.RPC.Transport.html#method_GET", "access": "", "host": "inputEx.RPC.Transport", "params": "r Object specifying target, callback and data attributes", "type": "method", "description": "Build a ajax request using 'GET' method"}, {"name": "getEl", "url": "inputEx.Field.html#method_getEl", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "The default render creates a div to put in the messages"}, {"name": "getFieldByName", "url": "inputEx.Group.html#method_getFieldByName", "access": "", "host": "inputEx.Group", "params": "fieldName The name property", "type": "method", "description": "Return the sub-field instance by its name property"}, {"name": "getFieldClass", "url": "inputEx.html#method_getFieldClass", "access": "", "host": "inputEx", "params": "type String type of the field", "type": "method", "description": "Returns the class for the given type\nex: inputEx.getFieldClass(\"color\") returns inputEx.ColorField"}, {"name": "getFieldsStates", "url": "inputEx.Group.html#method_getFieldsStates", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Alternative method to validate for advanced error handling"}, {"name": "getForm", "url": "inputEx.widget.Dialog.html#method_getForm", "access": "", "host": "inputEx.widget.Dialog", "params": "", "type": "method", "description": "Return the inputEx field instance created"}, {"name": "getInputValue", "url": "inputEx.widget.CellEditor.html#method_getInputValue", "access": "", "host": "inputEx.widget.CellEditor", "params": "", "type": "method", "description": "Returns new value for CellEditor."}, {"name": "getParentField", "url": "inputEx.Field.html#method_getParentField", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Return the parent field instance"}, {"name": "getPasswordStrength", "url": "inputEx.PasswordField.html#method_getPasswordStrength", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "Return an integer within [0,100] that quantify the password strength\nFunction taken from Mozilla Code: (changed a little bit the values)\nhttp://lxr.mozilla.org/seamonkey/source/security/manager/pki/resources/content/password.js"}, {"name": "getState", "url": "inputEx.Field.html#method_getState", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Returns the current state (given its value)"}, {"name": "getState", "url": "inputEx.MultiAutoComplete.html#method_getState", "access": "", "host": "inputEx.MultiAutoComplete", "params": "", "type": "method", "description": "Return (stateEmpty|stateRequired) if the value equals the typeInvite attribute"}, {"name": "getStateString", "url": "inputEx.Field.html#method_getStateString", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Get the string for the given state"}, {"name": "getStateString", "url": "inputEx.PasswordField.html#method_getStateString", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "Change the state string"}, {"name": "getStateString", "url": "inputEx.StringField.html#method_getStateString", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Add the minLength string message handling"}, {"name": "getStateString", "url": "inputEx.Textarea.html#method_getStateString", "access": "", "host": "inputEx.Textarea", "params": "", "type": "method", "description": "Add the minLength string message handling"}, {"name": "getType", "url": "inputEx.html#method_getType", "access": "", "host": "inputEx", "params": "FieldClass An inputEx.Field or derivated class", "type": "method", "description": "Get the inputex type for the given class (ex: inputEx.getType(inputEx.ColorField) returns \"color\")"}, {"name": "getValue", "url": "inputEx.Field.html#method_getValue", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Return the value of the input"}, {"name": "getValue", "url": "inputEx.Group.html#method_getValue", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Return an object with all the values of the fields"}, {"name": "getValue", "url": "inputEx.AutoComplete.html#method_getValue", "access": "", "host": "inputEx.AutoComplete", "params": "", "type": "method", "description": "Return the hidden value (stored in a hidden input)"}, {"name": "getValue", "url": "inputEx.CheckBox.html#method_getValue", "access": "", "host": "inputEx.CheckBox", "params": "", "type": "method", "description": "Get the state value"}, {"name": "getValue", "url": "inputEx.ColorField.html#method_getValue", "access": "", "host": "inputEx.ColorField", "params": "", "type": "method", "description": "Return the color value"}, {"name": "getValue", "url": "inputEx.ColorPickerField.html#method_getValue", "access": "", "host": "inputEx.ColorPickerField", "params": "", "type": "method", "description": "Return the color value"}, {"name": "getValue", "url": "inputEx.CombineField.html#method_getValue", "access": "", "host": "inputEx.CombineField", "params": "", "type": "method", "description": "Specific getValue"}, {"name": "getValue", "url": "inputEx.DateField.html#method_getValue", "access": "", "host": "inputEx.DateField", "params": "forceDate Skip the valueFormat option if set to truthy", "type": "method", "description": "Return the date"}, {"name": "getValue", "url": "inputEx.DateTimeField.html#method_getValue", "access": "", "host": "inputEx.DateTimeField", "params": "", "type": "method", "description": "Concat the values to return a date"}, {"name": "getValue", "url": "inputEx.EmailField.html#method_getValue", "access": "", "host": "inputEx.EmailField", "params": "", "type": "method", "description": "Set the value to lower case since email have no case"}, {"name": "getValue", "url": "inputEx.HiddenField.html#method_getValue", "access": "", "host": "inputEx.HiddenField", "params": "", "type": "method", "description": "Get the previously stored value"}, {"name": "getValue", "url": "inputEx.InPlaceEdit.html#method_getValue", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Returned the previously stored value"}, {"name": "getValue", "url": "inputEx.IntegerField.html#method_getValue", "access": "", "host": "inputEx.IntegerField", "params": "", "type": "method", "description": "Get the value"}, {"name": "getValue", "url": "inputEx.ListField.html#method_getValue", "access": "", "host": "inputEx.ListField", "params": "", "type": "method", "description": "Return the array of values"}, {"name": "getValue", "url": "inputEx.MapField.html#method_getValue", "access": "", "host": "inputEx.MapField", "params": "", "type": "method", "description": "return the same structure as setValue"}, {"name": "getValue", "url": "inputEx.MultiAutoComplete.html#method_getValue", "access": "", "host": "inputEx.MultiAutoComplete", "params": "", "type": "method", "description": "Return the value"}, {"name": "getValue", "url": "inputEx.MultiSelectField.html#method_getValue", "access": "", "host": "inputEx.MultiSelectField", "params": "", "type": "method", "description": "Return the value"}, {"name": "getValue", "url": "inputEx.NumberField.html#method_getValue", "access": "", "host": "inputEx.NumberField", "params": "", "type": "method", "description": "Return a parsed float (javascript type number)"}, {"name": "getValue", "url": "inputEx.RTEField.html#method_getValue", "access": "", "host": "inputEx.RTEField", "params": "", "type": "method", "description": "Get the html string"}, {"name": "getValue", "url": "inputEx.RadioField.html#method_getValue", "access": "", "host": "inputEx.RadioField", "params": "", "type": "method", "description": "Get the field value"}, {"name": "getValue", "url": "inputEx.SelectField.html#method_getValue", "access": "", "host": "inputEx.SelectField", "params": "", "type": "method", "description": "Return the value"}, {"name": "getValue", "url": "inputEx.SerializeField.html#method_getValue", "access": "", "host": "inputEx.SerializeField", "params": "", "type": "method", "description": "Use the subField getValue and serialize it with the selected serializing method"}, {"name": "getValue", "url": "inputEx.SliderField.html#method_getValue", "access": "", "host": "inputEx.SliderField", "params": "", "type": "method", "description": "Get the value from the slider"}, {"name": "getValue", "url": "inputEx.StringField.html#method_getValue", "access": "", "host": "inputEx.StringField", "params": "The string value", "type": "method", "description": "Return the string value"}, {"name": "getValue", "url": "inputEx.TimeField.html#method_getValue", "access": "", "host": "inputEx.TimeField", "params": "", "type": "method", "description": "Returns a string like HH:MM:SS"}, {"name": "getValue", "url": "inputEx.TimeIntervalField.html#method_getValue", "access": "", "host": "inputEx.TimeIntervalField", "params": "", "type": "method", "description": "Concat the values to return a date"}, {"name": "getValue", "url": "inputEx.TreeField.html#method_getValue", "access": "", "host": "inputEx.TreeField", "params": "", "type": "method", "description": "Get the value"}, {"name": "getValue", "url": "inputEx.TypeField.html#method_getValue", "access": "", "host": "inputEx.TypeField", "params": "", "type": "method", "description": "Return the config for a entry in an Group"}, {"name": "getValue", "url": "inputEx.UneditableField.html#method_getValue", "access": "", "host": "inputEx.UneditableField", "params": "", "type": "method", "description": "Return the stored value"}, {"name": "getValue", "url": "inputEx.widget.Dialog.html#method_getValue", "access": "", "host": "inputEx.widget.Dialog", "params": "", "type": "method", "description": "Shortcut to get value"}, {"name": "getValue", "url": "inputEx.widget.DDList.html#method_getValue", "access": "", "host": "inputEx.widget.DDList", "params": "", "type": "method", "description": "Return the current value of the field"}, {"name": "hash", "url": "inputEx.widget.JsonTreeInspector.html#property_hash", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "", "type": "property", "description": "Hash to contain the values indexed by li ids"}, {"name": "hide", "url": "inputEx.Field.html#method_hide", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Hide the field"}, {"name": "hideMask", "url": "inputEx.Form.html#method_hideMask", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Hide the form mask"}, {"name": "indexOf", "url": "inputEx.html#method_indexOf", "access": "", "host": "inputEx", "params": "el Value to search, arr The array to search", "type": "method", "description": "Find the position of the given element. (This method is not available in IE 6)"}, {"name": "init", "url": "inputEx.YQL.html#method_init", "access": "", "host": "inputEx.YQL", "params": "callbacks Array of (list of callbacks functions) (provide a list of callbacks for each script type=\"text/yql\" tag in the page)", "type": "method", "description": "Run script type=\"text/yql\" tags on YQL servers\nIf you have just one script tag and one callback, pass [[function(results) {}]]\nIf you have two script tags and two callback for each: [ [function() {},function() {}] , [function() {},function() {}]]\netc..."}, {"name": "initEvents", "url": "inputEx.Field.html#method_initEvents", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Initialize events of the Input"}, {"name": "initEvents", "url": "inputEx.Form.html#method_initEvents", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Init the events"}, {"name": "initEvents", "url": "inputEx.Group.html#method_initEvents", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Add a listener for the 'collapsible' option"}, {"name": "initEvents", "url": "inputEx.AutoComplete.html#method_initEvents", "access": "", "host": "inputEx.AutoComplete", "params": "", "type": "method", "description": "Custom event init\n
      \n
    • listen to autocompleter textboxBlurEvent instead of this.el \"blur\" event
    • \n
    • listener to autocompleter textboxBlurEvent added in buildAutocomplete method
    • \n
    "}, {"name": "initEvents", "url": "inputEx.CheckBox.html#method_initEvents", "access": "", "host": "inputEx.CheckBox", "params": "", "type": "method", "description": "Clear the previous events and listen for the \"change\" event"}, {"name": "initEvents", "url": "inputEx.InPlaceEdit.html#method_initEvents", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Adds the events for the editor and color animations"}, {"name": "initEvents", "url": "inputEx.KeyValueField.html#method_initEvents", "access": "", "host": "inputEx.KeyValueField", "params": "", "type": "method", "description": "Subscribe the updatedEvt on the key selector"}, {"name": "initEvents", "url": "inputEx.ListField.html#method_initEvents", "access": "", "host": "inputEx.ListField", "params": "", "type": "method", "description": "Handle the click event on the add button"}, {"name": "initEvents", "url": "inputEx.MultiSelectField.html#method_initEvents", "access": "", "host": "inputEx.MultiSelectField", "params": "", "type": "method", "description": "Register the \"change\" event"}, {"name": "initEvents", "url": "inputEx.RadioField.html#method_initEvents", "access": "", "host": "inputEx.RadioField", "params": "", "type": "method", "description": "Listen for change events on all radios"}, {"name": "initEvents", "url": "inputEx.SelectField.html#method_initEvents", "access": "", "host": "inputEx.SelectField", "params": "", "type": "method", "description": "Register the \"change\" event"}, {"name": "initEvents", "url": "inputEx.SerializeField.html#method_initEvents", "access": "", "host": "inputEx.SerializeField", "params": "", "type": "method", "description": "Subscribe the subField"}, {"name": "initEvents", "url": "inputEx.StringField.html#method_initEvents", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Register the change, focus and blur events"}, {"name": "initEvents", "url": "inputEx.TypeField.html#method_initEvents", "access": "", "host": "inputEx.TypeField", "params": "", "type": "method", "description": "Adds 2 event listeners: \n- on the button to toggel the propertiesPanel"}, {"name": "initEvents", "url": "inputEx.widget.Button.html#method_initEvents", "access": "", "host": "inputEx.widget.Button", "params": "", "type": "method", "description": "attach the listeners on \"click\" event and create the custom events"}, {"name": "initEvents", "url": "inputEx.widget.DataTable.html#method_initEvents", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Init the events"}, {"name": "initEvents", "url": "inputEx.widget.dtInPlaceEdit.html#method_initEvents", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "Init the events"}, {"name": "initTrimpathPage", "url": "inputEx.YQL.html#method_initTrimpathPage", "access": "", "host": "inputEx.YQL", "params": "additionalCallbacks List of [list of callbacks] (each yql query can call multiple callbacks)", "type": "method", "description": "YQL-trimpath-page is a utility to create pages using YQL queries ant Trimpath templating\nAll YQL queries are made using the rpc/yql.js utility.\nsee examples/yql-trimpath-page.html\nCall this method on page load to run yql queries and the associated templates"}, {"name": "inputExToSchema", "url": "inputEx.JsonSchema.html#method_inputExToSchema", "access": "", "host": "inputEx.JsonSchema", "params": "", "type": "method", "description": "Convert the inputEx JSON fields to a JSON schema"}, {"name": "insert", "url": "inputEx.Textarea.html#method_insert", "access": "", "host": "inputEx.Textarea", "params": "text Text to insert", "type": "method", "description": "Insert text at the current cursor position"}, {"name": "isEmpty", "url": "inputEx.Field.html#method_isEmpty", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Should return true if empty"}, {"name": "isEmpty", "url": "inputEx.RadioField.html#method_isEmpty", "access": "", "host": "inputEx.RadioField", "params": "", "type": "method", "description": "Should return true if empty"}, {"name": "itemSelectHandler", "url": "inputEx.AutoComplete.html#method_itemSelectHandler", "access": "", "host": "inputEx.AutoComplete", "params": "sType , aArgs ", "type": "method", "description": "itemSelect handler"}, {"name": "itemSelectHandler", "url": "inputEx.MultiAutoComplete.html#method_itemSelectHandler", "access": "", "host": "inputEx.MultiAutoComplete", "params": "", "type": "method", "description": "Handle item selection in the autocompleter to add it to the list"}, {"name": "json", "url": "inputEx.SerializeField.serializers.html#property_json", "access": "", "host": "inputEx.SerializeField.serializers", "params": "", "type": "property", "description": "JSON Serializer"}, {"name": "JSONP", "url": "inputEx.RPC.Transport.html#method_JSONP", "access": "", "host": "inputEx.RPC.Transport", "params": "r Object specifying target, callback and data attributes", "type": "method", "description": "Receive data through JSONP (insert a script tag within the page)"}, {"name": "jsonPath", "url": "inputEx.widget.JsonTreeInspector.html#method_jsonPath", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "", "type": "method", "description": "JSONPath 0.8.0 - XPath for JSON\nhttp://code.google.com/p/jsonpath/\nhttp://code.google.com/p/jsonpath/wiki/Javascript\nCopyright (c) 2007 Stefan Goessner (goessner.net)\nLicensed under the MIT (MIT-LICENSE.txt) licence."}, {"name": "loadSMD", "url": "inputEx.RPC.SMDTester.html#method_loadSMD", "access": "", "host": "inputEx.RPC.SMDTester", "params": "", "type": "method", "description": "When the user select a SMD in the select"}, {"name": "messages", "url": "inputEx.html#property_messages", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Associative array containing field messages"}, {"name": "onAddButton", "url": "inputEx.ListField.html#method_onAddButton", "access": "", "host": "inputEx.ListField", "params": "e The original click event", "type": "method", "description": "Add a new element to the list and fire updated event"}, {"name": "onAddButton", "url": "inputEx.widget.dtInPlaceEdit.html#method_onAddButton", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When clicking \"Add\" button to save a new row"}, {"name": "onAddFailure", "url": "inputEx.widget.dtInPlaceEdit.html#method_onAddFailure", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When Failed to Add Row"}, {"name": "onAddNewItem", "url": "inputEx.MultiSelectField.html#method_onAddNewItem", "access": "", "host": "inputEx.MultiSelectField", "params": "", "type": "method", "description": "Add an item to the list when the select changed"}, {"name": "onAddSuccess", "url": "inputEx.widget.dtInPlaceEdit.html#method_onAddSuccess", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "Validate the new record's row : \nYou need to call this function when you really added the item with an id\nIe if you trigger an Ajax request to insert your record into database,\nyou trigger this function only if your request didn't failed"}, {"name": "onArrowDown", "url": "inputEx.ListField.html#method_onArrowDown", "access": "", "host": "inputEx.ListField", "params": "e Original click event", "type": "method", "description": "Switch a subField with its next one\nCalled when the user clicked on the down arrow of a sortable list"}, {"name": "onArrowUp", "url": "inputEx.ListField.html#method_onArrowUp", "access": "", "host": "inputEx.ListField", "params": "e Original click event", "type": "method", "description": "Switch a subField with its previous one\nCalled when the user clicked on the up arrow of a sortable list"}, {"name": "onBlur", "url": "inputEx.Field.html#method_onBlur", "access": "", "host": "inputEx.Field", "params": "e The original 'blur' event", "type": "method", "description": "Function called on the blur event"}, {"name": "onCancelButton", "url": "inputEx.widget.dtInPlaceEdit.html#method_onCancelButton", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When clicking \"Cancel\" button to cancel a new row"}, {"name": "onCancelEditor", "url": "inputEx.InPlaceEdit.html#method_onCancelEditor", "access": "", "host": "inputEx.InPlaceEdit", "params": "e The original event (click, blur or keydown)", "type": "method", "description": "Close the editor on cancel (cancel button, blur event or escape key)"}, {"name": "onCancelForm", "url": "inputEx.widget.DataTable.html#method_onCancelForm", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Cancel row edition"}, {"name": "_onCellClick", "url": "inputEx.widget.DataTable.html#method__onCellClick", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Handling cell click events"}, {"name": "onCellClick", "url": "inputEx.widget.DataTable.html#method_onCellClick", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Public cell click handler"}, {"name": "_onCellClick", "url": "inputEx.widget.dtInPlaceEdit.html#method__onCellClick", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "Handling cell click events"}, {"name": "onCellClick", "url": "inputEx.widget.dtInPlaceEdit.html#method_onCellClick", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "Public handler - When clicking on one of the datatable's cells"}, {"name": "onChange", "url": "inputEx.Field.html#method_onChange", "access": "", "host": "inputEx.Field", "params": "e The original 'change' event", "type": "method", "description": "onChange event handler"}, {"name": "onChange", "url": "inputEx.Group.html#method_onChange", "access": "", "host": "inputEx.Group", "params": "eventName Event name, args Array of [fieldValue, fieldInstance]", "type": "method", "description": "Called when one of the group subfields is updated."}, {"name": "onChange", "url": "inputEx.AutoComplete.html#method_onChange", "access": "", "host": "inputEx.AutoComplete", "params": "e The original 'change' event", "type": "method", "description": "onChange event handler"}, {"name": "onChange", "url": "inputEx.CheckBox.html#method_onChange", "access": "", "host": "inputEx.CheckBox", "params": "e The original 'change' event", "type": "method", "description": "Function called when the checkbox is toggled"}, {"name": "onChange", "url": "inputEx.MultiAutoComplete.html#method_onChange", "access": "", "host": "inputEx.MultiAutoComplete", "params": "e The original 'change' event", "type": "method", "description": "onChange event handler"}, {"name": "onChange", "url": "inputEx.RadioField.html#method_onChange", "access": "", "host": "inputEx.RadioField", "params": "e The original 'change' event", "type": "method", "description": "Function called when the checkbox is toggled"}, {"name": "onChangeGroupOptions", "url": "inputEx.TypeField.html#method_onChangeGroupOptions", "access": "", "host": "inputEx.TypeField", "params": "", "type": "method", "description": "Update the fieldValue with the changed properties"}, {"name": "onClickModify", "url": "inputEx.widget.DataTable.html#method_onClickModify", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Opens the Dialog to edit the row\nCalled when the user clicked on modify button"}, {"name": "onColorClick", "url": "inputEx.ColorField.html#method_onColorClick", "access": "", "host": "inputEx.ColorField", "params": "e The original click event", "type": "method", "description": "Handle a color selection"}, {"name": "onDatasourceFailure", "url": "inputEx.DSSelectField.html#method_onDatasourceFailure", "access": "", "host": "inputEx.DSSelectField", "params": "", "type": "method", "description": "Callback for request failure"}, {"name": "onDatasourceSuccess", "url": "inputEx.DSSelectField.html#method_onDatasourceSuccess", "access": "", "host": "inputEx.DSSelectField", "params": "", "type": "method", "description": "Callback for request success"}, {"name": "onDelete", "url": "inputEx.ListField.html#method_onDelete", "access": "", "host": "inputEx.ListField", "params": "e The original click event", "type": "method", "description": "Called when the user clicked on a delete button."}, {"name": "onDialogCancel", "url": "inputEx.widget.DataTable.html#method_onDialogCancel", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "When canceling the Dialog"}, {"name": "onDialogSave", "url": "inputEx.widget.DataTable.html#method_onDialogSave", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "When saving the Dialog"}, {"name": "onDialogSave", "url": "inputEx.widget.dtInPlaceEdit.html#method_onDialogSave", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When saving the Dialog (option insertWithDialog)"}, {"name": "onDrag", "url": "inputEx.widget.DDListItem.html#method_onDrag", "access": "", "host": "inputEx.widget.DDListItem", "params": "", "type": "method", "description": "Keep track of the direction of the drag for use during onDragOver"}, {"name": "onDragDrop", "url": "inputEx.widget.DDListItem.html#method_onDragDrop", "access": "", "host": "inputEx.widget.DDListItem", "params": "", "type": "method", "description": ""}, {"name": "onDragOver", "url": "inputEx.widget.DDListItem.html#method_onDragOver", "access": "", "host": "inputEx.widget.DDListItem", "params": "", "type": "method", "description": ""}, {"name": "onFocus", "url": "inputEx.Field.html#method_onFocus", "access": "", "host": "inputEx.Field", "params": "e The original 'focus' event", "type": "method", "description": "Function called on the focus event"}, {"name": "onFocus", "url": "inputEx.StringField.html#method_onFocus", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Clear the typeInvite when the field gains focus"}, {"name": "onInput", "url": "inputEx.PasswordField.html#method_onInput", "access": "", "host": "inputEx.PasswordField", "params": "e The original input event", "type": "method", "description": "Update the state of the confirmation field"}, {"name": "onInsertButton", "url": "inputEx.widget.DataTable.html#method_onInsertButton", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Insert button event handler"}, {"name": "onInsertButton", "url": "inputEx.widget.dtInPlaceEdit.html#method_onInsertButton", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When clicking on the \"insert\" button to add a new row"}, {"name": "onItemClick", "url": "inputEx.widget.JsonTreeInspector.html#method_onItemClick", "access": "", "host": "inputEx.widget.JsonTreeInspector", "params": "", "type": "method", "description": "When the user click on a node"}, {"name": "onItemRemoved", "url": "inputEx.MultiSelectField.html#method_onItemRemoved", "access": "", "host": "inputEx.MultiSelectField", "params": "", "type": "method", "description": "Re-enable the option element when an item is removed by the user"}, {"name": "onKeyDown", "url": "inputEx.InPlaceEdit.html#method_onKeyDown", "access": "", "host": "inputEx.InPlaceEdit", "params": "e The original keydown event", "type": "method", "description": "Handle the tabulation key to close the editor"}, {"name": "onKeyPress", "url": "inputEx.PasswordField.html#method_onKeyPress", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "callback to display the capsLockWarning"}, {"name": "onKeyPress", "url": "inputEx.UpperCaseField.html#method_onKeyPress", "access": "", "host": "inputEx.UpperCaseField", "params": "e The original 'input' event", "type": "method", "description": "Call setvalue on input to update the field with upper case value"}, {"name": "onKeyUp", "url": "inputEx.InPlaceEdit.html#method_onKeyUp", "access": "", "host": "inputEx.InPlaceEdit", "params": "e The original keyup event", "type": "method", "description": "Handle some keys events to close the editor"}, {"name": "onKeyUp", "url": "inputEx.PasswordField.html#method_onKeyUp", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "onkeyup callback to update the strength indicator"}, {"name": "onModifyItem", "url": "inputEx.widget.dtInPlaceEdit.html#method_onModifyItem", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When modifying a row"}, {"name": "onModifySuccess", "url": "inputEx.widget.dtInPlaceEdit.html#method_onModifySuccess", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When successfully modified a row"}, {"name": "onOkEditor", "url": "inputEx.InPlaceEdit.html#method_onOkEditor", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Validate the editor (ok button, enter key or tabulation key)"}, {"name": "onRemoveFailure", "url": "inputEx.widget.dtInPlaceEdit.html#method_onRemoveFailure", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When failed to delete a row"}, {"name": "onRemoveItem", "url": "inputEx.widget.dtInPlaceEdit.html#method_onRemoveItem", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When trying to delete a row"}, {"name": "onRemoveSuccess", "url": "inputEx.widget.dtInPlaceEdit.html#method_onRemoveSuccess", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "When successfully deleted a row"}, {"name": "onReordered", "url": "inputEx.widget.DDList.html#method_onReordered", "access": "", "host": "inputEx.widget.DDList", "params": "", "type": "method", "description": "Called by the DDListItem when an item as been moved"}, {"name": "onSelectFieldChange", "url": "inputEx.KeyValueField.html#method_onSelectFieldChange", "access": "", "host": "inputEx.KeyValueField", "params": "", "type": "method", "description": "Rebuild the value field"}, {"name": "onServiceLoaded", "url": "inputEx.RPC.SMDTester.html#method_onServiceLoaded", "access": "", "host": "inputEx.RPC.SMDTester", "params": "", "type": "method", "description": "When the SMD has been loaded"}, {"name": "onServiceMethod", "url": "inputEx.RPC.SMDTester.html#method_onServiceMethod", "access": "", "host": "inputEx.RPC.SMDTester", "params": "", "type": "method", "description": "When a method has been selected :"}, {"name": "onSubmit", "url": "inputEx.Form.html#method_onSubmit", "access": "", "host": "inputEx.Form", "params": "e The original onSubmit event", "type": "method", "description": "Intercept the 'onsubmit' event and stop it if !validate\nIf the ajax option object is set, use YUI async Request to send the form"}, {"name": "onTogglePropertiesPanel", "url": "inputEx.TypeField.html#method_onTogglePropertiesPanel", "access": "", "host": "inputEx.TypeField", "params": "", "type": "method", "description": "Toggle the property panel"}, {"name": "onVisuMouseOut", "url": "inputEx.InPlaceEdit.html#method_onVisuMouseOut", "access": "", "host": "inputEx.InPlaceEdit", "params": "e The original mouseout event", "type": "method", "description": "Start the color animation when hovering the field"}, {"name": "onVisuMouseOver", "url": "inputEx.InPlaceEdit.html#method_onVisuMouseOver", "access": "", "host": "inputEx.InPlaceEdit", "params": "e The original mouseover event", "type": "method", "description": "Set the color when hovering the field"}, {"name": "openEditor", "url": "inputEx.InPlaceEdit.html#method_openEditor", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Display the editor"}, {"name": "options", "url": "inputEx.Field.html#property_options", "access": "", "host": "inputEx.Field", "params": "", "type": "property", "description": "Configuration object to set the options for this class and the parent classes. See constructor details for options added by this class."}, {"name": "palettes", "url": "inputEx.ColorField.html#property_palettes", "access": "", "host": "inputEx.ColorField", "params": "", "type": "property", "description": "Default palettes"}, {"name": "parseWithFormat", "url": "inputEx.DateField.html#method_parseWithFormat", "access": "", "host": "inputEx.DateField", "params": "", "type": "method", "description": "Those methods are limited but largely enough for our usage"}, {"name": "populateSelect", "url": "inputEx.DSSelectField.html#method_populateSelect", "access": "", "host": "inputEx.DSSelectField", "params": "", "type": "method", "description": "Insert the options"}, {"name": "POST", "url": "inputEx.RPC.Transport.html#method_POST", "access": "", "host": "inputEx.RPC.Transport", "params": "r Object specifying target, callback and data attributes", "type": "method", "description": "Build a ajax request using 'POST' method"}, {"name": "preload", "url": "inputEx.MapField.html#method_preload", "access": "", "host": "inputEx.MapField", "params": "", "type": "method", "description": "This preloaded MAY not really work -- we recommend that you use\nthe following JavaScript instead _after_ \"yahoo-dom-event.js\" (or similar)\nis included:\nscript type=\"text/javascript\"\nYMAPPID = [yourapikey]\n/script\nscript type=\"text/javascript\" src=\"http://us.js2.yimg.com/us.js.yimg.com/lib/map/js/api/ymapapi_3_8_0_7.js\"\n/script\nNote the non-standard loading pattern! See:\nhttp://yuiblog.com/blog/2006/12/14/maps-plus-yui/"}, {"name": "process", "url": "inputEx.RPC.Service.html#method_process", "access": "", "host": "inputEx.RPC.Service", "params": "", "type": "method", "description": "Process the SMD definition"}, {"name": "query", "url": "inputEx.YQL.html#method_query", "access": "", "host": "inputEx.YQL", "params": "yql YQL query string, callback Callback function", "type": "method", "description": "Generate the jsonp request to YQL"}, {"name": "queryCode", "url": "inputEx.YQL.html#method_queryCode", "access": "", "host": "inputEx.YQL", "params": "codeStr YQL-execute javascript code, callback Callback function", "type": "method", "description": "Dynamically build a XML from javascript code and generate a dummy request for YQL"}, {"name": "queryUrl", "url": "inputEx.YQL.html#method_queryUrl", "access": "", "host": "inputEx.YQL", "params": "codeUrl Url to a YQL-execute javascript file, callback Callback function", "type": "method", "description": "Dynamically build a XML from a URL and generate a dummy request for YQL"}, {"name": "rebuildGroupOptions", "url": "inputEx.TypeField.html#method_rebuildGroupOptions", "access": "", "host": "inputEx.TypeField", "params": "", "type": "method", "description": "Regenerate the property form"}, {"name": "referenceResolver", "url": "inputEx.JsonSchema.Builder.html#property_referenceResolver", "access": "", "host": "inputEx.JsonSchema.Builder", "params": "", "type": "property", "description": ""}, {"name": "regexps", "url": "inputEx.html#property_regexps", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Associative array containing common regular expressions"}, {"name": "registerType", "url": "inputEx.html#method_registerType", "access": "", "host": "inputEx", "params": "type String used as the inputEx field type, fieldClass Field Class to register as this type, groupOptions List of inputEx field description for each option, dontInherit Won't inherhit the parent field properties if set to true", "type": "method", "description": "When you create a new inputEx Field Class, you can register it to give it a simple type.\nex: inputEx.registerType(\"color\", inputEx.ColorField);"}, {"name": "removeAccents", "url": "inputEx.html#method_removeAccents", "access": "", "host": "inputEx", "params": "str The string", "type": "method", "description": "Return a string without accent (only on lowercase)"}, {"name": "removeElement", "url": "inputEx.ListField.html#method_removeElement", "access": "", "host": "inputEx.ListField", "params": "index The index of the element to remove", "type": "method", "description": "Remove the line from the dom and the subField from the list."}, {"name": "removeItem", "url": "inputEx.widget.DDList.html#method_removeItem", "access": "", "host": "inputEx.widget.DDList", "params": "index Item index", "type": "method", "description": "Method to remove an item (_removeItem function + event firing)"}, {"name": "removeUnsavedRecord", "url": "inputEx.widget.DataTable.html#method_removeUnsavedRecord", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Remove the record that has not been saved"}, {"name": "render", "url": "inputEx.Field.html#method_render", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Default render of the dom element. Create a divEl that wraps the field."}, {"name": "render", "url": "inputEx.Form.html#method_render", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Render the group"}, {"name": "render", "url": "inputEx.Group.html#method_render", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Render the group"}, {"name": "render", "url": "inputEx.HiddenField.html#method_render", "access": "", "host": "inputEx.HiddenField", "params": "", "type": "method", "description": "Doesn't render much..."}, {"name": "render", "url": "inputEx.UrlField.html#method_render", "access": "", "host": "inputEx.UrlField", "params": "", "type": "method", "description": "Adds a img tag before the field to display the favicon"}, {"name": "render", "url": "inputEx.widget.Button.html#method_render", "access": "", "host": "inputEx.widget.Button", "params": "parentEl The DOM element where the button should be rendered", "type": "method", "description": "render the button into the parent Element"}, {"name": "render", "url": "inputEx.widget.DataTable.html#method_render", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Render the main container only (not the datatable)"}, {"name": "renderButtons", "url": "inputEx.Form.html#method_renderButtons", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Render the buttons"}, {"name": "renderCalendar", "url": "inputEx.DatePickerField.html#method_renderCalendar", "access": "", "host": "inputEx.DatePickerField", "params": "", "type": "method", "description": "Called ONCE to render the calendar lazily"}, {"name": "renderColorGrid", "url": "inputEx.ColorField.html#method_renderColorGrid", "access": "", "host": "inputEx.ColorField", "params": "", "type": "method", "description": "This creates a color grid"}, {"name": "renderComponent", "url": "inputEx.Field.html#method_renderComponent", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Render the interface component into this.divEl"}, {"name": "renderComponent", "url": "inputEx.AutoComplete.html#method_renderComponent", "access": "", "host": "inputEx.AutoComplete", "params": "", "type": "method", "description": "Render the hidden list element"}, {"name": "renderComponent", "url": "inputEx.CheckBox.html#method_renderComponent", "access": "", "host": "inputEx.CheckBox", "params": "", "type": "method", "description": "Render the checkbox and the hidden field"}, {"name": "renderComponent", "url": "inputEx.ColorField.html#method_renderComponent", "access": "", "host": "inputEx.ColorField", "params": "", "type": "method", "description": "Render the color button and the colorpicker popup"}, {"name": "renderComponent", "url": "inputEx.ColorPickerField.html#method_renderComponent", "access": "", "host": "inputEx.ColorPickerField", "params": "", "type": "method", "description": "Render the color button and the colorpicker popup"}, {"name": "renderComponent", "url": "inputEx.DSSelectField.html#method_renderComponent", "access": "", "host": "inputEx.DSSelectField", "params": "", "type": "method", "description": "Build a select tag with options"}, {"name": "renderComponent", "url": "inputEx.DatePickerField.html#method_renderComponent", "access": "", "host": "inputEx.DatePickerField", "params": "", "type": "method", "description": "Render the input field and the minical container"}, {"name": "renderComponent", "url": "inputEx.FileField.html#method_renderComponent", "access": "", "host": "inputEx.FileField", "params": "", "type": "method", "description": "Render an 'INPUT' DOM node"}, {"name": "renderComponent", "url": "inputEx.InPlaceEdit.html#method_renderComponent", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Override renderComponent to create 2 divs: the visualization one, and the edit in place form"}, {"name": "renderComponent", "url": "inputEx.ListField.html#method_renderComponent", "access": "", "host": "inputEx.ListField", "params": "", "type": "method", "description": "Render the addButton"}, {"name": "renderComponent", "url": "inputEx.MapField.html#method_renderComponent", "access": "", "host": "inputEx.MapField", "params": "", "type": "method", "description": "Render the field using the appropriate mapping function"}, {"name": "renderComponent", "url": "inputEx.MenuField.html#method_renderComponent", "access": "", "host": "inputEx.MenuField", "params": "", "type": "method", "description": "Build a menu"}, {"name": "renderComponent", "url": "inputEx.MultiAutoComplete.html#method_renderComponent", "access": "", "host": "inputEx.MultiAutoComplete", "params": "", "type": "method", "description": "Build the DDList"}, {"name": "renderComponent", "url": "inputEx.MultiSelectField.html#method_renderComponent", "access": "", "host": "inputEx.MultiSelectField", "params": "", "type": "method", "description": "Build the DDList"}, {"name": "renderComponent", "url": "inputEx.PasswordField.html#method_renderComponent", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "Set the el type to 'password'"}, {"name": "renderComponent", "url": "inputEx.RTEField.html#method_renderComponent", "access": "", "host": "inputEx.RTEField", "params": "", "type": "method", "description": "Render the field using the YUI Editor widget"}, {"name": "renderComponent", "url": "inputEx.RadioField.html#method_renderComponent", "access": "", "host": "inputEx.RadioField", "params": "", "type": "method", "description": "Render the checkbox and the hidden field"}, {"name": "renderComponent", "url": "inputEx.SelectField.html#method_renderComponent", "access": "", "host": "inputEx.SelectField", "params": "", "type": "method", "description": "Build a select tag with options"}, {"name": "renderComponent", "url": "inputEx.SerializeField.html#method_renderComponent", "access": "", "host": "inputEx.SerializeField", "params": "", "type": "method", "description": "Render the subfield"}, {"name": "renderComponent", "url": "inputEx.SliderField.html#method_renderComponent", "access": "", "host": "inputEx.SliderField", "params": "", "type": "method", "description": "render a slider widget"}, {"name": "renderComponent", "url": "inputEx.StringField.html#method_renderComponent", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Render an 'INPUT' DOM node"}, {"name": "renderComponent", "url": "inputEx.Textarea.html#method_renderComponent", "access": "", "host": "inputEx.Textarea", "params": "", "type": "method", "description": "Render an 'INPUT' DOM node"}, {"name": "renderComponent", "url": "inputEx.TreeField.html#method_renderComponent", "access": "", "host": "inputEx.TreeField", "params": "", "type": "method", "description": "Render the addButton and childContainer"}, {"name": "renderComponent", "url": "inputEx.TypeField.html#method_renderComponent", "access": "", "host": "inputEx.TypeField", "params": "", "type": "method", "description": "Render the TypeField: create a button with a property panel that contains the field options"}, {"name": "renderDatatable", "url": "inputEx.widget.DataTable.html#method_renderDatatable", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Render the datatable"}, {"name": "renderDialog", "url": "inputEx.widget.DataTable.html#method_renderDialog", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Render the dialog for row edition"}, {"name": "renderEditor", "url": "inputEx.InPlaceEdit.html#method_renderEditor", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Render the editor"}, {"name": "renderField", "url": "inputEx.Group.html#method_renderField", "access": "", "host": "inputEx.Group", "params": "fieldOptions The field properties as required by the inputEx() method", "type": "method", "description": "Instanciate one field given its parameters, type or fieldClass"}, {"name": "renderField", "url": "inputEx.CombineField.html#method_renderField", "access": "", "host": "inputEx.CombineField", "params": "fieldOptions The field properties as required by inputEx()", "type": "method", "description": "Override to force required option on each subfield"}, {"name": "renderFields", "url": "inputEx.Group.html#method_renderFields", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Render all the fields.\nWe use the parentEl so that inputEx.Form can append them to the FORM tag"}, {"name": "renderFields", "url": "inputEx.CombineField.html#method_renderFields", "access": "", "host": "inputEx.CombineField", "params": "", "type": "method", "description": "Render the subfields"}, {"name": "renderFields", "url": "inputEx.Lens.html#method_renderFields", "access": "", "host": "inputEx.Lens", "params": "", "type": "method", "description": "Render each the fields in each div which class attribute is \"field-\"+fieldName"}, {"name": "renderForm", "url": "inputEx.widget.Dialog.html#method_renderForm", "access": "", "host": "inputEx.widget.Dialog", "params": "", "type": "method", "description": "Render the form"}, {"name": "renderForm", "url": "inputEx.widget.CellEditor.html#method_renderForm", "access": "", "host": "inputEx.widget.CellEditor", "params": "", "type": "method", "description": "Render the inputEx field editor"}, {"name": "renderMask", "url": "inputEx.Form.html#method_renderMask", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Create a Mask over the form"}, {"name": "renderShowHideColumnsDlg", "url": "inputEx.widget.DataTable.html#method_renderShowHideColumnsDlg", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Render the dialog (+link) to show/hide columns"}, {"name": "renderSubField", "url": "inputEx.ListField.html#method_renderSubField", "access": "", "host": "inputEx.ListField", "params": "The initial value of the subfield to create", "type": "method", "description": "Adds a new line to the List Field"}, {"name": "renderSubField", "url": "inputEx.TreeField.html#method_renderSubField", "access": "", "host": "inputEx.TreeField", "params": "value Value of the subelement", "type": "method", "description": "Adds a new line to the List Field"}, {"name": "renderVisu", "url": "inputEx.visus.html#method_renderVisu", "access": "", "host": "inputEx.visus", "params": "visuOptions The visu parameters object with: visuType: 'myType', ...args..., data The input data to send to the template, parentEl optional Set the result as content of parentEl", "type": "method", "description": "Render 'data' using a visualization function described by 'visuOptions'"}, {"name": "renderVisuDiv", "url": "inputEx.InPlaceEdit.html#method_renderVisuDiv", "access": "", "host": "inputEx.InPlaceEdit", "params": "", "type": "method", "description": "Create the div that will contain the visualization of the value"}, {"name": "resetForm", "url": "inputEx.widget.CellEditor.html#method_resetForm", "access": "", "host": "inputEx.widget.CellEditor", "params": "", "type": "method", "description": "Resets CellEditor UI to initial state."}, {"name": "REST", "url": "inputEx.RPC.Transport.html#method_REST", "access": "", "host": "inputEx.RPC.Transport", "params": "r Object specifying target, callback and data attributes", "type": "method", "description": "Build an ajax request using the right HTTP method"}, {"name": "runAction", "url": "inputEx.Group.html#method_runAction", "access": "", "host": "inputEx.Group", "params": "action inputEx action object, triggerValue The value that triggered the interaction", "type": "method", "description": "Run an action (for interactions)"}, {"name": "runFieldsInteractions", "url": "inputEx.Group.html#method_runFieldsInteractions", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Run the interactions for all fields"}, {"name": "runInteractions", "url": "inputEx.Group.html#method_runInteractions", "access": "", "host": "inputEx.Group", "params": "fieldInstance Field that just changed, fieldValue Field value", "type": "method", "description": "Run the interactions for the given field instance"}, {"name": "save", "url": "inputEx.widget.CellEditor.html#method_save", "access": "", "host": "inputEx.widget.CellEditor", "params": "", "type": "method", "description": "When clicking the save button but also when clicking out of the cell"}, {"name": "schemaIdentifierMap", "url": "inputEx.JsonSchema.Builder.html#property_schemaIdentifierMap", "access": "", "host": "inputEx.JsonSchema.Builder", "params": "", "type": "property", "description": "key is reference, value is schema"}, {"name": "schemaToInputEx", "url": "inputEx.JsonSchema.Builder.html#method_schemaToInputEx", "access": "", "host": "inputEx.JsonSchema.Builder", "params": "p ", "type": "method", "description": "Convert a JSON schema to inputEx JSON"}, {"name": "schemaToParamMap", "url": "inputEx.JsonSchema.Builder.html#property_schemaToParamMap", "access": "", "host": "inputEx.JsonSchema.Builder", "params": "", "type": "property", "description": "specify how other schema properties are mapped to inputParam properties"}, {"name": "sendDataRequest", "url": "inputEx.DSSelectField.html#method_sendDataRequest", "access": "", "host": "inputEx.DSSelectField", "params": "", "type": "method", "description": "Send the datasource request"}, {"name": "serialize", "url": "inputEx.SerializeField.html#method_serialize", "access": "", "host": "inputEx.SerializeField", "params": "", "type": "method", "description": "Use the configured serializer"}, {"name": "serialize", "url": "inputEx.SerializeField.serializers.html#method_serialize", "access": "", "host": "inputEx.SerializeField.serializers", "params": "", "type": "method", "description": "serialize to JSON"}, {"name": "serialize", "url": "inputEx.RPC.Envelope.URL.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.URL", "params": "", "type": "method", "description": "Serialize data into URI encoded parameters"}, {"name": "serialize", "url": "inputEx.RPC.Envelope.PATH.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.PATH", "params": "", "type": "method", "description": "serialize"}, {"name": "serialize", "url": "inputEx.RPC.Envelope.JSON.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.JSON", "params": "", "type": "method", "description": "serialize"}, {"name": "serialize", "url": "inputEx.RPC.Envelope.JSON-RPC-1.0.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-1.0", "params": "", "type": "method", "description": "serialize"}, {"name": "serialize", "url": "inputEx.RPC.Envelope.JSON-RPC-2.0.html#method_serialize", "access": "", "host": "inputEx.RPC.Envelope.JSON-RPC-2.0", "params": "", "type": "method", "description": "serialize"}, {"name": "setCapsLockWarning", "url": "inputEx.PasswordField.html#method_setCapsLockWarning", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "Show or hide the caps lock warning given the status"}, {"name": "setClassFromState", "url": "inputEx.Field.html#method_setClassFromState", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Set the styles for valid/invalide state"}, {"name": "setClassFromState", "url": "inputEx.StringField.html#method_setClassFromState", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Display the type invite after setting the class"}, {"name": "setColumnDefs", "url": "inputEx.widget.DataTable.html#method_setColumnDefs", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Set the column definitions, create them if none from the fields, adds the modify and delete buttons"}, {"name": "setColumnDefs", "url": "inputEx.widget.dtInPlaceEdit.html#method_setColumnDefs", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "Modify the column definitions to add the inputEx CellEditor"}, {"name": "setConfirmationField", "url": "inputEx.PasswordField.html#method_setConfirmationField", "access": "", "host": "inputEx.PasswordField", "params": "passwordField The target password field", "type": "method", "description": "Set this field as the confirmation for the targeted password field:"}, {"name": "setDefaultColors", "url": "inputEx.ColorField.html#method_setDefaultColors", "access": "", "host": "inputEx.ColorField", "params": "index Index of the palette to use", "type": "method", "description": "Set the colors to set in the picker"}, {"name": "setErrors", "url": "inputEx.Group.html#method_setErrors", "access": "", "host": "inputEx.Group", "params": "errors Hash object containing error messages as Strings referenced by the field name, or array [ [\"fieldName\", \"Message\"], ...]", "type": "method", "description": "Write error messages for fields as specified in the hash"}, {"name": "setOptions", "url": "inputEx.Field.html#method_setOptions", "access": "", "host": "inputEx.Field", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.Form.html#method_setOptions", "access": "", "host": "inputEx.Form", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds buttons and set ajax default parameters"}, {"name": "setOptions", "url": "inputEx.Group.html#method_setOptions", "access": "", "host": "inputEx.Group", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds some options: legend, collapsible, fields..."}, {"name": "setOptions", "url": "inputEx.AutoComplete.html#method_setOptions", "access": "", "host": "inputEx.AutoComplete", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds autocomplete options"}, {"name": "setOptions", "url": "inputEx.CheckBox.html#method_setOptions", "access": "", "host": "inputEx.CheckBox", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds the CheckBox specific options"}, {"name": "setOptions", "url": "inputEx.ColorField.html#method_setOptions", "access": "", "host": "inputEx.ColorField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds the 'inputEx-ColorField' default className"}, {"name": "setOptions", "url": "inputEx.ColorPickerField.html#method_setOptions", "access": "", "host": "inputEx.ColorPickerField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds the 'inputEx-ColorPickerField' default className"}, {"name": "setOptions", "url": "inputEx.CombineField.html#method_setOptions", "access": "", "host": "inputEx.CombineField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.DSSelectField.html#method_setOptions", "access": "", "host": "inputEx.DSSelectField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Setup the additional options for selectfield"}, {"name": "setOptions", "url": "inputEx.DateField.html#method_setOptions", "access": "", "host": "inputEx.DateField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds the 'inputEx-DateField' default className"}, {"name": "setOptions", "url": "inputEx.DatePickerField.html#method_setOptions", "access": "", "host": "inputEx.DatePickerField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default date picker CSS classes"}, {"name": "setOptions", "url": "inputEx.EmailField.html#method_setOptions", "access": "", "host": "inputEx.EmailField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the email regexp and invalid message"}, {"name": "setOptions", "url": "inputEx.FileField.html#method_setOptions", "access": "", "host": "inputEx.FileField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds size and accept options"}, {"name": "setOptions", "url": "inputEx.IPv4Field.html#method_setOptions", "access": "", "host": "inputEx.IPv4Field", "params": "options Options object as passed to the constructor", "type": "method", "description": "set IPv4 regexp and invalid string"}, {"name": "setOptions", "url": "inputEx.InPlaceEdit.html#method_setOptions", "access": "", "host": "inputEx.InPlaceEdit", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.IntegerField.html#method_setOptions", "access": "", "host": "inputEx.IntegerField", "params": "options ", "type": "method", "description": "Adds the negative, min, and max options"}, {"name": "setOptions", "url": "inputEx.KeyOpValueField.html#method_setOptions", "access": "", "host": "inputEx.KeyOpValueField", "params": "", "type": "method", "description": "Setup the options.fields from the availableFields option"}, {"name": "setOptions", "url": "inputEx.KeyValueField.html#method_setOptions", "access": "", "host": "inputEx.KeyValueField", "params": "", "type": "method", "description": "Setup the options.fields from the availableFields option"}, {"name": "setOptions", "url": "inputEx.Lens.html#method_setOptions", "access": "", "host": "inputEx.Lens", "params": "", "type": "method", "description": "Set additional options"}, {"name": "setOptions", "url": "inputEx.ListField.html#method_setOptions", "access": "", "host": "inputEx.ListField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the ListField classname"}, {"name": "setOptions", "url": "inputEx.MapField.html#method_setOptions", "access": "", "host": "inputEx.MapField", "params": "", "type": "method", "description": "Adds the 'inputEx-MapField' default className"}, {"name": "setOptions", "url": "inputEx.MenuField.html#method_setOptions", "access": "", "host": "inputEx.MenuField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.MultiAutoComplete.html#method_setOptions", "access": "", "host": "inputEx.MultiAutoComplete", "params": "", "type": "method", "description": "Additional options"}, {"name": "setOptions", "url": "inputEx.NumberField.html#method_setOptions", "access": "", "host": "inputEx.NumberField", "params": "options ", "type": "method", "description": "Adds the min, and max options"}, {"name": "setOptions", "url": "inputEx.PasswordField.html#method_setOptions", "access": "", "host": "inputEx.PasswordField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Add the password regexp, strengthIndicator, capsLockWarning"}, {"name": "setOptions", "url": "inputEx.RTEField.html#method_setOptions", "access": "", "host": "inputEx.RTEField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.RadioField.html#method_setOptions", "access": "", "host": "inputEx.RadioField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds the Radio button specific options"}, {"name": "setOptions", "url": "inputEx.SelectField.html#method_setOptions", "access": "", "host": "inputEx.SelectField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.SerializeField.html#method_setOptions", "access": "", "host": "inputEx.SerializeField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds some options: subfield & serializer"}, {"name": "setOptions", "url": "inputEx.SliderField.html#method_setOptions", "access": "", "host": "inputEx.SliderField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the classname to 'inputEx-SliderField'"}, {"name": "setOptions", "url": "inputEx.StringField.html#method_setOptions", "access": "", "host": "inputEx.StringField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.Textarea.html#method_setOptions", "access": "", "host": "inputEx.Textarea", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the specific options (rows and cols)"}, {"name": "setOptions", "url": "inputEx.TimeIntervalField.html#method_setOptions", "access": "", "host": "inputEx.TimeIntervalField", "params": "", "type": "method", "description": "Additional options"}, {"name": "setOptions", "url": "inputEx.UneditableField.html#method_setOptions", "access": "", "host": "inputEx.UneditableField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Set the default values of the options"}, {"name": "setOptions", "url": "inputEx.UrlField.html#method_setOptions", "access": "", "host": "inputEx.UrlField", "params": "options Options object as passed to the constructor", "type": "method", "description": "Adds the invalid Url message"}, {"name": "setOptions", "url": "inputEx.VectorField.html#method_setOptions", "access": "", "host": "inputEx.VectorField", "params": "", "type": "method", "description": "Additional options for VectorField (dimension, size)"}, {"name": "setOptions", "url": "inputEx.widget.Button.html#method_setOptions", "access": "", "host": "inputEx.widget.Button", "params": "", "type": "method", "description": "set the default options"}, {"name": "setOptions", "url": "inputEx.widget.DataTable.html#method_setOptions", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Set the options"}, {"name": "setOptions", "url": "inputEx.widget.DDList.html#method_setOptions", "access": "", "host": "inputEx.widget.DDList", "params": "", "type": "method", "description": "Set the options"}, {"name": "setOptions", "url": "inputEx.widget.dtInPlaceEdit.html#method_setOptions", "access": "", "host": "inputEx.widget.dtInPlaceEdit", "params": "", "type": "method", "description": "Additional options"}, {"name": "setParentField", "url": "inputEx.Field.html#method_setParentField", "access": "", "host": "inputEx.Field", "params": "parentField The parent field instance", "type": "method", "description": "Set the parentField.\nGenerally use by composable fields (ie. Group,Form,ListField,CombineField,...}"}, {"name": "setValue", "url": "inputEx.Field.html#method_setValue", "access": "", "host": "inputEx.Field", "params": "value The new value, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Function to set the value"}, {"name": "setValue", "url": "inputEx.Group.html#method_setValue", "access": "", "host": "inputEx.Group", "params": "value The group value, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the values of each field from a key/value hash object"}, {"name": "setValue", "url": "inputEx.AutoComplete.html#method_setValue", "access": "", "host": "inputEx.AutoComplete", "params": "value Value to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.CheckBox.html#method_setValue", "access": "", "host": "inputEx.CheckBox", "params": "value The value schould be one of [checkedValue,uncheckedValue], [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value of the checkedbox"}, {"name": "setValue", "url": "inputEx.ColorField.html#method_setValue", "access": "", "host": "inputEx.ColorField", "params": "value Color to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.ColorPickerField.html#method_setValue", "access": "", "host": "inputEx.ColorPickerField", "params": "value Color to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.CombineField.html#method_setValue", "access": "", "host": "inputEx.CombineField", "params": "values [value1, value2, ...], [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.DateField.html#method_setValue", "access": "", "host": "inputEx.DateField", "params": "val Date to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Format the date according to options.dateFormat"}, {"name": "setValue", "url": "inputEx.DateSplitField.html#method_setValue", "access": "", "host": "inputEx.DateSplitField", "params": "val Date to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value. Format the date according to options.dateFormat"}, {"name": "setValue", "url": "inputEx.DateTimeField.html#method_setValue", "access": "", "host": "inputEx.DateTimeField", "params": "val Date to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value of both subfields"}, {"name": "setValue", "url": "inputEx.HiddenField.html#method_setValue", "access": "", "host": "inputEx.HiddenField", "params": "val The value to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Stores the value in a local variable"}, {"name": "setValue", "url": "inputEx.InPlaceEdit.html#method_setValue", "access": "", "host": "inputEx.InPlaceEdit", "params": "value The value to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value and update the display"}, {"name": "setValue", "url": "inputEx.ListField.html#method_setValue", "access": "", "host": "inputEx.ListField", "params": "value The list of values to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value of all the subfields"}, {"name": "setValue", "url": "inputEx.MapField.html#method_setValue", "access": "", "host": "inputEx.MapField", "params": "", "type": "method", "description": "set the value: {lat: 45.23234, lon: 2.34456, uzoom: 6, nzoom: 6}"}, {"name": "setValue", "url": "inputEx.MultiAutoComplete.html#method_setValue", "access": "", "host": "inputEx.MultiAutoComplete", "params": "value The value to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.MultiSelectField.html#method_setValue", "access": "", "host": "inputEx.MultiSelectField", "params": "value The value to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value of the list"}, {"name": "setValue", "url": "inputEx.RTEField.html#method_setValue", "access": "", "host": "inputEx.RTEField", "params": "value The html string, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the html content"}, {"name": "setValue", "url": "inputEx.RadioField.html#method_setValue", "access": "", "host": "inputEx.RadioField", "params": "value The value schould be one of this.options.values (which defaults to this.options.choices if missing) if allowAny option not true., [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value of the checkedbox"}, {"name": "setValue", "url": "inputEx.SelectField.html#method_setValue", "access": "", "host": "inputEx.SelectField", "params": "value The value to set, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.SerializeField.html#method_setValue", "access": "", "host": "inputEx.SerializeField", "params": "", "type": "method", "description": "Use the deserialize method and set the value of the subField"}, {"name": "setValue", "url": "inputEx.SliderField.html#method_setValue", "access": "", "host": "inputEx.SliderField", "params": "value The new value, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Function to set the value"}, {"name": "setValue", "url": "inputEx.StringField.html#method_setValue", "access": "", "host": "inputEx.StringField", "params": "value The new value, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Function to set the value"}, {"name": "setValue", "url": "inputEx.TimeField.html#method_setValue", "access": "", "host": "inputEx.TimeField", "params": "str Hour string (format HH:MM:SS), [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.TimeIntervalField.html#method_setValue", "access": "", "host": "inputEx.TimeIntervalField", "params": "val The time interval integer (with the given unit), [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value of both subfields"}, {"name": "setValue", "url": "inputEx.TreeField.html#method_setValue", "access": "", "host": "inputEx.TreeField", "params": "obj The tree object, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value"}, {"name": "setValue", "url": "inputEx.TypeField.html#method_setValue", "access": "", "host": "inputEx.TypeField", "params": "value Type object configuration, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value of the label, typeProperties and group"}, {"name": "setValue", "url": "inputEx.UneditableField.html#method_setValue", "access": "", "host": "inputEx.UneditableField", "params": "val The value that will be sent to the visu, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Store the value and update the visu"}, {"name": "setValue", "url": "inputEx.UpperCaseField.html#method_setValue", "access": "", "host": "inputEx.UpperCaseField", "params": "val The string, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Set the value and call toUpperCase"}, {"name": "setValue", "url": "inputEx.widget.Dialog.html#method_setValue", "access": "", "host": "inputEx.widget.Dialog", "params": "value The value to set on the field, [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)", "type": "method", "description": "Shortcut to set value"}, {"name": "setValue", "url": "inputEx.widget.DDList.html#method_setValue", "access": "", "host": "inputEx.widget.DDList", "params": "value list of values", "type": "method", "description": "Set the value of the list"}, {"name": "show", "url": "inputEx.Field.html#method_show", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Show the field"}, {"name": "showMask", "url": "inputEx.Form.html#method_showMask", "access": "", "host": "inputEx.Form", "params": "", "type": "method", "description": "Show the form mask"}, {"name": "showTableOptions", "url": "inputEx.widget.DataTable.html#method_showTableOptions", "access": "", "host": "inputEx.widget.DataTable", "params": "", "type": "method", "description": "Display the dialog to show/hide fields"}, {"name": "sn", "url": "inputEx.html#method_sn", "access": "", "host": "inputEx", "params": "el The element to set attributes to, ) , styleAttributes Same thing for style attributes. Please use camelCase for style attributes (ex: backgroundColor for 'background-color')", "type": "method", "description": "Helper function to set DOM node attributes and style attributes."}, {"name": "spacerUrl", "url": "inputEx.html#property_spacerUrl", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Url to the spacer image. This url schould be changed according to your project directories"}, {"name": "startDrag", "url": "inputEx.widget.DDListItem.html#method_startDrag", "access": "", "host": "inputEx.widget.DDListItem", "params": "", "type": "method", "description": "Create the proxy element"}, {"name": "stateEmpty", "url": "inputEx.html#property_stateEmpty", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Field empty state constant"}, {"name": "stateInvalid", "url": "inputEx.html#property_stateInvalid", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Field invalid state constant"}, {"name": "stateRequired", "url": "inputEx.html#property_stateRequired", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Field required state constant"}, {"name": "stateValid", "url": "inputEx.html#property_stateValid", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Field valid state constant"}, {"name": "subFields", "url": "inputEx.ListField.html#property_subFields", "access": "", "host": "inputEx.ListField", "params": "", "type": "property", "description": "List of all the subField instances"}, {"name": "submitEvent", "url": "inputEx.widget.Button.html#event_submitEvent", "access": "", "host": "inputEx.widget.Button", "params": "", "type": "event", "description": "Submit Event facade (YUI custom event)"}, {"name": "TCP/IP", "url": "inputEx.RPC.Transport.html#method_TCP/IP", "access": "", "host": "inputEx.RPC.Transport", "params": "", "type": "method", "description": "NOT implemented"}, {"name": "TimeRange", "url": "inputEx.TimeIntervalField.html#method_TimeRange", "access": "", "host": "inputEx.TimeIntervalField", "params": "", "type": "method", "description": "Tweaking the TimeField to make a Time Range (two TimeFields)\n- doesn't show seconds\n- Minutes by group of 5"}, {"name": "toggleCollapse", "url": "inputEx.Group.html#method_toggleCollapse", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Toggle the collapse state"}, {"name": "toogleEndMinutes", "url": "inputEx.TimeIntervalField.html#method_toogleEndMinutes", "access": "", "host": "inputEx.TimeIntervalField", "params": "", "type": "method", "description": "Disable the last selector and set it to \"00\" when the third one's value is 24\n(it will be inccorect to have an end superior to 24:00)"}, {"name": "trimpath", "url": "inputEx.visus.html#method_trimpath", "access": "", "host": "inputEx.visus", "params": "", "type": "method", "description": "Use the trimpath-template engine\nsee http://code.google.com/p/trimpath/wiki/JavaScriptTemplates for syntax\noptions = {visuType: 'trimpath', template: \"String template\"}"}, {"name": "typeClasses", "url": "inputEx.html#property_typeClasses", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "Hash between inputEx types and classes (ex: inputEx.typeClasses.color = inputEx.ColorField)
    \nPlease register the types with the registerType method"}, {"name": "updatedEvt", "url": "inputEx.Field.html#event_updatedEvt", "access": "", "host": "inputEx.Field", "params": "value The new value of the field", "type": "event", "description": "Event fired after the user changed the value of the field."}, {"name": "updateFieldValue", "url": "inputEx.TypeField.html#method_updateFieldValue", "access": "", "host": "inputEx.TypeField", "params": "", "type": "method", "description": "Update the fieldValue"}, {"name": "updateItem", "url": "inputEx.widget.DDList.html#method_updateItem", "access": "", "host": "inputEx.widget.DDList", "params": "index Item index, value New value", "type": "method", "description": "Update the value of a given item"}, {"name": "updateStrengthIndicator", "url": "inputEx.PasswordField.html#method_updateStrengthIndicator", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "Update the strength indicator (called by onKeyPress)"}, {"name": "validate", "url": "inputEx.Field.html#method_validate", "access": "", "host": "inputEx.Field", "params": "", "type": "method", "description": "Validation of the field"}, {"name": "validate", "url": "inputEx.Group.html#method_validate", "access": "", "host": "inputEx.Group", "params": "", "type": "method", "description": "Validate each field"}, {"name": "validate", "url": "inputEx.DateField.html#method_validate", "access": "", "host": "inputEx.DateField", "params": "", "type": "method", "description": "Specific Date validation depending of the 'format' option"}, {"name": "validate", "url": "inputEx.IntegerField.html#method_validate", "access": "", "host": "inputEx.IntegerField", "params": "", "type": "method", "description": "Validate if is a number"}, {"name": "validate", "url": "inputEx.ListField.html#method_validate", "access": "", "host": "inputEx.ListField", "params": "", "type": "method", "description": "Validate each field"}, {"name": "validate", "url": "inputEx.MultiAutoComplete.html#method_validate", "access": "", "host": "inputEx.MultiAutoComplete", "params": "", "type": "method", "description": "TODO : how to validate ?"}, {"name": "validate", "url": "inputEx.NumberField.html#method_validate", "access": "", "host": "inputEx.NumberField", "params": "", "type": "method", "description": "Check if the entered number is a float"}, {"name": "validate", "url": "inputEx.PasswordField.html#method_validate", "access": "", "host": "inputEx.PasswordField", "params": "", "type": "method", "description": "The validation adds the confirmation password field support"}, {"name": "validate", "url": "inputEx.StringField.html#method_validate", "access": "", "host": "inputEx.StringField", "params": "", "type": "method", "description": "Uses the optional regexp to validate the field value"}, {"name": "validate", "url": "inputEx.Textarea.html#method_validate", "access": "", "host": "inputEx.Textarea", "params": "", "type": "method", "description": "Uses the optional regexp to validate the field value"}, {"name": "wait_create", "url": "inputEx.MapField.html#method_wait_create", "access": "", "host": "inputEx.MapField", "params": "", "type": "method", "description": "This will wait until the DOM element appears before completion of map rendering"}, {"name": "widget", "url": "inputEx.html#property_widget", "access": "", "host": "inputEx", "params": "", "type": "property", "description": "inputEx widget namespace"}, {"name": "xml", "url": "inputEx.SerializeField.serializers.html#property_xml", "access": "", "host": "inputEx.SerializeField.serializers", "params": "", "type": "property", "description": "XML Serializer (uses the ObjTree library)"}, {"name": "YAHOO custom event fired when an item is removed", "url": "inputEx.widget.DDList.html#event_YAHOO custom event fired when an item is removed", "access": "", "host": "inputEx.widget.DDList", "params": "itemValue value of the removed item", "type": "event", "description": ""}, {"name": "YAHOO custom event fired when the list is reordered", "url": "inputEx.widget.DDList.html#event_YAHOO custom event fired when the list is reordered", "access": "", "host": "inputEx.widget.DDList", "params": "", "type": "event", "description": ""}] \ No newline at end of file diff --git a/lib/inputex/api/inputEx.AutoComplete.html b/lib/inputex/api/inputEx.AutoComplete.html index 1857f90d..b106e25a 100644 --- a/lib/inputex/api/inputEx.AutoComplete.html +++ b/lib/inputex/api/inputEx.AutoComplete.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.AutoComplete @@ -381,7 +381,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -483,6 +483,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -522,6 +525,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -664,6 +670,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -676,6 +684,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -691,6 +700,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.CheckBox.html b/lib/inputex/api/inputEx.CheckBox.html index 4a97dce8..5145be51 100644 --- a/lib/inputex/api/inputEx.CheckBox.html +++ b/lib/inputex/api/inputEx.CheckBox.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.CheckBox @@ -350,7 +350,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -452,6 +452,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -491,6 +494,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -590,6 +596,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -602,6 +610,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -617,6 +626,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.ColorField.html b/lib/inputex/api/inputEx.ColorField.html index e6f7f147..0ba4e292 100644 --- a/lib/inputex/api/inputEx.ColorField.html +++ b/lib/inputex/api/inputEx.ColorField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.ColorField @@ -398,7 +398,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -500,6 +500,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -539,6 +542,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -638,6 +644,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -650,6 +658,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -665,6 +674,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.ColorPickerField.html b/lib/inputex/api/inputEx.ColorPickerField.html index 3aa273d5..ea6f70ed 100644 --- a/lib/inputex/api/inputEx.ColorPickerField.html +++ b/lib/inputex/api/inputEx.ColorPickerField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.ColorPickerField @@ -216,7 +216,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -318,6 +318,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -357,6 +360,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -456,6 +462,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -468,6 +476,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -483,6 +492,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.CombineField.html b/lib/inputex/api/inputEx.CombineField.html index 43aa48f8..58c6e1cf 100644 --- a/lib/inputex/api/inputEx.CombineField.html +++ b/lib/inputex/api/inputEx.CombineField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.CombineField @@ -283,7 +283,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -385,6 +385,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -424,6 +427,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -446,6 +452,9 @@

    Methods inherited from close, + + destroy, + disable, @@ -458,6 +467,9 @@

    Methods inherited from getFieldByName, + + getFieldsStates, + getValue, @@ -590,6 +602,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -602,6 +616,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -617,6 +632,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.DSSelectField.html b/lib/inputex/api/inputEx.DSSelectField.html index ee317dfd..470bb892 100644 --- a/lib/inputex/api/inputEx.DSSelectField.html +++ b/lib/inputex/api/inputEx.DSSelectField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.DSSelectField @@ -304,7 +304,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -352,6 +352,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -391,6 +394,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -521,6 +527,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -533,6 +541,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -548,6 +557,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.DateField.html b/lib/inputex/api/inputEx.DateField.html index 5978c8b7..4f27d230 100644 --- a/lib/inputex/api/inputEx.DateField.html +++ b/lib/inputex/api/inputEx.DateField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.DateField @@ -269,7 +269,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -401,6 +401,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -440,6 +443,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -582,6 +588,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -594,6 +602,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -609,6 +618,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.DatePickerField.html b/lib/inputex/api/inputEx.DatePickerField.html index 480f12b9..8ac7caef 100644 --- a/lib/inputex/api/inputEx.DatePickerField.html +++ b/lib/inputex/api/inputEx.DatePickerField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.DatePickerField @@ -118,6 +118,96 @@

    Properties inherited from

    Methods

    +
    +

    + beforeShowOverlay

    +
    + + + + + void + beforeShowOverlay + ( + ) + + +
    + Select the right date and display the right page on calendar, when the field has a value +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + disable

    +
    + + + + + void + disable + ( + ) + + +
    + Disable the field +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + enable

    +
    + + + + + void + enable + ( + ) + + +
    + Enable the field +
    + +
    + + + + + + +
    + +
    +
    +

    renderCalendar

    @@ -209,7 +299,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -282,6 +372,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -321,6 +414,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -463,6 +559,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -475,6 +573,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -490,6 +589,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.DateSelectMonthField.html b/lib/inputex/api/inputEx.DateSelectMonthField.html index 12506702..29ecb911 100644 --- a/lib/inputex/api/inputEx.DateSelectMonthField.html +++ b/lib/inputex/api/inputEx.DateSelectMonthField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.DateSplitField.html b/lib/inputex/api/inputEx.DateSplitField.html index a68586b0..1ced7b00 100644 --- a/lib/inputex/api/inputEx.DateSplitField.html +++ b/lib/inputex/api/inputEx.DateSplitField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.DateTimeField.html b/lib/inputex/api/inputEx.DateTimeField.html index 8bc795ce..a32cab00 100644 --- a/lib/inputex/api/inputEx.DateTimeField.html +++ b/lib/inputex/api/inputEx.DateTimeField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.EmailField.html b/lib/inputex/api/inputEx.EmailField.html index b0040208..d81dde3c 100644 --- a/lib/inputex/api/inputEx.EmailField.html +++ b/lib/inputex/api/inputEx.EmailField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.EmailField @@ -183,7 +183,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -231,6 +231,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -270,6 +273,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -412,6 +418,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -424,6 +432,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -439,6 +448,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.Field.html b/lib/inputex/api/inputEx.Field.html index 4dc1e9d3..7c6ef0eb 100644 --- a/lib/inputex/api/inputEx.Field.html +++ b/lib/inputex/api/inputEx.Field.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.Field @@ -70,6 +70,9 @@

    inputEx.VectorField + + inputEx.SerializeField + inputEx.RadioField @@ -490,6 +493,36 @@

    +

    + +
    +
    +
    +
    +

    + getParentField

    +
    + + + + + inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField + getParentField + ( + ) + + +
    + Return the parent field instance +
    + +
    + + + + + +
    @@ -942,7 +975,52 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor + + + + + + + +

    + +

    +
    +
    +
    +

    + setParentField

    +
    + + + + + void + setParentField + ( + + + parentField + + + ) + + +
    + Set the parentField. +Generally use by composable fields (ie. Group,Form,ListField,CombineField,...} +
    + +
    diff --git a/lib/inputex/api/inputEx.FileField.html b/lib/inputex/api/inputEx.FileField.html index 03498621..859ed6e1 100644 --- a/lib/inputex/api/inputEx.FileField.html +++ b/lib/inputex/api/inputEx.FileField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.FileField @@ -178,7 +178,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -226,6 +226,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -265,6 +268,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -364,6 +370,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -376,6 +384,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -391,6 +400,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.Form.html b/lib/inputex/api/inputEx.Form.html index e4cb0a16..a72aa0e7 100644 --- a/lib/inputex/api/inputEx.Form.html +++ b/lib/inputex/api/inputEx.Form.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.Form @@ -145,6 +145,36 @@

    +

    + +
    +
    +
    +
    +

    + destroy

    +
    + + + + + void + destroy + ( + ) + + +
    + Purge all event listeners and remove the component from the dom +
    + +
    + + + + + +
    @@ -436,7 +466,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -514,6 +544,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -553,6 +586,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -575,6 +611,9 @@

    Methods inherited from close, + + destroy, + disable, @@ -587,6 +626,9 @@

    Methods inherited from getFieldByName, + + getFieldsStates, + getValue, @@ -719,6 +761,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -731,6 +775,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -746,6 +791,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.Group.html b/lib/inputex/api/inputEx.Group.html index eb2bcb67..356e608c 100644 --- a/lib/inputex/api/inputEx.Group.html +++ b/lib/inputex/api/inputEx.Group.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.Group @@ -97,7 +97,7 @@

    Constructor

    <Object} options The following options are added for Groups and subclasses:
      -
    • fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, inputParams: {inputparams object} > +
    • fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, ... >
    • legend: The legend for the fieldset (default is an empty string)
    • @@ -206,6 +206,36 @@

      +

    + +
    +
    + +
    +

    + destroy

    +
    + + + + + void + destroy + ( + ) + + +
    + Purge all event listeners and remove the component from the dom +
    + +
    + + + + + +
    @@ -340,6 +370,36 @@

    +

    + + +
    + +
    +

    + getFieldsStates

    +
    + + + + + void + getFieldsStates + ( + ) + + +
    + Alternative method to validate for advanced error handling +
    + +
    + + + + + +
    @@ -777,7 +837,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -939,6 +999,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -978,6 +1041,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -1077,6 +1143,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -1089,6 +1157,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -1104,6 +1173,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.HiddenField.html b/lib/inputex/api/inputEx.HiddenField.html index 18166987..c1b09af0 100644 --- a/lib/inputex/api/inputEx.HiddenField.html +++ b/lib/inputex/api/inputEx.HiddenField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.IPv4Field.html b/lib/inputex/api/inputEx.IPv4Field.html index 20a15e3c..5e7ad2b7 100644 --- a/lib/inputex/api/inputEx.IPv4Field.html +++ b/lib/inputex/api/inputEx.IPv4Field.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.IPv4Field @@ -146,7 +146,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -194,6 +194,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -233,6 +236,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -375,6 +381,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -387,6 +395,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -402,6 +411,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.InPlaceEdit.html b/lib/inputex/api/inputEx.InPlaceEdit.html index c2e1a070..c31e1a5c 100644 --- a/lib/inputex/api/inputEx.InPlaceEdit.html +++ b/lib/inputex/api/inputEx.InPlaceEdit.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.InPlaceEdit @@ -618,7 +618,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -720,6 +720,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -759,6 +762,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -858,6 +864,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -870,6 +878,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -885,6 +894,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.IntegerField.html b/lib/inputex/api/inputEx.IntegerField.html index 413f8b57..c026522d 100644 --- a/lib/inputex/api/inputEx.IntegerField.html +++ b/lib/inputex/api/inputEx.IntegerField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.JsonSchema.Builder.html b/lib/inputex/api/inputEx.JsonSchema.Builder.html index 337064ce..9f81d4ae 100644 --- a/lib/inputex/api/inputEx.JsonSchema.Builder.html +++ b/lib/inputex/api/inputEx.JsonSchema.Builder.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.JsonSchema.html b/lib/inputex/api/inputEx.JsonSchema.html index f0bad94b..add77305 100644 --- a/lib/inputex/api/inputEx.JsonSchema.html +++ b/lib/inputex/api/inputEx.JsonSchema.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.KeyOpValueField.html b/lib/inputex/api/inputEx.KeyOpValueField.html index 31829fe1..86cb9e21 100644 --- a/lib/inputex/api/inputEx.KeyOpValueField.html +++ b/lib/inputex/api/inputEx.KeyOpValueField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.KeyOpValueField @@ -69,9 +69,22 @@

    Constructor

    inputEx.KeyOpValueField ( + + + + options )
    +
    +
    Parameters:
    +
    + options + <Object> + + InputEx definition object with the "availableFields" +
    +
    @@ -84,6 +97,41 @@

    Constructor

    +
    +

    Methods

    +
    +
    +

    + setOptions

    +
    + + + + + void + setOptions + ( + ) + + +
    + Setup the options.fields from the availableFields option +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +
    @@ -158,6 +206,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -170,6 +220,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -185,6 +236,7 @@

    Classes

    Files

    +
    +

    Methods

    + +
    @@ -262,8 +322,8 @@

    Files

    diff --git a/lib/inputex/api/inputEx.KeyValueField.html b/lib/inputex/api/inputEx.KeyValueField.html index ce58951e..8f49ba0b 100644 --- a/lib/inputex/api/inputEx.KeyValueField.html +++ b/lib/inputex/api/inputEx.KeyValueField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.KeyValueField @@ -73,17 +73,17 @@

    Constructor

    - searchFormDef + options )
    Parameters:
    - searchFormDef + options <Object> - InputEx definition object + InputEx definition object with the "availableFields"
    @@ -115,6 +115,36 @@

    Properties inherited from

    Methods

    +
    +

    + generateSelectConfig

    +
    + + + + + void + generateSelectConfig + ( + ) + + +
    + Generate +
    + +
    + + + + + + +
    + +
    +
    +

    initEvents

    @@ -170,6 +200,36 @@

    +

    + +
    +
    +

    +
    +

    + setOptions

    +
    + + + + + void + setOptions + ( + ) + + +
    + Setup the options.fields from the availableFields option +
    + +
    + + + + + +
    @@ -210,6 +270,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -249,6 +312,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -271,6 +337,9 @@

    Methods inherited from close, + + destroy, + disable, @@ -283,6 +352,9 @@

    Methods inherited from getFieldByName, + + getFieldsStates, + getValue, @@ -437,6 +509,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -449,6 +523,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -464,6 +539,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.Lens.html b/lib/inputex/api/inputEx.Lens.html index 38c41468..c7da0be4 100644 --- a/lib/inputex/api/inputEx.Lens.html +++ b/lib/inputex/api/inputEx.Lens.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.ListField.html b/lib/inputex/api/inputEx.ListField.html index 3cea334c..9f3055d6 100644 --- a/lib/inputex/api/inputEx.ListField.html +++ b/lib/inputex/api/inputEx.ListField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.ListField @@ -605,7 +605,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -737,6 +737,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -776,6 +779,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -875,6 +881,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -887,6 +895,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -902,6 +911,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.MapField.html b/lib/inputex/api/inputEx.MapField.html index 0a755fdf..b2e75087 100644 --- a/lib/inputex/api/inputEx.MapField.html +++ b/lib/inputex/api/inputEx.MapField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.MenuField.html b/lib/inputex/api/inputEx.MenuField.html index ba3eef73..6d226cb4 100644 --- a/lib/inputex/api/inputEx.MenuField.html +++ b/lib/inputex/api/inputEx.MenuField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.MenuField @@ -85,10 +85,11 @@

    Constructor

    Added options:
      +
    • typeInvite : text to display when no selection made
    • menuItems : contains descriptions of menu items
    • menuTrigger : event to trigger menu show
    • -
    • menuInvite : text to display when no selection made
    • menuPosition : array of corners positions (syntax : ['menu popup corner','invite div corner'])
    • +
    • menuConfig (optional) : object used as a config for the YUI Menu generated by MenuField
    @@ -182,7 +183,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -230,6 +231,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -269,6 +273,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -368,6 +375,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -380,6 +389,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -395,6 +405,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.MultiAutoComplete.html b/lib/inputex/api/inputEx.MultiAutoComplete.html index d224a7d0..0d08cc2a 100644 --- a/lib/inputex/api/inputEx.MultiAutoComplete.html +++ b/lib/inputex/api/inputEx.MultiAutoComplete.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.MultiSelectField.html b/lib/inputex/api/inputEx.MultiSelectField.html index f1297513..c080a2a6 100644 --- a/lib/inputex/api/inputEx.MultiSelectField.html +++ b/lib/inputex/api/inputEx.MultiSelectField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.NumberField.html b/lib/inputex/api/inputEx.NumberField.html index 8230c7e0..733720df 100644 --- a/lib/inputex/api/inputEx.NumberField.html +++ b/lib/inputex/api/inputEx.NumberField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.PasswordField.html b/lib/inputex/api/inputEx.PasswordField.html index 10eb4db2..2ae588e9 100644 --- a/lib/inputex/api/inputEx.PasswordField.html +++ b/lib/inputex/api/inputEx.PasswordField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.PasswordField @@ -442,7 +442,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -550,6 +550,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -589,6 +592,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -731,6 +737,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -743,6 +751,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -758,6 +767,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-1.0.html b/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-1.0.html index 3df4ac5f..d3c69183 100644 --- a/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-1.0.html +++ b/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-1.0.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-2.0.html b/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-2.0.html index c7cce322..969c0114 100644 --- a/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-2.0.html +++ b/lib/inputex/api/inputEx.RPC.Envelope.JSON-RPC-2.0.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.Envelope.JSON.html b/lib/inputex/api/inputEx.RPC.Envelope.JSON.html index 0a012b77..1d73f2c9 100644 --- a/lib/inputex/api/inputEx.RPC.Envelope.JSON.html +++ b/lib/inputex/api/inputEx.RPC.Envelope.JSON.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.Envelope.PATH.html b/lib/inputex/api/inputEx.RPC.Envelope.PATH.html index 576ae250..316796d5 100644 --- a/lib/inputex/api/inputEx.RPC.Envelope.PATH.html +++ b/lib/inputex/api/inputEx.RPC.Envelope.PATH.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.Envelope.URL.html b/lib/inputex/api/inputEx.RPC.Envelope.URL.html index c29404da..5188aabc 100644 --- a/lib/inputex/api/inputEx.RPC.Envelope.URL.html +++ b/lib/inputex/api/inputEx.RPC.Envelope.URL.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.Envelope.html b/lib/inputex/api/inputEx.RPC.Envelope.html index f04c071b..6db7119e 100644 --- a/lib/inputex/api/inputEx.RPC.Envelope.html +++ b/lib/inputex/api/inputEx.RPC.Envelope.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.SMDTester.html b/lib/inputex/api/inputEx.RPC.SMDTester.html index 83af0742..5a201e05 100644 --- a/lib/inputex/api/inputEx.RPC.SMDTester.html +++ b/lib/inputex/api/inputEx.RPC.SMDTester.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.Service.html b/lib/inputex/api/inputEx.RPC.Service.html index 18750f04..40a756a3 100644 --- a/lib/inputex/api/inputEx.RPC.Service.html +++ b/lib/inputex/api/inputEx.RPC.Service.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.Transport.html b/lib/inputex/api/inputEx.RPC.Transport.html index cac7d24e..e30d29cf 100644 --- a/lib/inputex/api/inputEx.RPC.Transport.html +++ b/lib/inputex/api/inputEx.RPC.Transport.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RPC.html b/lib/inputex/api/inputEx.RPC.html index 49d369bd..4c71b5e5 100644 --- a/lib/inputex/api/inputEx.RPC.html +++ b/lib/inputex/api/inputEx.RPC.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RTEField.html b/lib/inputex/api/inputEx.RTEField.html index afc9c9e6..028de3a1 100644 --- a/lib/inputex/api/inputEx.RTEField.html +++ b/lib/inputex/api/inputEx.RTEField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.RTEField @@ -86,7 +86,7 @@

    Constructor

    Added options:
    • opts: the options to be added when calling the RTE constructor (see YUI RTE)
    • -
    • type: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.
    • +
    • editorType: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.
    @@ -119,6 +119,58 @@

    Properties inherited from

    Methods

    +
    +

    + filter_msword

    +
    + + + + + String + filter_msword + ( + + + value + + + ) + + +
    + Filters out msword html comments, classes, and other junk +(complementary with YAHOO.widget.SimpleEditor.prototype.filter_msword, when filterWord option is true) +
    + +
    + +
    +
    Parameters:
    +
    + value + <String> + + The html string +
    +
    + +
    +
    Returns: + + String +
    +
    The html string
    +
    + + + + +
    + +
    +
    +

    getValue

    @@ -217,7 +269,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -319,6 +371,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -358,6 +413,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -457,6 +515,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -469,6 +529,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -484,6 +545,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.RadioButton.html b/lib/inputex/api/inputEx.RadioButton.html index 368983b4..ecbe3e5e 100644 --- a/lib/inputex/api/inputEx.RadioButton.html +++ b/lib/inputex/api/inputEx.RadioButton.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.RadioField.html b/lib/inputex/api/inputEx.RadioField.html index ee3506c8..32d71903 100644 --- a/lib/inputex/api/inputEx.RadioField.html +++ b/lib/inputex/api/inputEx.RadioField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.RadioField @@ -167,6 +167,66 @@

    +

    + +
    +
    +
    +
    +

    + disable

    +
    + + + + + void + disable + ( + ) + + +
    + Disable the field +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + enable

    +
    + + + + + void + enable + ( + ) + + +
    + Enable the field +
    + +
    + + + + + +
    @@ -367,7 +427,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -469,6 +529,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -508,6 +571,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -607,6 +673,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -619,6 +687,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -634,6 +703,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.SelectField.html b/lib/inputex/api/inputEx.SelectField.html index 46672c57..ce579f7b 100644 --- a/lib/inputex/api/inputEx.SelectField.html +++ b/lib/inputex/api/inputEx.SelectField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.SelectField @@ -363,7 +363,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -465,6 +465,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -504,6 +507,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -603,6 +609,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -615,6 +623,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -630,6 +639,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.SerializeField.html b/lib/inputex/api/inputEx.SerializeField.html new file mode 100644 index 00000000..7441d5bc --- /dev/null +++ b/lib/inputex/api/inputEx.SerializeField.html @@ -0,0 +1,678 @@ + + + + + API: inputEx inputEx.SerializeField (YUI Library) + + + + + + + + + + +
    +
    +

    inputEx-library

    +

    inputEx  0.5.0

    + inputEx-library + > inputEx + > inputEx.SerializeField + + +
    + Search: +
    +   +
    +
    + +
    + +
    +
    +
    +
    +
    + Filters + + + +
    +
    + +

    + + + + + Class inputEx.SerializeField + + - extends inputEx.Field + + +

    + + + + + +
    + SerializeField allows to serialize/deserialize a complex sub-group to a string +
    + +
    +

    Constructor

    +
    +
    + inputEx.SerializeField + + ( + + + + options + ) + +
    +
    +
    Parameters:
    +
    + options + <Object> + + Standard inputEx options definition +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +

    Properties inherited from inputEx.Field:

    +
    + + + + options + + + +
    +
    +
    +
    + +
    +
    +

    Methods

    +
    +
    +

    + deserialize

    +
    + + + + + void + deserialize + ( + ) + + +
    + Use the configured deserializer +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + focus

    +
    + + + + + void + focus + ( + ) + + +
    + Sets the focus on this field +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + getValue

    +
    + + + + + void + getValue + ( + ) + + +
    + Use the subField getValue and serialize it with the selected serializing method +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + initEvents

    +
    + + + + + void + initEvents + ( + ) + + +
    + Subscribe the subField +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + renderComponent

    +
    + + + + + void + renderComponent + ( + ) + + +
    + Render the subfield +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + serialize

    +
    + + + + + void + serialize + ( + ) + + +
    + Use the configured serializer +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + setOptions

    +
    + + + + + void + setOptions + ( + + + options + + + ) + + +
    + Adds some options: subfield & serializer +
    + +
    + +
    +
    Parameters:
    +
    + options + <Object> + + Options object as passed to the constructor +
    +
    + + + + + +
    + +
    +
    +
    +
    +

    + setValue

    +
    + + + + + void + setValue + ( + ) + + +
    + Use the deserialize method and set the value of the subField +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +
    + +
    +
    +

    Methods inherited from inputEx.Field:

    +
    + + + clear, + + + close, + + + destroy, + + + disable, + + + displayMessage, + + + enable, + + + fireUpdatedEvt, + + + focus, + + + getEl, + + + getParentField, + + + getState, + + + getStateString, + + + getValue, + + + hide, + + + initEvents, + + + isEmpty, + + + onBlur, + + + onChange, + + + onFocus, + + + render, + + + renderComponent, + + + setClassFromState, + + + setOptions, + + + setParentField, + + + setValue, + + + show, + + + validate + + +
    +
    +
    +
    + +
    + + +
    +
    +

    Events inherited from inputEx.Field:

    +
    + + + updatedEvt, + + + +
    +
    +
    +
    + +
    + +
    + +
    +
    +
    + +
    +
    +
    +
    + Copyright © 2010 Eric Abouaf All rights reserved. +
    +
    + + + diff --git a/lib/inputex/api/inputEx.SerializeField.serializers.html b/lib/inputex/api/inputEx.SerializeField.serializers.html new file mode 100644 index 00000000..88676b7a --- /dev/null +++ b/lib/inputex/api/inputEx.SerializeField.serializers.html @@ -0,0 +1,373 @@ + + + + + API: inputEx inputEx.SerializeField.serializers (YUI Library) + + + + + + + + + + +
    +
    +

    inputEx-library

    +

    inputEx  0.5.0

    + inputEx-library + > inputEx + > inputEx.SerializeField.serializers + +
    +
    + Search: +
    +   +
    +
    +
    +
    + +
    +
    +
    +
    +
    + Filters + + + +
    +
    + +

    + + + static + + Class inputEx.SerializeField.serializers + + + +

    + + + + + +
    + Default serializers for the SerializeField +
    + + +
    +
    +

    Properties

    +
    +
    +

    json + - static object +

    +
    +
    + JSON Serializer +
    +
    + + + + +
    +
    +
    +

    xml + - static object +

    +
    +
    + XML Serializer (uses the ObjTree library) +
    +
    + + + + +
    +
    +
    +
    + +
    + +
    +
    +

    Methods

    +
    +
    +

    + deserialize

    +
    + + + static + + void + deserialize + ( + ) + + +
    + deserialize from JSON +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + serialize

    +
    + + + static + + void + serialize + ( + ) + + +
    + serialize to JSON +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +
    + +
    + +
    + + +
    + +
    + +
    + +
    +
    +
    + +
    +
    +
    +
    + Copyright © 2010 Eric Abouaf All rights reserved. +
    +
    + + + diff --git a/lib/inputex/api/inputEx.SliderField.html b/lib/inputex/api/inputEx.SliderField.html index f80b6378..b6d0fcf0 100644 --- a/lib/inputex/api/inputEx.SliderField.html +++ b/lib/inputex/api/inputEx.SliderField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.SliderField @@ -213,7 +213,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -315,6 +315,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -354,6 +357,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -453,6 +459,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -465,6 +473,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -480,6 +489,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.StringField.html b/lib/inputex/api/inputEx.StringField.html index c411e979..1bb46e94 100644 --- a/lib/inputex/api/inputEx.StringField.html +++ b/lib/inputex/api/inputEx.StringField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.StringField @@ -470,7 +470,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -602,6 +602,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -641,6 +644,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -740,6 +746,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -752,6 +760,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -767,6 +776,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.Textarea.html b/lib/inputex/api/inputEx.Textarea.html index 62c6f1cd..44d8bad3 100644 --- a/lib/inputex/api/inputEx.Textarea.html +++ b/lib/inputex/api/inputEx.Textarea.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.Textarea @@ -254,7 +254,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -332,6 +332,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -371,6 +374,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -470,6 +476,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -482,6 +490,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -497,6 +506,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.TimeField.html b/lib/inputex/api/inputEx.TimeField.html index c7d2b4f0..d6d9cc68 100644 --- a/lib/inputex/api/inputEx.TimeField.html +++ b/lib/inputex/api/inputEx.TimeField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.TimeIntervalField.html b/lib/inputex/api/inputEx.TimeIntervalField.html index f613e12d..b6ddc3de 100644 --- a/lib/inputex/api/inputEx.TimeIntervalField.html +++ b/lib/inputex/api/inputEx.TimeIntervalField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.TimeIntervalField @@ -234,6 +234,69 @@

    +

    + +
    +
    +
    +
    +

    + TimeRange

    +
    + + + + + void + TimeRange + ( + ) + + +
    + Tweaking the TimeField to make a Time Range (two TimeFields) +- doesn't show seconds +- Minutes by group of 5 +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + toogleEndMinutes

    +
    + + + + + void + toogleEndMinutes + ( + ) + + +
    + Disable the last selector and set it to "00" when the third one's value is 24 +(it will be inccorect to have an end superior to 24:00) +
    + +
    + + + + + +
    @@ -274,6 +337,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -313,6 +379,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -335,6 +404,9 @@

    Methods inherited from close, + + destroy, + disable, @@ -347,6 +419,9 @@

    Methods inherited from getFieldByName, + + getFieldsStates, + getValue, @@ -501,6 +576,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -513,6 +590,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -528,6 +606,7 @@

    Classes

    Files

    @@ -613,8 +696,8 @@

    Methods

    diff --git a/lib/inputex/api/inputEx.TreeField.html b/lib/inputex/api/inputEx.TreeField.html index f5271916..6464b6e6 100644 --- a/lib/inputex/api/inputEx.TreeField.html +++ b/lib/inputex/api/inputEx.TreeField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.TypeField.html b/lib/inputex/api/inputEx.TypeField.html index 7541c9c0..4f68bd09 100644 --- a/lib/inputex/api/inputEx.TypeField.html +++ b/lib/inputex/api/inputEx.TypeField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.TypeField @@ -83,7 +83,7 @@

    Constructor

    options <Object> - Standard inputEx inputParams definition + Standard inputEx options definition @@ -422,6 +422,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -461,6 +464,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -560,6 +566,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -572,6 +580,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -587,6 +596,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.UneditableField.html b/lib/inputex/api/inputEx.UneditableField.html index 7db4adf2..7067e069 100644 --- a/lib/inputex/api/inputEx.UneditableField.html +++ b/lib/inputex/api/inputEx.UneditableField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.UneditableField @@ -187,7 +187,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -289,6 +289,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -328,6 +331,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -427,6 +433,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -439,6 +447,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -454,6 +463,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.UpperCaseField.html b/lib/inputex/api/inputEx.UpperCaseField.html index 4f45ccdc..ab9515a8 100644 --- a/lib/inputex/api/inputEx.UpperCaseField.html +++ b/lib/inputex/api/inputEx.UpperCaseField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.UrlField.html b/lib/inputex/api/inputEx.UrlField.html index 62d941db..1a329591 100644 --- a/lib/inputex/api/inputEx.UrlField.html +++ b/lib/inputex/api/inputEx.UrlField.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.UrlField @@ -209,7 +209,7 @@

    options <Object> - Options object (inputEx inputParams) as passed to the constructor + Options object as passed to the constructor @@ -257,6 +257,9 @@

    Methods inherited from getEl, + + getParentField, + getState, @@ -296,6 +299,9 @@

    Methods inherited from setOptions, + + setParentField, + setValue, @@ -438,6 +444,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -450,6 +458,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -465,6 +474,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.VectorField.html b/lib/inputex/api/inputEx.VectorField.html index 598a3457..eb29bc5c 100644 --- a/lib/inputex/api/inputEx.VectorField.html +++ b/lib/inputex/api/inputEx.VectorField.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.YQL.html b/lib/inputex/api/inputEx.YQL.html index 8a6bd6bb..fd053ed5 100644 --- a/lib/inputex/api/inputEx.YQL.html +++ b/lib/inputex/api/inputEx.YQL.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx.YQL @@ -66,7 +66,7 @@

    inputEx YQL utility

    Examples:

    We use a classic JSONP hack to get the results via a callback method.

    @@ -277,6 +277,60 @@

    +

    + + +
    + +
    +

    + queryUrl

    +
    + + + + + void + queryUrl + ( + + + codeUrl + + + , + callback + + + ) + + +
    + Dynamically build a XML from a URL and generate a dummy request for YQL +
    + +
    + +
    +
    Parameters:
    +
    + codeUrl + <String> + + Url to a YQL-execute javascript file +
    +
    + callback + <Function> + + Callback function +
    +
    + + + + +
    @@ -358,6 +412,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -370,6 +426,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -385,6 +442,7 @@

    Classes

    Files

    @@ -471,8 +532,8 @@

    Methods

    diff --git a/lib/inputex/api/inputEx.html b/lib/inputex/api/inputEx.html index 5707267f..57aef7f5 100644 --- a/lib/inputex/api/inputEx.html +++ b/lib/inputex/api/inputEx.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx > inputEx @@ -61,10 +61,9 @@

    The inputEx method lets you create a field from the JSON definition:
    -inputEx({type: 'string', inputParams: { name: 'company', label: 'Your company'} })
    +inputEx({type: 'string', name: 'company', label: 'Your company' })
     
    -Build a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, inputParams: {} }
    -The inputParams property is the object that will be passed as the options parameter to the field class constructor.
    +Build a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, ... }
    If the neither type or fieldClass are found, it uses inputEx.StringField
    @@ -827,6 +826,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -839,6 +840,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -854,6 +856,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputEx.visus.html b/lib/inputex/api/inputEx.visus.html index 63965db6..380bcaa4 100644 --- a/lib/inputex/api/inputEx.visus.html +++ b/lib/inputex/api/inputEx.visus.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.widget.Button.html b/lib/inputex/api/inputEx.widget.Button.html new file mode 100644 index 00000000..007cc3b5 --- /dev/null +++ b/lib/inputex/api/inputEx.widget.Button.html @@ -0,0 +1,584 @@ + + + + + API: inputEx inputEx.widget.Button (YUI Library) + + + + + + + + + + +
    +
    +

    inputEx-library

    +

    inputEx  0.5.0

    + inputEx-library + > inputEx + > inputEx.widget.Button + +
    +
    + Search: +
    +   +
    +
    +
    +
    + +
    +
    +
    +
    +
    + Filters + + + +
    +
    + +

    + + + + + Class inputEx.widget.Button + + + +

    + + + + + +
    + Create a button +
    + +
    +

    Constructor

    +
    +
    + inputEx.widget.Button + + ( + + + + options + ) + +
    +
    +
    Parameters:
    +
    + options + <Object> + + The following options are available for Button : +
      +
    • id: id of the created A element (default is auto-generated)
    • +
    • className: CSS class added to the button (default is either "inputEx-Button-Link" or "inputEx-Button-Submit-Link", depending on "type")
    • +
    • parentEl: The DOM element where we should append the button
    • +
    • type: "link", "submit-link" or "submit"
    • +
    • value: text displayed inside the button
    • +
    • disabled: Disable the button after creation
    • +
    • onClick: Custom click event handler
    • +
    +
    +
    + + +
    +
    +
    +
    + +
    + +
    + +
    +
    +

    Methods

    +
    +
    +

    + destroy

    +
    + + + + + void + destroy + ( + ) + + +
    + Purge all event listeners and remove the component from the dom +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + disable

    +
    + + + + + void + disable + ( + ) + + +
    + Disable the button +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + enable

    +
    + + + + + void + enable + ( + ) + + +
    + Enable the button +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + initEvents

    +
    + + + + + void + initEvents + ( + ) + + +
    + attach the listeners on "click" event and create the custom events +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +

    + render

    +
    + + + + + DOMElement + render + ( + + + parentEl + + + ) + + +
    + render the button into the parent Element +
    + +
    + +
    +
    Parameters:
    +
    + parentEl + <DOMElement> + + The DOM element where the button should be rendered +
    +
    + +
    +
    Returns: + + DOMElement +
    +
    The created button
    +
    + + + + +
    + +
    +
    +
    +
    +

    + setOptions

    +
    + + + + + void + setOptions + ( + ) + + +
    + set the default options +
    + +
    + + + + + + +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +

    Events

    +
    +
    +

    + clickEvent

    +
    + + + + + clickEvent + + ( + ) + + + +
    + Click Event facade (YUI custom event) +
    + +
    + + + + +
    + +
    +
    +
    +
    +

    + submitEvent

    +
    + + + + + submitEvent + + ( + ) + + + +
    + Submit Event facade (YUI custom event) +
    + +
    + + + + +
    + +
    +
    +
    +
    +
    + + +
    + +
    + +
    + +
    +
    +
    + +
    +
    +
    +
    + Copyright © 2010 Eric Abouaf All rights reserved. +
    +
    + + + diff --git a/lib/inputex/api/inputEx.widget.CellEditor.html b/lib/inputex/api/inputEx.widget.CellEditor.html index 87f8152e..d4ffaab1 100644 --- a/lib/inputex/api/inputEx.widget.CellEditor.html +++ b/lib/inputex/api/inputEx.widget.CellEditor.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.widget.DDList.html b/lib/inputex/api/inputEx.widget.DDList.html index 8426753f..2d118151 100644 --- a/lib/inputex/api/inputEx.widget.DDList.html +++ b/lib/inputex/api/inputEx.widget.DDList.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.widget.DDListItem.html b/lib/inputex/api/inputEx.widget.DDListItem.html index 12f60914..815286ae 100644 --- a/lib/inputex/api/inputEx.widget.DDListItem.html +++ b/lib/inputex/api/inputEx.widget.DDListItem.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.widget.DataTable.html b/lib/inputex/api/inputEx.widget.DataTable.html index 2be16e3d..4c51306a 100644 --- a/lib/inputex/api/inputEx.widget.DataTable.html +++ b/lib/inputex/api/inputEx.widget.DataTable.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.widget.Dialog.html b/lib/inputex/api/inputEx.widget.Dialog.html index d8a6f554..8d2fff82 100644 --- a/lib/inputex/api/inputEx.widget.Dialog.html +++ b/lib/inputex/api/inputEx.widget.Dialog.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.widget.JsonTreeInspector.html b/lib/inputex/api/inputEx.widget.JsonTreeInspector.html index a3bbe1b7..e6dcfdf8 100644 --- a/lib/inputex/api/inputEx.widget.JsonTreeInspector.html +++ b/lib/inputex/api/inputEx.widget.JsonTreeInspector.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputEx.widget.dtInPlaceEdit.html b/lib/inputex/api/inputEx.widget.dtInPlaceEdit.html index 2544bd64..1cff9d26 100644 --- a/lib/inputex/api/inputEx.widget.dtInPlaceEdit.html +++ b/lib/inputex/api/inputEx.widget.dtInPlaceEdit.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/inputex-loader.js.html b/lib/inputex/api/inputex-loader.js.html index 710a5339..f0f25ed8 100644 --- a/lib/inputex/api/inputex-loader.js.html +++ b/lib/inputex/api/inputex-loader.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -142,14 +142,20 @@

    inputEx  0.4.0

    varName: 'inputEx.widget.dtInPlaceEdit', requires: ['inputex-datatable'] }, - { - - name: 'inputex-jsontreeinspector', - type: 'js', - fullpath: pathToInputEx+'js/widgets/json-tree-inspector.js', - varName: 'inputEx.widget.JsonTreeInspector', - requires: ['inputex'] - }, + { + name: 'inputex-jsontreeinspector', + type: 'js', + fullpath: pathToInputEx+'js/widgets/json-tree-inspector.js', + varName: 'inputEx.widget.JsonTreeInspector', + requires: ['inputex'] + }, + { + name: 'inputex-button', + type: 'js', + fullpath: pathToInputEx+'js/widgets/Button.js', + varName: 'inputEx.widget.Button', + requires: ['inputex'] + }, // MetaFields { name: 'inputex-group', @@ -163,7 +169,7 @@

    inputEx  0.4.0

    type: 'js', fullpath: pathToInputEx+'js/Form.js', varName: 'inputEx.Form', - requires: ['inputex-group'] + requires: ['inputex-group','inputex-button'] }, { name: 'inputex-listfield', @@ -191,7 +197,7 @@

    inputEx  0.4.0

    type: 'js', fullpath: pathToInputEx+'js/fields/InPlaceEdit.js', varName: 'inputEx.InPlaceEdit', - requires: ['inputex-field', 'animation'] + requires: ['inputex-field', 'inputex-button', 'animation'] // animation is optional, required if animColors option }, { name: 'inputex-lens', @@ -547,6 +553,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -559,6 +567,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -574,6 +583,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputex-rpc.js.html b/lib/inputex/api/inputex-rpc.js.html index 484eb36e..5542ce71 100644 --- a/lib/inputex/api/inputex-rpc.js.html +++ b/lib/inputex/api/inputex-rpc.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -64,21 +64,19 @@

    inputEx  0.4.0

    var options = null; if(YAHOO.lang.isObject(formOpts) && YAHOO.lang.isArray(formOpts.fields) ) { - options = { - inputParams: formOpts - }; + options = formOpts; } // create the form directly from the method params else { options = inputEx.RPC.formForMethod(method); // Add user options from formOpts - YAHOO.lang.augmentObject(options.inputParams, formOpts, true); + YAHOO.lang.augmentObject(options, formOpts, true); } // Add buttons to launch the service options.type = "form"; - if(!options.inputParams.buttons) { - options.inputParams.buttons = [ + if(!options.buttons) { + options.buttons = [ {type: 'submit', value: method.name, onClick: function(e) { YAHOO.util.Event.stopEvent(e); form.showMask(); @@ -93,6 +91,7 @@

    inputEx  0.4.0

    form.hideMask(); } }); + return false; // do NOT send the browser submit event }} ]; } @@ -102,7 +101,6 @@

    inputEx  0.4.0

    return form; }, - /** * Return the inputEx form options from a method * @param {function} method A method created through inputEx.RPC.Service @@ -601,6 +599,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -613,6 +613,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -628,6 +629,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/inputex.js.html b/lib/inputex/api/inputex.js.html index 8ea84de5..a6733601 100644 --- a/lib/inputex/api/inputex.js.html +++ b/lib/inputex/api/inputex.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -59,19 +59,21 @@

    inputEx  0.4.0

    /** * The inputEx method lets you create a field from the JSON definition: * <pre> - * inputEx({type: 'string', inputParams: { name: 'company', label: 'Your company'} }) + * inputEx({type: 'string', name: 'company', label: 'Your company' }) * </pre> - * Build a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, inputParams: {} }<br /> - * The inputParams property is the object that will be passed as the <code>options</code> parameter to the field class constructor.<br /> + * Build a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, ... }<br /> * If the neither type or fieldClass are found, it uses inputEx.StringField * * @class inputEx * @static * @param {Object} fieldOptions + * @param {inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField} (optional) parentField The parent field instance * @return {inputEx.Field} Created field instance */ -inputEx = function(fieldOptions) { - var fieldClass = null; +inputEx = function(fieldOptions, parentField) { + var fieldClass = null, + inputInstance; + if(fieldOptions.type) { fieldClass = inputEx.getFieldClass(fieldOptions.type); if(fieldClass === null) fieldClass = inputEx.StringField; @@ -81,7 +83,20 @@

    inputEx  0.4.0

    } // Instanciate the field - var inputInstance = new fieldClass(fieldOptions.inputParams); + + // Retro-compatibility with deprecated inputParams Object + if (lang.isObject(fieldOptions.inputParams)) { + inputInstance = new fieldClass(fieldOptions.inputParams); + + // New prefered way to instanciate a field + } else { + inputInstance = new fieldClass(fieldOptions); + } + + // If the parentField argument is provided + if(parentField) { + inputInstance.setParentField(parentField); + } // Add the flatten attribute if present in the params /*if(fieldOptions.flatten) { @@ -93,7 +108,7 @@

    inputEx  0.4.0

    lang.augmentObject(inputEx, { - VERSION: "0.4.0", + VERSION: "0.5.0", /** * Url to the spacer image. This url schould be changed according to your project directories @@ -422,6 +437,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -434,6 +451,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -449,6 +467,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/it.js.html b/lib/inputex/api/it.js.html index 7b035528..5315915c 100644 --- a/lib/inputex/api/it.js.html +++ b/lib/inputex/api/it.js.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/json-schema.js.html b/lib/inputex/api/json-schema.js.html index 28c89968..805507e0 100644 --- a/lib/inputex/api/json-schema.js.html +++ b/lib/inputex/api/json-schema.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -79,7 +79,9 @@

    inputEx  0.4.0

    inputExToSchema: function(inputExJson) { var t = inputExJson.type || "string", - ip = inputExJson.inputParams || {}; + // inputParams is here for retro-compatibility : TODO -> remove + // -> ip = inputExJson || {}; + ip = (lang.isObject(inputExJson.inputParams) ? inputExJson.inputParams : inputExJson) || {}; if(t == "group") { var ret = { @@ -91,7 +93,9 @@

    inputEx  0.4.0

    for(var i = 0 ; i < ip.fields.length ; i++) { var field = ip.fields[i]; - var fieldName = field.inputParams.name; + // inputParams is here for retro-compatibility : TODO -> remove + // -> var fieldName = field.name; + var fieldName = lang.isObject(field.inputParams) ? field.inputParams.name : field.name; ret.properties[fieldName] = inputEx.JsonSchema.inputExToSchema(field); } @@ -219,7 +223,7 @@

    inputEx  0.4.0

    this.schemaToParamMap = options.schemaToParamMap || { 'title':'label', 'description':'description', - '_inputex':null // null value means copy child key/value pairs into inputParams directly + '_inputex':null // null value means copy child key/value pairs into field options directly }; /** @@ -228,7 +232,7 @@

    inputEx  0.4.0

    this.referenceResolver = options.referenceResolver || null; /** - * options to be applied to inputParams unless already specified + * options to be applied unless already specified * @property defaultOptions */ this.defaultOptions = options.defaultOptions || {}; @@ -255,9 +259,9 @@

    inputEx  0.4.0

    */ schemaToInputEx:function(p, propertyName) { - var fieldDef = {inputParams: { label: propertyName, name: propertyName} }; + var fieldDef = { label: propertyName, name: propertyName }; var schemaMap = this.schemaToParamMap; - var referencedSchema = p["$ref"]; + var referencedSchema = p["$ref"]; var key; if(referencedSchema){ @@ -284,7 +288,7 @@

    inputEx  0.4.0

    } if(!p.optional) { - fieldDef.inputParams.required = true; + fieldDef.required = true; } for(key in schemaMap) { @@ -293,17 +297,17 @@

    inputEx  0.4.0

    var v = p[key]; if(!lang.isUndefined(v)) { if(paramName === null) { - // copy / merge values from v directly into inputParams + // copy / merge values from v directly into options if(lang.isObject(v)) { - // v must be an object, copy key/value pairs into inputParams + // v must be an object, copy key/value pairs into options for(var vkey in v) { if(v.hasOwnProperty(vkey)) { - fieldDef.inputParams[vkey] = v[vkey]; + fieldDef[vkey] = v[vkey]; } } } } else { - fieldDef.inputParams[paramName] = v; + fieldDef[paramName] = v; } } } @@ -330,30 +334,30 @@

    inputEx  0.4.0

    // default value if( !lang.isUndefined(p["default"]) ) { - fieldDef.inputParams.value = p["default"]; + fieldDef.value = p["default"]; } if(type == "array" ) { fieldDef.type = "list"; if(lang.isObject(p.items) && !lang.isArray(p.items)) { // when items is an object, it's a schema that describes each item in the list - fieldDef.inputParams.elementType = this.schemaToInputEx(p.items, propertyName); + fieldDef.elementType = this.schemaToInputEx(p.items, propertyName); } - if(p.minItems) { fieldDef.inputParams.minItems = p.minItems; } - if(p.maxItems) { fieldDef.inputParams.maxItems = p.maxItems; } + if(p.minItems) { fieldDef.minItems = p.minItems; } + if(p.maxItems) { fieldDef.maxItems = p.maxItems; } } else if(type == "object" ) { fieldDef.type = "group"; - if(p.title && lang.isUndefined(fieldDef.inputParams.legend)) { - fieldDef.inputParams.legend = p.title; + if(p.title && lang.isUndefined(fieldDef.legend)) { + fieldDef.legend = p.title; } - //fieldDef.inputParams = this.schemaToInputEx(p, propertyName); - //fieldDef.inputParams = this._parseSchemaProperty(p, propertyName); + //fieldDef = this.schemaToInputEx(p, propertyName); + //fieldDef = this._parseSchemaProperty(p, propertyName); var fields = []; if(propertyName) { - fieldDef.inputParams.name = propertyName; + fieldDef.name = propertyName; } for(key in p.properties) { @@ -362,43 +366,43 @@

    inputEx  0.4.0

    } } - fieldDef.inputParams.fields = fields; + fieldDef.fields = fields; } else if(type == "string" && (p["enum"] || p["options"]) ) { fieldDef.type = "select"; if(p.options) { - fieldDef.inputParams.selectOptions = []; - fieldDef.inputParams.selectValues = []; + fieldDef.selectOptions = []; + fieldDef.selectValues = []; for(var i = 0 ; i < p.options.length ; i++) { var o = p.options[i]; - fieldDef.inputParams.selectOptions[i] = o.label; - fieldDef.inputParams.selectValues[i] = o.value; + fieldDef.selectOptions[i] = o.label; + fieldDef.selectValues[i] = o.value; } } else { - fieldDef.inputParams.selectValues = p["enum"]; + fieldDef.selectValues = p["enum"]; } } else if(type == "string") { - if(!lang.isUndefined(p.pattern) && lang.isUndefined(fieldDef.inputParams.regexp)) { + if(!lang.isUndefined(p.pattern) && lang.isUndefined(fieldDef.regexp)) { if(lang.isString(p.pattern)) { - fieldDef.inputParams.regexp = new RegExp(p.pattern); + fieldDef.regexp = new RegExp(p.pattern); } else { - fieldDef.inputParams.regexp = p.pattern; + fieldDef.regexp = p.pattern; } } - if(!lang.isUndefined(p.maxLength) && lang.isUndefined(fieldDef.inputParams.maxLength)) { - fieldDef.inputParams.maxLength = p.maxLength; + if(!lang.isUndefined(p.maxLength) && lang.isUndefined(fieldDef.maxLength)) { + fieldDef.maxLength = p.maxLength; } - if(!lang.isUndefined(p.minLength) && lang.isUndefined(fieldDef.inputParams.minLength)) { - fieldDef.inputParams.minLength = p.minLength; + if(!lang.isUndefined(p.minLength) && lang.isUndefined(fieldDef.minLength)) { + fieldDef.minLength = p.minLength; } - if(!lang.isUndefined(p.readonly) && lang.isUndefined(fieldDef.inputParams.readonly)) { - fieldDef.inputParams.readonly = p.readonly; + if(!lang.isUndefined(p.readonly) && lang.isUndefined(fieldDef.readonly)) { + fieldDef.readonly = p.readonly; } // According to http://groups.google.com/group/json-schema/web/json-schema-possible-formats @@ -407,7 +411,7 @@

    inputEx  0.4.0

    fieldDef.type = "html"; } else if(p.format == "date") { fieldDef.type = "date"; - fieldDef.inputParams.tooltipIcon = true; + fieldDef.tooltipIcon = true; } else if(p.format == 'url') { fieldDef.type = 'url'; } else if(p.format == 'email') { @@ -431,8 +435,8 @@

    inputEx  0.4.0

    // Add the defaultOptions for(var kk in this.defaultOptions) { - if(this.defaultOptions.hasOwnProperty(kk) && lang.isUndefined(fieldDef.inputParams[kk])) { - fieldDef.inputParams[kk] = this.defaultOptions[kk]; + if(this.defaultOptions.hasOwnProperty(kk) && lang.isUndefined(fieldDef[kk])) { + fieldDef[kk] = this.defaultOptions[kk]; } } return fieldDef; @@ -451,8 +455,8 @@

    inputEx  0.4.0

    // Set the default value of each property to the instance value for(var i = 0 ; i < formDef.fields.length ; i++) { - var fieldName = formDef.fields[i].inputParams.name; - formDef.fields[i].inputParams.value = instanceObject[fieldName]; + var fieldName = formDef.fields[i].name; + formDef.fields[i].value = instanceObject[fieldName]; } return formDef; @@ -529,6 +533,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -541,6 +547,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -556,6 +563,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/json-tree-inspector.js.html b/lib/inputex/api/json-tree-inspector.js.html index 64c74b7f..af0c297d 100644 --- a/lib/inputex/api/json-tree-inspector.js.html +++ b/lib/inputex/api/json-tree-inspector.js.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/module_inputex.html b/lib/inputex/api/module_inputex.html index 0c3d2d97..280cdd31 100644 --- a/lib/inputex/api/module_inputex.html +++ b/lib/inputex/api/module_inputex.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -60,7 +60,7 @@

    Module: inputEx

    This module contains the following classes:

    @@ -201,6 +204,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -213,6 +218,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -228,6 +234,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/nl.js.html b/lib/inputex/api/nl.js.html index f85ddac2..5e201780 100644 --- a/lib/inputex/api/nl.js.html +++ b/lib/inputex/api/nl.js.html @@ -15,8 +15,8 @@ diff --git a/lib/inputex/api/raw.json b/lib/inputex/api/raw.json index 173c866c..332f7e4f 100644 --- a/lib/inputex/api/raw.json +++ b/lib/inputex/api/raw.json @@ -1 +1 @@ -{"majorversion": 2, "classmap": {"inputEx.CheckBox": {"name": "inputEx.CheckBox", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for CheckBoxes:\n
      \n
    • sentValues: 2D vector of values for checked/unchecked states (default is [true, false])
    • \n
    "}], "description": "Create a checkbox."}], "namespace": "", "module": "inputEx", "guessedname": "CheckBox", "methods": {"setValue": {"params": [{"type": "Any", "name": "value", "description": " The value schould be one of [checkedValue,uncheckedValue]"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the checkedbox", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Clear the previous events and listen for the \"change\" event", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the checkbox and the hidden field", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "one of [checkedValue,uncheckedValue]"}, "description": "Get the state value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds the CheckBox specific options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "Function called when the checkbox is toggled", "guessedname": "onChange", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "CheckBox.js", "guessedtype": "function", "shortname": "inputEx.CheckBox", "description": "Create a checkbox."}, "inputEx.YQL": {"name": "inputEx.YQL", "namespace": "", "module": "inputEx", "guessedname": "YQL", "methods": {"query": {"params": [{"type": "String", "name": "yql", "description": " YQL query string"}, {"type": "Function", "name": "callback", "description": " Callback function"}], "description": "Generate the jsonp request to YQL", "guessedname": "query", "guessedtype": "function"}, "queryCode": {"params": [{"type": "String", "name": "codeStr", "description": " YQL-execute javascript code"}, {"type": "Function", "name": "callback", "description": " Callback function"}], "description": "Dynamically build a XML from javascript code and generate a dummy request for YQL", "guessedname": "queryCode", "guessedtype": "function"}, "init": {"params": [{"type": "Array", "name": "callbacks", "description": " Array of (list of callbacks functions) (provide a list of callbacks for each script type=\"text/yql\" tag in the page)"}], "description": "Run script type=\"text/yql\" tags on YQL servers\nIf you have just one script tag and one callback, pass [[function(results) {}]]\nIf you have two script tags and two callback for each: [ [function() {},function() {}] , [function() {},function() {}]]\netc...", "guessedname": "init", "guessedtype": "function"}, "initTrimpathPage": {"params": [{"type": "Array", "name": "additionalCallbacks", "description": " List of [list of callbacks] (each yql query can call multiple callbacks)"}], "description": "YQL-trimpath-page is a utility to create pages using YQL queries ant Trimpath templating\nAll YQL queries are made using the rpc/yql.js utility.\nsee examples/yql-trimpath-page.html\nCall this method on page load to run yql queries and the associated templates", "guessedname": "initTrimpathPage", "guessedtype": "function"}, "genTrimpathCallback": {"guessedname": "genTrimpathCallback", "static": "", "description": "Build a callback that runs a trimpath template (used by initTrimpathPage)", "private": "", "guessedtype": "function"}}, "static": "", "file": "yql.js", "guessedtype": "property", "shortname": "inputEx.YQL", "description": "

    inputEx YQL utility

    \n

    Provide functions to run YQL javascript code and get results asynchronously.

    \n

    YQL Execute is only available from a YQL request using a YQL Open Table XML file.\nThis script uses a php (http://javascript.neyric.com/yql/js.php) to generate the wanted XML file from javascript code.

    \n

    Examples:

    \n\n

    We use a classic JSONP hack to get the results via a callback method.

    "}, "inputEx.KeyOpValueField": {"name": "inputEx.KeyOpValueField", "extend": "inputEx.KeyValueField", "constructors": [{"description": "Add an SQL operator select field in the middle of a KeyValueField"}], "namespace": "", "module": "inputEx", "guessedname": "KeyOpValueField", "file": "KeyOpValueField-beta.js", "guessedtype": "function", "shortname": "inputEx.KeyOpValueField", "description": "Add an SQL operator select field in the middle of a KeyValueField"}, "inputEx.RPC.Transport": {"name": "inputEx.RPC.Transport", "namespace": "", "module": "inputEx", "guessedname": "Transport", "methods": {"POST": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Build a ajax request using 'POST' method"}, "JSONP": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Receive data through JSONP (insert a script tag within the page)"}, "TCP/IP": {"description": "NOT implemented"}, "REST": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Build an ajax request using the right HTTP method"}, "GET": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Build a ajax request using 'GET' method"}}, "static": "", "file": "inputex-rpc.js", "guessedtype": "property", "shortname": "inputEx.RPC.Transport", "description": "inputEx.RPC.Transport"}, "inputEx.widget.CellEditor": {"name": "inputEx.widget.CellEditor", "constructors": [{"params": [{"type": "Object", "name": "inputExFieldDef", "description": " InputEx field definition object"}], "description": "The CellEditor class provides functionality for inline editing in datatables\nusing the inputEx field definition."}], "namespace": "", "module": "inputEx", "guessedname": "CellEditor", "methods": {"renderForm": {"description": "Render the inputEx field editor", "guessedname": "renderForm", "guessedtype": "function"}, "save": {"description": "When clicking the save button but also when clicking out of the cell", "guessedname": "save", "guessedtype": "function"}, "getInputValue": {"description": "Returns new value for CellEditor.", "guessedname": "getInputValue", "guessedtype": "function"}, "focus": {"description": "Sets focus in CellEditor.", "guessedname": "focus", "guessedtype": "function"}, "resetForm": {"description": "Resets CellEditor UI to initial state.", "guessedname": "resetForm", "guessedtype": "function"}}, "extends": "YAHOO.widget.BaseCellEditor", "superclass": "YAHOO.widget.BaseCellEditor", "file": "dtInPlaceEdit.js", "guessedtype": "function", "shortname": "inputEx.widget.CellEditor", "description": "The CellEditor class provides functionality for inline editing in datatables\nusing the inputEx field definition."}, "inputEx.MapField": {"name": "inputEx.MapField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • width
    • \n
    • height
    • \n
    • loading
    • \n
    • lat
    • \n
    • lon
    • \n
    • uzoom
    • \n
    • api: google, yahoo or virtualearth (default)
    • \n
    • api_key
    • \n
    "}], "description": "Wrapper for Mapping APIs, including Google Maps, Yahoo Maps and Virtual Earth"}], "namespace": "", "module": "inputEx", "guessedname": "MapField", "methods": {"preload": {"description": "This preloaded MAY not really work -- we recommend that you use\nthe following JavaScript instead _after_ \"yahoo-dom-event.js\" (or similar)\nis included:\nscript type=\"text/javascript\"\nYMAPPID = [yourapikey]\n/script\nscript type=\"text/javascript\" src=\"http://us.js2.yimg.com/us.js.yimg.com/lib/map/js/api/ymapapi_3_8_0_7.js\"\n/script\nNote the non-standard loading pattern! See:\nhttp://yuiblog.com/blog/2006/12/14/maps-plus-yui/", "guessedname": "preload", "guessedtype": "function"}, "wait_create": {"description": "This will wait until the DOM element appears before completion of map rendering", "guessedname": "wait_create", "guessedtype": "function"}, "setValue": {"description": "set the value: {lat: 45.23234, lon: 2.34456, uzoom: 6, nzoom: 6}", "guessedname": "setValue", "guessedtype": "function"}, "renderComponent": {"description": "Render the field using the appropriate mapping function", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"description": "return the same structure as setValue", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"description": "Adds the 'inputEx-MapField' default className", "guessedname": "setOptions", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "MapField.js", "guessedtype": "function", "shortname": "inputEx.MapField", "description": "Wrapper for Mapping APIs, including Google Maps, Yahoo Maps and Virtual Earth"}, "inputEx.VectorField": {"name": "inputEx.VectorField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "VectorField", "methods": {"setOptions": {"description": "Additional options for VectorField (dimension, size)", "guessedname": "setOptions", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "VectorField.js", "guessedtype": "function", "shortname": "inputEx.VectorField", "description": "A field limited to number inputs (floating)"}, "inputEx.TimeIntervalField": {"name": "inputEx.TimeIntervalField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options\n
      \n
    • unit: inputEx.TimeIntervalField.units.MYUNIT (SECOND,MINUTE,HOUR,DAY,MONTH,YEAR)
    • \n
    "}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "TimeIntervalField", "methods": {"setOptions": {"description": "Additional options", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"params": [{"type": "Number", "name": "val", "description": " The time interval integer (with the given unit)"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of both subfields", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "Integer", "description": "the time interval in the field unit"}, "description": "Concat the values to return a date", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "TimeIntervalField.js", "guessedtype": "function", "shortname": "inputEx.TimeIntervalField", "description": "A field limited to number inputs (floating)"}, "inputEx.Textarea": {"name": "inputEx.Textarea", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • rows: rows attribute
    • \n
    • cols: cols attribute
    • \n
    "}], "description": "Create a textarea input"}], "namespace": "", "module": "inputEx", "guessedname": "Textarea", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the specific options (rows and cols)", "guessedname": "setOptions", "guessedtype": "function"}, "getStateString": {"description": "Add the minLength string message handling", "guessedname": "getStateString", "guessedtype": "function"}, "renderComponent": {"description": "Render an 'INPUT' DOM node", "guessedname": "renderComponent", "guessedtype": "function"}, "validate": {"description": "Uses the optional regexp to validate the field value", "guessedname": "validate", "guessedtype": "function"}, "insert": {"params": [{"type": "String", "name": "text", "description": " Text to insert"}], "description": "Insert text at the current cursor position", "guessedname": "insert", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "Textarea.js", "guessedtype": "function", "shortname": "inputEx.Textarea", "description": "Create a textarea input"}, "inputEx.RPC.Service": {"name": "inputEx.RPC.Service", "constructors": [{"description": "Provide SMD support \nhttp://groups.google.com/group/json-schema/web/service-mapping-description-proposal\nNot implemented: REST envelope, TCP/IP transport\nTake a string as a url to retrieve an smd or an object that is an smd or partial smd to use \nas a definition for the service"}], "namespace": "", "module": "inputEx", "guessedname": "Service", "methods": {"process": {"description": "Process the SMD definition", "guessedname": "process", "guessedtype": "function"}, "_generateService": {"params": [{"type": "String", "name": "serviceName", "description": ""}, {"type": "Method definition", "name": "method", "description": ""}], "description": "Generate the function from a service definition", "guessedname": "_generateService", "guessedtype": "function"}, "fetch": {"params": [{"type": "String", "name": "Absolute", "description": " or relative url"}], "description": "Download the SMD at the given url", "guessedname": "fetch", "guessedtype": "function"}}, "file": "inputex-rpc.js", "guessedtype": "function", "shortname": "inputEx.RPC.Service", "description": "Provide SMD support \nhttp://groups.google.com/group/json-schema/web/service-mapping-description-proposal\nNot implemented: REST envelope, TCP/IP transport\nTake a string as a url to retrieve an smd or an object that is an smd or partial smd to use \nas a definition for the service"}, "inputEx.KeyValueField": {"name": "inputEx.KeyValueField", "constructors": [{"params": [{"type": "Object", "name": "searchFormDef", "description": " InputEx definition object"}], "description": "Display a selectors for keys and auto-update the value field"}], "namespace": "", "module": "inputEx", "guessedname": "KeyValueField", "methods": {"onSelectFieldChange": {"description": "Rebuild the value field", "guessedname": "onSelectFieldChange", "guessedtype": "function"}, "initEvents": {"description": "Subscribe the updatedEvt on the key selector", "guessedname": "initEvents", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "KeyValueField-beta.js", "guessedtype": "function", "shortname": "inputEx.KeyValueField", "description": "Display a selectors for keys and auto-update the value field"}, "inputEx.RadioField": {"name": "inputEx.RadioField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}], "namespace": "", "module": "inputEx", "guessedname": "RadioField", "methods": {"setValue": {"params": [{"type": "Any", "name": "value", "description": " The value schould be one of this.options.values (which defaults to this.options.choices if missing) if allowAny option not true."}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the checkedbox", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Listen for change events on all radios", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the checkbox and the hidden field", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": ""}, "description": "Get the field value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds the Radio button specific options", "guessedname": "setOptions", "guessedtype": "function"}, "isEmpty": {"description": "Should return true if empty", "guessedname": "isEmpty", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "Function called when the checkbox is toggled", "guessedname": "onChange", "guessedtype": "function"}, "clear": {"params": [{"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Clear the field by setting the field value to this.options.value", "guessedname": "clear", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "RadioField.js", "guessedtype": "function", "shortname": "inputEx.RadioField", "description": "Create a radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}, "inputEx.MenuField": {"name": "inputEx.MenuField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • menuItems : contains descriptions of menu items
    • \n
    • menuTrigger : event to trigger menu show
    • \n
    • menuInvite : text to display when no selection made
    • \n
    • menuPosition : array of corners positions (syntax : ['menu popup corner','invite div corner'])
    • \n
    "}], "description": "Create a menu field"}], "namespace": "", "module": "inputEx", "guessedname": "MenuField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Build a menu", "guessedname": "renderComponent", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "MenuField.js", "guessedtype": "function", "shortname": "inputEx.MenuField", "description": "Create a menu field"}, "inputEx.FileField": {"name": "inputEx.FileField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    "}], "description": "Create a file input"}], "namespace": "", "module": "inputEx", "guessedname": "FileField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds size and accept options", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Render an 'INPUT' DOM node", "guessedname": "renderComponent", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "FileField.js", "guessedtype": "function", "shortname": "inputEx.FileField", "description": "Create a file input"}, "inputEx.RPC.Envelope.JSON-RPC-1.0": {"name": "inputEx.RPC.Envelope.JSON-RPC-1.0", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.JSON-RPC-1.0", "description": "JSON-RPC-1.0 envelope"}, "inputEx.DatePickerField": {"name": "inputEx.DatePickerField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " No added option for this field (same as DateField)\n
      \n
    • calendar: yui calendar configuration object
    • \n
    "}], "description": "A DatePicker Field."}], "namespace": "", "module": "inputEx", "guessedname": "DatePickerField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default date picker CSS classes", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Render the input field and the minical container", "guessedname": "renderComponent", "guessedtype": "function"}, "renderCalendar": {"description": "Called ONCE to render the calendar lazily", "guessedname": "renderCalendar", "guessedtype": "function"}}, "extends": "inputEx.DateField", "superclass": "inputEx.DateField", "file": "DatePickerField.js", "guessedtype": "function", "shortname": "inputEx.DatePickerField", "description": "A DatePicker Field."}, "inputEx.RPC.Envelope.PATH": {"name": "inputEx.RPC.Envelope.PATH", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.PATH", "description": "PATH envelope"}, "inputEx.ColorPickerField": {"name": "inputEx.ColorPickerField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for ColorPickerField :\n
      \n
    • showcontrols: show the input values RGB,HSV,RGB hex
    • \n
    "}], "description": "Create a Color picker input field"}], "namespace": "", "module": "inputEx", "guessedname": "ColorPickerField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds the 'inputEx-ColorPickerField' default className", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Render the color button and the colorpicker popup", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " Color to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "Color value"}, "description": "Return the color value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "ColorPickerField.js", "guessedtype": "function", "shortname": "inputEx.ColorPickerField", "description": "Create a Color picker input field"}, "inputEx.TimeField": {"name": "inputEx.TimeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "TimeField", "methods": {"setValue": {"params": [{"type": "String", "name": "str", "description": " Hour string (format HH:MM:SS)"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "Hour string"}, "description": "Returns a string like HH:MM:SS", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "TimeField.js", "guessedtype": "function", "shortname": "inputEx.TimeField", "description": "A field limited to number inputs (floating)"}, "inputEx.TypeField": {"name": "inputEx.TypeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Standard inputEx inputParams definition"}], "description": "TypeField is a field to create fields. The user can create any value he wants by switching fields."}], "namespace": "", "module": "inputEx", "guessedname": "TypeField", "methods": {"setValue": {"params": [{"type": "Object", "name": "value", "description": " Type object configuration"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the label, typeProperties and group", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Adds 2 event listeners: \n- on the button to toggel the propertiesPanel", "guessedname": "initEvents", "guessedtype": "function"}, "updateFieldValue": {"description": "Update the fieldValue", "guessedname": "updateFieldValue", "guessedtype": "function"}, "renderComponent": {"description": "Render the TypeField: create a button with a property panel that contains the field options", "guessedname": "renderComponent", "guessedtype": "function"}, "onTogglePropertiesPanel": {"description": "Toggle the property panel", "guessedname": "onTogglePropertiesPanel", "guessedtype": "function"}, "onChangeGroupOptions": {"description": "Update the fieldValue with the changed properties", "guessedname": "onChangeGroupOptions", "guessedtype": "function"}, "getValue": {"return": {"type": "Object", "description": "Type object configuration"}, "description": "Return the config for a entry in an Group", "guessedname": "getValue", "guessedtype": "function"}, "rebuildGroupOptions": {"description": "Regenerate the property form", "guessedname": "rebuildGroupOptions", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "TypeField.js", "guessedtype": "function", "shortname": "inputEx.TypeField", "description": "TypeField is a field to create fields. The user can create any value he wants by switching fields."}, "inputEx.MultiAutoComplete": {"name": "inputEx.MultiAutoComplete", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    "}], "description": "Create a multi autocomplete field"}], "namespace": "", "module": "inputEx", "guessedname": "MultiAutoComplete", "methods": {"itemSelectHandler": {"description": "Handle item selection in the autocompleter to add it to the list", "guessedname": "itemSelectHandler", "guessedtype": "function"}, "getState": {"description": "Return (stateEmpty|stateRequired) if the value equals the typeInvite attribute", "guessedname": "getState", "guessedtype": "function"}, "renderComponent": {"description": "Build the DDList", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the selected value from the selectValues array"}, "description": "Return the value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"description": "Additional options", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "validate": {"description": "TODO : how to validate ?", "guessedname": "validate", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "onChange event handler", "guessedname": "onChange", "guessedtype": "function"}}, "extends": "inputEx.AutoComplete", "superclass": "inputEx.AutoComplete", "file": "MultiAutoComplete.js", "guessedtype": "function", "shortname": "inputEx.MultiAutoComplete", "description": "Create a multi autocomplete field"}, "inputEx.PasswordField": {"name": "inputEx.PasswordField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object\n
      \n
    • confirmPasswordField: the PasswordField instance to compare to when using 2 password fields for password creation (please use the setConfirmationField method)
    • \n
    • strengthIndicator: display a widget to indicate password strength (default false)
    • \n
    • capsLockWarning: display a warning if CapsLock is on (default false)
    • \n
    • confirm: id of the field to compare to
    • \n
    "}], "description": "Create a password field."}], "namespace": "", "module": "inputEx", "guessedname": "PasswordField", "methods": {"setConfirmationField": {"params": [{"type": "inputEx.PasswordField", "name": "passwordField", "description": " The target password field"}], "description": "Set this field as the confirmation for the targeted password field:", "guessedname": "setConfirmationField", "guessedtype": "function"}, "onInput": {"params": [{"type": "Event", "name": "e", "description": " The original input event"}], "description": "Update the state of the confirmation field", "guessedname": "onInput", "guessedtype": "function"}, "onKeyPress": {"description": "callback to display the capsLockWarning", "guessedname": "onKeyPress", "guessedtype": "function"}, "updateStrengthIndicator": {"description": "Update the strength indicator (called by onKeyPress)", "guessedname": "updateStrengthIndicator", "guessedtype": "function"}, "renderComponent": {"description": "Set the el type to 'password'", "guessedname": "renderComponent", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Add the password regexp, strengthIndicator, capsLockWarning", "guessedname": "setOptions", "guessedtype": "function"}, "setCapsLockWarning": {"description": "Show or hide the caps lock warning given the status", "guessedname": "setCapsLockWarning", "guessedtype": "function"}, "onKeyUp": {"description": "onkeyup callback to update the strength indicator", "guessedname": "onKeyUp", "guessedtype": "function"}, "getStateString": {"description": "Change the state string", "guessedname": "getStateString", "guessedtype": "function"}, "getPasswordStrength": {"description": "Return an integer within [0,100] that quantify the password strength\nFunction taken from Mozilla Code: (changed a little bit the values)\nhttp://lxr.mozilla.org/seamonkey/source/security/manager/pki/resources/content/password.js", "guessedname": "getPasswordStrength", "guessedtype": "function"}, "validate": {"description": "The validation adds the confirmation password field support", "guessedname": "validate", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "PasswordField.js", "guessedtype": "function", "shortname": "inputEx.PasswordField", "properties": {"byId": {"description": "Keep track of all instances, indexed by ids, for the password confirmation field", "guessedname": "byId", "guessedtype": "property"}}, "description": "Create a password field."}, "inputEx.UneditableField": {"name": "inputEx.UneditableField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a uneditable field where you can stick the html you want\nAdded Options:\n
      \n
    • visu: inputEx visu type
    • \n
    "}], "namespace": "", "module": "inputEx", "guessedname": "UneditableField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "val", "description": " The value that will be sent to the visu"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Store the value and update the visu", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "The previously stored value"}, "description": "Return the stored value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "UneditableField.js", "guessedtype": "function", "shortname": "inputEx.UneditableField", "description": "Create a uneditable field where you can stick the html you want\nAdded Options:\n
      \n
    • visu: inputEx visu type
    • \n
    "}, "inputEx.ColorField": {"name": "inputEx.ColorField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for ColorField :\n
      \n
    • colors: list of colors to load as palette
    • \n
    • palette: default palette to be used (if colors option not provided)
    • \n
    • cellPerLine: how many colored cells in a row on the palette
    • \n
    • ratio: screen-like ratio to display the palette, syntax: [with,height], default: [16,9] (if cellPerLine not provided)
    • \n
    • overlayPadding: padding inside the popup palette
    • \n
    • cellWidth: width of a colored cell
    • \n
    • cellHeight: height of a colored cell
    • \n
    • cellMargin: margin of a colored cell (cell spacing = 2*cellMarging)
    • \n
    "}], "description": "Create a Color picker input field"}], "namespace": "", "module": "inputEx", "guessedname": "ColorField", "methods": {"onColorClick": {"params": [{"type": "Event", "name": "e", "description": " The original click event"}], "description": "Handle a color selection", "guessedname": "onColorClick", "guessedtype": "function"}, "setDefaultColors": {"return": {"type": "Array", "description": "List of colors to choose from"}, "params": [{"type": "int", "name": "index", "description": " Index of the palette to use"}], "description": "Set the colors to set in the picker", "guessedname": "setDefaultColors", "guessedtype": "function"}, "renderComponent": {"description": "Render the color button and the colorpicker popup", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "Color value"}, "description": "Return the color value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds the 'inputEx-ColorField' default className", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " Color to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "renderColorGrid": {"description": "This creates a color grid", "guessedname": "renderColorGrid", "guessedtype": "function"}, "close": {"description": "Call overlay when field is removed", "guessedname": "close", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "ColorField.js", "guessedtype": "function", "shortname": "inputEx.ColorField", "properties": {"palettes": {"description": "Default palettes", "guessedname": "palettes", "guessedtype": "property"}}, "description": "Create a Color picker input field"}, "inputEx.IPv4Field": {"name": "inputEx.IPv4Field", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Adds an IPv4 address regexp"}], "namespace": "", "module": "inputEx", "guessedname": "IPv4Field", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "set IPv4 regexp and invalid string", "guessedname": "setOptions", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "IPv4Field.js", "guessedtype": "function", "shortname": "inputEx.IPv4Field", "description": "Adds an IPv4 address regexp"}, "inputEx.widget.DataTable": {"name": "inputEx.widget.DataTable", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Options:\n
      \n
    • parentEl: DOMelement in which we have to insert the datatable
    • \n
    • datasource (or datasourceConfig)
    • \n
    • datatableOpts: additionnal datatable options
    • \n
    • fields: inputEx fields
    • \n
    • dialogLabel: title of the dialog
    • \n
    • columnDefs: YUI datatable columnDefs
    • \n
    • id: (optional, default is autogenerated) sets the id of the div wrapper around the widget
    • \n
    • allowInsert: adds the 'Insert' button (optional, default true)
    • \n
    • allowModify: default true
    • \n
    • allowDelete: default true
    • \n
    • showHideColumnsDlg: add a link to a dialog to show/hide columns
    • \n
    • panelConfig: (optional) YUI's dialog panelConfig object
    • \n
    "}], "description": "Create an editable datatable"}], "namespace": "", "module": "inputEx", "properties": {"datatable": {"description": "YUI's datatable instance", "guessedname": "datatable", "guessedtype": "property"}, "element": {"description": "Main container", "guessedname": "element", "guessedtype": "property"}}, "guessedname": "DataTable", "methods": {"onCellClick": {"description": "Public cell click handler", "guessedname": "onCellClick", "guessedtype": "function"}, "onCancelForm": {"description": "Cancel row edition", "guessedname": "onCancelForm", "guessedtype": "function"}, "render": {"description": "Render the main container only (not the datatable)", "guessedname": "render", "guessedtype": "function"}, "initEvents": {"description": "Init the events", "guessedname": "initEvents", "guessedtype": "function"}, "_onCellClick": {"description": "Handling cell click events", "guessedname": "_onCellClick", "guessedtype": "function"}, "renderShowHideColumnsDlg": {"description": "Render the dialog (+link) to show/hide columns", "guessedname": "renderShowHideColumnsDlg", "guessedtype": "function"}, "onDialogSave": {"description": "When saving the Dialog", "guessedname": "onDialogSave", "guessedtype": "function"}, "removeUnsavedRecord": {"description": "Remove the record that has not been saved", "guessedname": "removeUnsavedRecord", "guessedtype": "function"}, "onInsertButton": {"description": "Insert button event handler", "guessedname": "onInsertButton", "guessedtype": "function"}, "showTableOptions": {"description": "Display the dialog to show/hide fields", "guessedname": "showTableOptions", "guessedtype": "function"}, "setOptions": {"description": "Set the options", "guessedname": "setOptions", "guessedtype": "function"}, "fieldToColumndef": {"description": "Convert a single inputEx field definition to a DataTable column definition", "guessedname": "fieldToColumndef", "guessedtype": "function"}, "fieldsToColumndefs": {"description": "Convert an inputEx fields definition to a DataTable columns definition", "guessedname": "fieldsToColumndefs", "guessedtype": "function"}, "onDialogCancel": {"description": "When canceling the Dialog", "guessedname": "onDialogCancel", "guessedtype": "function"}, "renderDatatable": {"description": "Render the datatable", "guessedname": "renderDatatable", "guessedtype": "function"}, "renderDialog": {"description": "Render the dialog for row edition", "guessedname": "renderDialog", "guessedtype": "function"}, "onClickModify": {"description": "Opens the Dialog to edit the row\nCalled when the user clicked on modify button", "guessedname": "onClickModify", "guessedtype": "function"}, "setColumnDefs": {"description": "Set the column definitions, create them if none from the fields, adds the modify and delete buttons", "guessedname": "setColumnDefs", "guessedtype": "function"}}, "file": "DataTable.js", "guessedtype": "function", "shortname": "inputEx.widget.DataTable", "events": {"Event fired when an item is removed": {"desc": "YAHOO custom event fired when an item is removed", "params": [{"type": "YAHOO.widget.Record", "name": "Removed", "description": " record"}], "guessedname": "itemRemovedEvt", "guessedtype": "property"}, "Event fired when an item is modified": {"desc": "YAHOO custom event fired when an item is modified", "params": [{"type": "YAHOO.widget.Record", "name": "Modified", "description": " record"}], "guessedname": "itemModifiedEvt", "guessedtype": "property"}, "Event fired when an item is added": {"desc": "YAHOO custom event fired when an item is added", "params": [{"type": "YAHOO.widget.Record", "name": "Added", "description": " record"}], "guessedname": "itemAddedEvt", "guessedtype": "property"}}, "description": "Create an editable datatable"}, "inputEx.JsonSchema.Builder": {"file": "json-schema.js", "namespace": "", "module": "inputEx", "methods": {"defaultReferenceResolver": {"description": "return a schema based on the reference value default is to look up in map", "guessedname": "defaultReferenceResolver", "guessedtype": "function"}, "schemaToInputEx": {"params": [{"type": "JSONSchema", "name": "p", "description": ""}], "description": "Convert a JSON schema to inputEx JSON", "guessedname": "schemaToInputEx", "guessedtype": "function"}, "formFromInstance": {"description": "Create an inputEx Json form definition from a json schema instance object\nRespect the \"Self-Defined Schema Convention\"", "guessedname": "formFromInstance", "guessedtype": "function"}}, "guessedname": "Builder", "guessedtype": "function", "shortname": "inputEx.JsonSchema.Builder", "properties": {"referenceResolver": {"guessedname": "referenceResolver", "guessedtype": "property"}, "defaultOptions": {"description": "options to be applied to inputParams unless already specified", "guessedname": "defaultOptions", "guessedtype": "property"}, "schemaToParamMap": {"description": "specify how other schema properties are mapped to inputParam properties", "guessedname": "schemaToParamMap", "guessedtype": "property"}, "schemaIdentifierMap": {"description": "key is reference, value is schema", "guessedname": "schemaIdentifierMap", "guessedtype": "property"}}, "name": "inputEx.JsonSchema.Builder"}, "inputEx.Lens": {"name": "inputEx.Lens", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • lens: html code for the lens. Fields will be displayed in the div elements that has the classname named \"field-(field name)\"
    • \n
    • visus: list of visualization for each field
    • \n
    "}], "description": "Display a group with inplace edit and custom template"}], "namespace": "", "module": "inputEx", "guessedname": "Lens", "methods": {"setOptions": {"description": "Set additional options", "guessedname": "setOptions", "guessedtype": "function"}, "renderFields": {"description": "Render each the fields in each div which class attribute is \"field-\"+fieldName", "guessedname": "renderFields", "guessedtype": "function"}}, "extends": "inputEx.Group", "superclass": "inputEx.Group", "file": "Lens-beta.js", "guessedtype": "function", "shortname": "inputEx.Lens", "description": "Display a group with inplace edit and custom template"}, "inputEx.RPC.Envelope": {"name": "inputEx.RPC.Envelope", "namespace": "", "module": "inputEx", "guessedname": "Envelope", "static": "", "file": "inputex-rpc.js", "guessedtype": "property", "shortname": "inputEx.RPC.Envelope", "description": "inputEx.RPC.Envelope"}, "inputEx.RPC.Envelope.JSON": {"name": "inputEx.RPC.Envelope.JSON", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.JSON", "description": "JSON envelope"}, "inputEx.CombineField": {"name": "inputEx.CombineField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • separators: array of string inserted
    • \n
    "}], "description": "A meta field to put N fields on the same line, separated by separators"}], "namespace": "", "module": "inputEx", "guessedname": "CombineField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "getValue": {"return": {"type": "Array", "description": "An array of values [value1, value2, ...]"}, "description": "Specific getValue", "guessedname": "getValue", "guessedtype": "function"}, "renderFields": {"description": "Render the subfields", "guessedname": "renderFields", "guessedtype": "function"}, "setValue": {"params": [{"type": "Array", "name": "values", "description": " [value1, value2, ...]"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "renderField": {"params": [{"type": "Object", "name": "fieldOptions", "description": " The field properties as required by inputEx()"}], "description": "Override to force required option on each subfield", "guessedname": "renderField", "guessedtype": "function"}}, "extends": "inputEx.Group", "superclass": "inputEx.Group", "file": "CombineField.js", "guessedtype": "function", "shortname": "inputEx.CombineField", "description": "A meta field to put N fields on the same line, separated by separators"}, "inputEx.Field": {"name": "inputEx.Field", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Configuration object\n
      \n
    • name: the name of the field
    • \n
    • required: boolean, the field cannot be null if true
    • \n
    • className: CSS class name for the div wrapper (default 'inputEx-Field')
    • \n
    • value: initial value
    • \n
    • parentEl: HTMLElement or String id, append the field to this DOM element
    • \n
    "}], "description": "An abstract class (never instantiated) that contains the shared features for all fields."}], "namespace": "", "module": "inputEx", "properties": {"options": {"description": "Configuration object to set the options for this class and the parent classes. See constructor details for options added by this class.", "guessedname": "options", "guessedtype": "property"}}, "guessedname": "Field", "methods": {"validate": {"return": {"type": "Boolean", "description": "field validation status (true/false)"}, "description": "Validation of the field", "guessedname": "validate", "guessedtype": "function"}, "render": {"description": "Default render of the dom element. Create a divEl that wraps the field.", "guessedname": "render", "guessedtype": "function"}, "show": {"description": "Show the field", "guessedname": "show", "guessedtype": "function"}, "focus": {"description": "Focus the field", "guessedname": "focus", "guessedtype": "function"}, "setClassFromState": {"description": "Set the styles for valid/invalide state", "guessedname": "setClassFromState", "guessedtype": "function"}, "getState": {"return": {"type": "String", "description": "One of the following states: 'empty', 'required', 'valid' or 'invalid'"}, "description": "Returns the current state (given its value)", "guessedname": "getState", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "close": {"description": "Close the field and eventually opened popups...", "guessedname": "close", "guessedtype": "function"}, "getStateString": {"description": "Get the string for the given state", "guessedname": "getStateString", "guessedtype": "function"}, "hide": {"description": "Hide the field", "guessedname": "hide", "guessedtype": "function"}, "initEvents": {"description": "Initialize events of the Input", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the interface component into this.divEl", "guessedname": "renderComponent", "guessedtype": "function"}, "getEl": {"return": {"type": "HTMLElement", "description": "divEl The main DIV wrapper"}, "description": "The default render creates a div to put in the messages", "guessedname": "getEl", "guessedtype": "function"}, "isEmpty": {"description": "Should return true if empty", "guessedname": "isEmpty", "guessedtype": "function"}, "destroy": {"description": "Purge all event listeners and remove the component from the dom", "guessedname": "destroy", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "onChange event handler", "guessedname": "onChange", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The new value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Function to set the value", "guessedname": "setValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "onFocus": {"params": [{"type": "Event", "name": "e", "description": " The original 'focus' event"}], "description": "Function called on the focus event", "guessedname": "onFocus", "guessedtype": "function"}, "displayMessage": {"params": [{"type": "String", "name": "msg", "description": " Message to display"}], "description": "Update the message", "guessedname": "displayMessage", "guessedtype": "function"}, "onBlur": {"params": [{"type": "Event", "name": "e", "description": " The original 'blur' event"}], "description": "Function called on the blur event", "guessedname": "onBlur", "guessedtype": "function"}, "clear": {"params": [{"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Clear the field by setting the field value to this.options.value", "guessedname": "clear", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "value of the field"}, "description": "Return the value of the input", "guessedname": "getValue", "guessedtype": "function"}, "fireUpdatedEvt": {"description": "Fire the \"updated\" event (only if the field validated)\nEscape the stack using a setTimeout", "guessedname": "fireUpdatedEvt", "guessedtype": "function"}}, "file": "Field.js", "guessedtype": "function", "shortname": "inputEx.Field", "events": {"updatedEvt": {"desc": "YAHOO custom event fired when the field is \"updated\"
    subscribe with: this.updatedEvt.subscribe(function(e, params) { var value = params[0]; console.log(\"updated\",value, this.updatedEvt); }, this, true);", "params": [{"type": "Any", "name": "value", "description": " The new value of the field"}], "description": "Event fired after the user changed the value of the field.", "guessedname": "updatedEvt", "guessedtype": "property"}}, "description": "An abstract class (never instantiated) that contains the shared features for all fields."}, "inputEx.EmailField": {"name": "inputEx.EmailField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Field that adds the email regexp for validation. Result is always lower case."}], "namespace": "", "module": "inputEx", "guessedname": "EmailField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the email regexp and invalid message", "guessedname": "setOptions", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "The email string"}, "description": "Set the value to lower case since email have no case", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "EmailField.js", "guessedtype": "function", "shortname": "inputEx.EmailField", "description": "Field that adds the email regexp for validation. Result is always lower case."}, "inputEx.RTEField": {"name": "inputEx.RTEField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • opts: the options to be added when calling the RTE constructor (see YUI RTE)
    • \n
    • type: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.
    • \n
    "}], "description": "Wrapper for the Rich Text Editor from YUI"}], "namespace": "", "module": "inputEx", "guessedname": "RTEField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Render the field using the YUI Editor widget", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The html string"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the html content", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "the html string"}, "description": "Get the html string", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "RTEField.js", "guessedtype": "function", "shortname": "inputEx.RTEField", "description": "Wrapper for the Rich Text Editor from YUI"}, "inputEx.widget.DDListItem": {"name": "inputEx.widget.DDListItem", "constructors": [{"params": [{"type": "String", "name": "id", "description": ""}], "description": "DDProxy for DDList items (used by DDList)"}], "namespace": "", "module": "inputEx", "guessedname": "DDListItem", "methods": {"onDragDrop": {"guessedname": "onDragDrop", "guessedtype": "function"}, "onDrag": {"description": "Keep track of the direction of the drag for use during onDragOver", "guessedname": "onDrag", "guessedtype": "function"}, "startDrag": {"description": "Create the proxy element", "guessedname": "startDrag", "guessedtype": "function"}, "onDragOver": {"guessedname": "onDragOver", "guessedtype": "function"}, "endDrag": {"description": "Handle the endDrag and eventually fire the listReordered event", "guessedname": "endDrag", "guessedtype": "function"}}, "extends": "YAHOO.util.DDProxy", "superclass": "YAHOO.util.DDProxy", "file": "ddlist.js", "guessedtype": "function", "shortname": "inputEx.widget.DDListItem", "description": "DDProxy for DDList items (used by DDList)"}, "inputEx.InPlaceEdit": {"name": "inputEx.InPlaceEdit", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • visu
    • \n
    • editorField
    • \n
    • animColors
    • \n
    "}], "description": "Meta field providing in place editing (the editor appears when you click on the formatted value)."}], "namespace": "", "module": "inputEx", "guessedname": "InPlaceEdit", "methods": {"onOkEditor": {"description": "Validate the editor (ok button, enter key or tabulation key)", "guessedname": "onOkEditor", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value and update the display", "guessedname": "setValue", "guessedtype": "function"}, "onVisuMouseOver": {"params": [{"type": "Event", "name": "e", "description": " The original mouseover event"}], "description": "Set the color when hovering the field", "guessedname": "onVisuMouseOver", "guessedtype": "function"}, "openEditor": {"description": "Display the editor", "guessedname": "openEditor", "guessedtype": "function"}, "initEvents": {"description": "Adds the events for the editor and color animations", "guessedname": "initEvents", "guessedtype": "function"}, "onVisuMouseOut": {"params": [{"type": "Event", "name": "e", "description": " The original mouseout event"}], "description": "Start the color animation when hovering the field", "guessedname": "onVisuMouseOut", "guessedtype": "function"}, "renderComponent": {"description": "Override renderComponent to create 2 divs: the visualization one, and the edit in place form", "guessedname": "renderComponent", "guessedtype": "function"}, "onKeyDown": {"params": [{"type": "Event", "name": "e", "description": " The original keydown event"}], "description": "Handle the tabulation key to close the editor", "guessedname": "onKeyDown", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "The value of the subfield"}, "description": "Returned the previously stored value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "renderVisuDiv": {"description": "Create the div that will contain the visualization of the value", "guessedname": "renderVisuDiv", "guessedtype": "function"}, "onKeyUp": {"params": [{"type": "Event", "name": "e", "description": " The original keyup event"}], "description": "Handle some keys events to close the editor", "guessedname": "onKeyUp", "guessedtype": "function"}, "close": {"description": "Close the editor when calling the close function on this field", "guessedname": "close", "guessedtype": "function"}, "onCancelEditor": {"params": [{"type": "Event", "name": "e", "description": " The original event (click, blur or keydown)"}], "description": "Close the editor on cancel (cancel button, blur event or escape key)", "guessedname": "onCancelEditor", "guessedtype": "function"}, "renderEditor": {"description": "Render the editor", "guessedname": "renderEditor", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "InPlaceEdit.js", "guessedtype": "function", "shortname": "inputEx.InPlaceEdit", "description": "Meta field providing in place editing (the editor appears when you click on the formatted value)."}, "inputEx.ListField": {"name": "inputEx.ListField", "constructors": [{"params": [{"type": "type: 'string'", "name": "options", "description": " Added options:\n
      \n
    • sortable: Add arrows to sort the items if true (default false)
    • \n
    • elementType: an element type definition (default is )
    • \n
    • useButtons: use buttons instead of links (default false)
    • \n
    • unique: require values to be unique (default false)
    • \n
    • listAddLabel: if useButtons is false, text to add an item
    • \n
    • listRemoveLabel: if useButtons is false, text to remove an item
    • \n
    • maxItems: maximum number of items (leave undefined if no maximum, default)
    • \n
    • minItems: minimum number of items to validate (leave undefined if no minimum, default)
    • \n
    "}], "description": "Meta field to create a list of other fields"}], "namespace": "", "module": "inputEx", "guessedname": "ListField", "methods": {"onDelete": {"params": [{"type": "Event", "name": "e", "description": " The original click event"}], "description": "Called when the user clicked on a delete button.", "guessedname": "onDelete", "guessedtype": "function"}, "setValue": {"params": [{"type": "Array", "name": "value", "description": " The list of values to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of all the subfields", "guessedname": "setValue", "guessedtype": "function"}, "onArrowDown": {"params": [{"type": "Event", "name": "e", "description": " Original click event"}], "description": "Switch a subField with its next one\nCalled when the user clicked on the down arrow of a sortable list", "guessedname": "onArrowDown", "guessedtype": "function"}, "initEvents": {"description": "Handle the click event on the add button", "guessedname": "initEvents", "guessedtype": "function"}, "removeElement": {"params": [{"type": "integer", "name": "index", "description": " The index of the element to remove"}], "description": "Remove the line from the dom and the subField from the list.", "guessedname": "removeElement", "guessedtype": "function"}, "renderComponent": {"description": "Render the addButton", "guessedname": "renderComponent", "guessedtype": "function"}, "renderSubField": {"return": {"type": "inputEx.Field", "description": "instance of the created field (inputEx.Field or derivative)"}, "params": [{"type": "Any", "name": "The", "description": " initial value of the subfield to create"}], "description": "Adds a new line to the List Field", "guessedname": "renderSubField", "guessedtype": "function"}, "getValue": {"return": {"type": "Array", "description": "The array"}, "description": "Return the array of values", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the ListField classname", "guessedname": "setOptions", "guessedtype": "function"}, "onAddButton": {"params": [{"type": "Event", "name": "e", "description": " The original click event"}], "description": "Add a new element to the list and fire updated event", "guessedname": "onAddButton", "guessedtype": "function"}, "validate": {"returns": "{Boolean} true if all fields validate, required fields are not empty and unique constraint (if specified) is not violated", "description": "Validate each field", "guessedname": "validate", "guessedtype": "function"}, "onArrowUp": {"params": [{"type": "Event", "name": "e", "description": " Original click event"}], "description": "Switch a subField with its previous one\nCalled when the user clicked on the up arrow of a sortable list", "guessedname": "onArrowUp", "guessedtype": "function"}, "addElement": {"return": {"type": "inputEx.Field", "description": "SubField added instance"}, "params": [{"type": "Any", "name": "The", "description": " initial value of the subfield to create"}], "description": "Adds an element", "guessedname": "addElement", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "ListField.js", "guessedtype": "function", "shortname": "inputEx.ListField", "properties": {"subFields": {"description": "List of all the subField instances", "guessedname": "subFields", "guessedtype": "property"}}, "description": "Meta field to create a list of other fields"}, "inputEx.IntegerField": {"name": "inputEx.IntegerField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • negative: boolean indicating if we accept boolean numbers
    • \n
    "}], "description": "A field limited to number inputs"}], "namespace": "", "module": "inputEx", "guessedname": "IntegerField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": ""}], "description": "Adds the negative, min, and max options", "guessedname": "setOptions", "guessedtype": "function"}, "validate": {"description": "Validate if is a number", "guessedname": "validate", "guessedtype": "function"}, "getValue": {"return": {"type": "int", "description": "The integer value"}, "description": "Get the value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "IntegerField.js", "guessedtype": "function", "shortname": "inputEx.IntegerField", "description": "A field limited to number inputs"}, "inputEx.RPC.SMDTester": {"name": "inputEx.RPC.SMDTester", "namespace": "", "module": "inputEx", "guessedname": "SMDTester", "methods": {"onServiceLoaded": {"description": "When the SMD has been loaded", "guessedname": "onServiceLoaded", "guessedtype": "function"}, "loadSMD": {"description": "When the user select a SMD in the select", "guessedname": "loadSMD", "guessedtype": "function"}, "onServiceMethod": {"description": "When a method has been selected :", "guessedname": "onServiceMethod", "guessedtype": "function"}}, "file": "smdTester.js", "guessedtype": "function", "shortname": "inputEx.RPC.SMDTester", "description": "Creates a form to test various SMD files"}, "inputEx.TreeField": {"name": "inputEx.TreeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Meta field to create trees"}], "namespace": "", "module": "inputEx", "guessedname": "TreeField", "methods": {"renderComponent": {"description": "Render the addButton and childContainer", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "obj", "description": " The tree object"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "renderSubField": {"return": {"type": "inputEx.Field", "description": "instance of the created field (inputEx.Field or derivative)"}, "params": [{"type": "Any", "name": "value", "description": " Value of the subelement"}], "description": "Adds a new line to the List Field", "guessedname": "renderSubField", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "The tree object"}, "description": "Get the value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.ListField", "superclass": "inputEx.ListField", "file": "TreeField.js", "guessedtype": "function", "shortname": "inputEx.TreeField", "description": "Meta field to create trees"}, "inputEx.JsonSchema": {"name": "inputEx.JsonSchema", "namespace": "", "module": "inputEx", "guessedname": "JsonSchema", "methods": {"inputExToSchema": {"description": "Convert the inputEx JSON fields to a JSON schema", "guessedname": "inputExToSchema", "guessedtype": "function"}}, "static": "", "file": "json-schema.js", "guessedtype": "property", "shortname": "inputEx.JsonSchema", "description": "Namespace containing utility functions for conversion between inputEx JSON format and JSON Schema\nbased on \"Json Schema Proposal Working Draft\":\nhttp://groups.google.com/group/json-schema/web/json-schema-proposal-working-draft\nThe proposal is still under discussion and the implementation is very minimalist.\nTODO:\n- we should provide a lot of json schema examples and instances that should/should not validate\n- use the $ref (async calls => provide callbacks to methods)\n- Inheritance\nLimitations:\n- ??? Please do not trust inputEx: the getValue may return a value which do NOT validate the schema (provide an example ?)\n- no tuple typing for arrays\n- no \"Union type definition\""}, "inputEx.RPC.Envelope.JSON-RPC-2.0": {"name": "inputEx.RPC.Envelope.JSON-RPC-2.0", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "serialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.JSON-RPC-2.0", "description": "JSON-RPC-2.0 envelope"}, "inputEx.widget.JsonTreeInspector": {"name": "inputEx.widget.JsonTreeInspector", "constructors": [{"params": [{"type": "String|HTMLElement", "name": "parentEl", "description": " where to append the tree"}, {"type": "Object", "name": "object", "description": " the object to inspect"}, {"type": "String", "name": "jsonPath", "description": " JSON Path string (optional) (http://code.google.com/p/jsonpath/wiki/Javascript)"}], "description": "Create a treeview to inspect a javascript object"}], "namespace": "", "module": "inputEx", "guessedname": "JsonTreeInspector", "methods": {"expandAll": {"params": [{"type": "Integer", "name": "maxLevel", "description": ""}], "description": "Expand the root node", "guessedname": "expandAll", "guessedtype": "function"}, "expandBranch": {"params": [{"type": "HTMLElement", "name": "li", "description": ""}, {"type": "Integer", "name": "maxLevel", "description": ""}], "description": "Expand a branch given a li element", "guessedname": "expandBranch", "guessedtype": "function"}, "buildBranch": {"description": "Build the sub-branch for obj", "guessedname": "buildBranch", "guessedtype": "function"}, "expandElement": {"description": "expand the node given the li element", "guessedname": "expandElement", "guessedtype": "function"}, "jsonPath": {"description": "JSONPath 0.8.0 - XPath for JSON\nhttp://code.google.com/p/jsonpath/\nhttp://code.google.com/p/jsonpath/wiki/Javascript\nCopyright (c) 2007 Stefan Goessner (goessner.net)\nLicensed under the MIT (MIT-LICENSE.txt) licence.", "guessedname": "jsonPath", "guessedtype": "function"}, "destroy": {"description": "Destroy the widget", "guessedname": "destroy", "guessedtype": "function"}, "onItemClick": {"description": "When the user click on a node", "guessedname": "onItemClick", "guessedtype": "function"}}, "file": "json-tree-inspector.js", "guessedtype": "function", "shortname": "inputEx.widget.JsonTreeInspector", "properties": {"el": {"description": "Main div element", "guessedname": "el", "guessedtype": "property"}, "hash": {"description": "Hash to contain the values indexed by li ids", "guessedname": "hash", "guessedtype": "property"}}, "description": "Create a treeview to inspect a javascript object"}, "inputEx.SliderField": {"name": "inputEx.SliderField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a slider using YUI widgets"}], "namespace": "", "module": "inputEx", "guessedname": "SliderField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the classname to 'inputEx-SliderField'", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "render a slider widget", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The new value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Function to set the value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "int", "description": "The integer value"}, "description": "Get the value from the slider", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "SliderField.js", "guessedtype": "function", "shortname": "inputEx.SliderField", "description": "Create a slider using YUI widgets"}, "inputEx.RPC.Envelope.URL": {"name": "inputEx.RPC.Envelope.URL", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "Serialize data into URI encoded parameters", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "Deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.URL", "description": "URL envelope"}, "inputEx.UrlField": {"name": "inputEx.UrlField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object\n
      \n
    • favicon: boolean whether the domain favicon.ico should be displayed or not (default is true, except for https)
    • \n
    "}], "description": "Adds an url regexp, and display the favicon at this url"}], "namespace": "", "module": "inputEx", "guessedname": "UrlField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds the invalid Url message", "guessedname": "setOptions", "guessedtype": "function"}, "displayFavicon": {"description": "Display the favicon if the icon was found (use of the naturalWidth property)", "guessedname": "displayFavicon", "guessedtype": "function"}, "render": {"description": "Adds a img tag before the field to display the favicon", "guessedname": "render", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "UrlField.js", "guessedtype": "function", "shortname": "inputEx.UrlField", "description": "Adds an url regexp, and display the favicon at this url"}, "inputEx.widget.dtInPlaceEdit": {"name": "inputEx.widget.dtInPlaceEdit", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Options"}], "description": "InPlaceEditable datatable using inputEx fields"}], "namespace": "", "module": "inputEx", "guessedname": "dtInPlaceEdit", "methods": {"onRemoveFailure": {"description": "When failed to delete a row", "guessedname": "onRemoveFailure", "guessedtype": "function"}, "onCellClick": {"description": "Public handler - When clicking on one of the datatable's cells", "guessedname": "onCellClick", "guessedtype": "function"}, "onCancelButton": {"description": "When clicking \"Cancel\" button to cancel a new row", "guessedname": "onCancelButton", "guessedtype": "function"}, "initEvents": {"description": "Init the events", "guessedname": "initEvents", "guessedtype": "function"}, "_onCellClick": {"description": "Handling cell click events", "guessedname": "_onCellClick", "guessedtype": "function"}, "onModifyItem": {"description": "When modifying a row", "guessedname": "onModifyItem", "guessedtype": "function"}, "onRemoveItem": {"description": "When trying to delete a row", "guessedname": "onRemoveItem", "guessedtype": "function"}, "onRemoveSuccess": {"description": "When successfully deleted a row", "guessedname": "onRemoveSuccess", "guessedtype": "function"}, "onDialogSave": {"description": "When saving the Dialog (option insertWithDialog)", "guessedname": "onDialogSave", "guessedtype": "function"}, "onInsertButton": {"description": "When clicking on the \"insert\" button to add a new row", "guessedname": "onInsertButton", "guessedtype": "function"}, "setOptions": {"description": "Additional options", "guessedname": "setOptions", "guessedtype": "function"}, "onModifySuccess": {"description": "When successfully modified a row", "guessedname": "onModifySuccess", "guessedtype": "function"}, "onAddFailure": {"description": "When Failed to Add Row", "guessedname": "onAddFailure", "guessedtype": "function"}, "onAddButton": {"description": "When clicking \"Add\" button to save a new row", "guessedname": "onAddButton", "guessedtype": "function"}, "onAddSuccess": {"description": "Validate the new record's row : \nYou need to call this function when you really added the item with an id\nIe if you trigger an Ajax request to insert your record into database,\nyou trigger this function only if your request didn't failed", "guessedname": "onAddSuccess", "guessedtype": "function"}, "setColumnDefs": {"description": "Modify the column definitions to add the inputEx CellEditor", "guessedname": "setColumnDefs", "guessedtype": "function"}}, "extends": "inputEx.widget.DataTable", "superclass": "inputEx.widget.DataTable", "file": "dtInPlaceEdit.js", "guessedtype": "function", "shortname": "inputEx.widget.dtInPlaceEdit", "description": "InPlaceEditable datatable using inputEx fields"}, "inputEx.DateTimeField": {"name": "inputEx.DateTimeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options\n
      \n
    • dateFormat: same as DateField
    • \n
    "}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "DateTimeField", "methods": {"setValue": {"params": [{"type": "Date", "name": "val", "description": " Date to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of both subfields", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "Date", "description": "The javascript Date object"}, "description": "Concat the values to return a date", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "DateTimeField.js", "guessedtype": "function", "shortname": "inputEx.DateTimeField", "description": "A field limited to number inputs (floating)"}, "inputEx.MultiSelectField": {"name": "inputEx.MultiSelectField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • selectValues: contains the list of options values
    • \n
    • selectOptions: list of option element texts
    • \n
    "}], "description": "Create a multi select field"}], "namespace": "", "module": "inputEx", "guessedname": "MultiSelectField", "methods": {"onAddNewItem": {"description": "Add an item to the list when the select changed", "guessedname": "onAddNewItem", "guessedtype": "function"}, "initEvents": {"description": "Register the \"change\" event", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Build the DDList", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the selected value from the selectValues array"}, "description": "Return the value", "guessedname": "getValue", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the list", "guessedname": "setValue", "guessedtype": "function"}, "onItemRemoved": {"description": "Re-enable the option element when an item is removed by the user", "guessedname": "onItemRemoved", "guessedtype": "function"}}, "extends": "inputEx.SelectField", "superclass": "inputEx.SelectField", "file": "MultiSelectField.js", "guessedtype": "function", "shortname": "inputEx.MultiSelectField", "description": "Create a multi select field"}, "inputEx.RadioButton": {"name": "inputEx.RadioButton", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a YUI Radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}], "namespace": "", "module": "inputEx", "guessedname": "RadioButton", "extends": "inputEx.RadioField", "superclass": "inputEx.RadioField", "file": "RadioButton.js", "guessedtype": "function", "shortname": "inputEx.RadioButton", "description": "Create a YUI Radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}, "inputEx.SelectField": {"name": "inputEx.SelectField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • selectValues: contains the list of options values
    • \n
    • selectOptions: list of option element texts
    • \n
    • multiple: boolean to allow multiple selections
    • \n
    "}], "description": "Create a select field"}], "namespace": "", "module": "inputEx", "guessedname": "SelectField", "methods": {"setValue": {"params": [{"type": "String", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "addOption": {"params": [{"type": "Object", "name": "item", "description": ""}], "description": "Add an option in the selector", "guessedname": "addOption", "guessedtype": "function"}, "initEvents": {"description": "Register the \"change\" event", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Build a select tag with options", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the selected value from the selectValues array"}, "description": "Return the value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "SelectField.js", "guessedtype": "function", "shortname": "inputEx.SelectField", "description": "Create a select field"}, "inputEx.NumberField": {"name": "inputEx.NumberField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "NumberField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": ""}], "description": "Adds the min, and max options", "guessedname": "setOptions", "guessedtype": "function"}, "validate": {"description": "Check if the entered number is a float", "guessedname": "validate", "guessedtype": "function"}, "getValue": {"return": {"type": "Number", "description": "The parsed float"}, "description": "Return a parsed float (javascript type number)", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "NumberField.js", "guessedtype": "function", "shortname": "inputEx.NumberField", "description": "A field limited to number inputs (floating)"}, "inputEx.Group": {"name": "inputEx.Group", "constructors": [{"params": [{"type": "Object} options The following options are added for Groups and subclasses:\n
      \n
    • fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, inputParams: {inputparams object} ", "name": "
    • ", "description": "\n
    • legend: The legend for the fieldset (default is an empty string)
    • \n
    • collapsible: Boolean to make the group collapsible (default is false)
    • \n
    • collapsed: If collapsible only, will be collapsed at creation (default is false)
    • \n
    • flatten:
    • \n
    "}], "description": "Handle a group of fields"}], "namespace": "", "module": "inputEx", "guessedname": "Group", "methods": {"runFieldsInteractions": {"description": "Run the interactions for all fields", "guessedname": "runFieldsInteractions", "guessedtype": "function"}, "onChange": {"params": [{"type": "String", "name": "eventName", "description": " Event name"}, {"type": "Array", "name": "args", "description": " Array of [fieldValue, fieldInstance]"}], "description": "Called when one of the group subfields is updated.", "guessedname": "onChange", "guessedtype": "function"}, "renderFields": {"description": "Render all the fields.\nWe use the parentEl so that inputEx.Form can append them to the FORM tag", "guessedname": "renderFields", "guessedtype": "function"}, "getFieldByName": {"params": [{"type": "String", "name": "fieldName", "description": " The name property"}], "description": "Return the sub-field instance by its name property", "guessedname": "getFieldByName", "guessedtype": "function"}, "render": {"description": "Render the group", "guessedname": "render", "guessedtype": "function"}, "initEvents": {"description": "Add a listener for the 'collapsible' option", "guessedname": "initEvents", "guessedtype": "function"}, "setErrors": {"params": [{"type": "Object || Array", "name": "errors", "description": " Hash object containing error messages as Strings referenced by the field name, or array [ [\"fieldName\", \"Message\"], ...]"}], "description": "Write error messages for fields as specified in the hash", "guessedname": "setErrors", "guessedtype": "function"}, "clear": {"params": [{"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Clear all subfields", "guessedname": "clear", "guessedtype": "function"}, "runInteractions": {"params": [{"type": "inputEx.Field", "name": "fieldInstance", "description": " Field that just changed"}, {"type": "Any", "name": "fieldValue", "description": " Field value"}], "description": "Run the interactions for the given field instance", "guessedname": "runInteractions", "guessedtype": "function"}, "runAction": {"params": [{"type": "Object", "name": "action", "description": " inputEx action object"}, {"type": "Any", "name": "triggerValue", "description": " The value that triggered the interaction"}], "description": "Run an action (for interactions)", "guessedname": "runAction", "guessedtype": "function"}, "focus": {"description": "Set the focus to the first input in the group", "guessedname": "focus", "guessedtype": "function"}, "disable": {"description": "Disable all fields in the group", "guessedname": "disable", "guessedtype": "function"}, "getValue": {"description": "Return an object with all the values of the fields", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds some options: legend, collapsible, fields...", "guessedname": "setOptions", "guessedtype": "function"}, "enable": {"description": "Enable all fields in the group", "guessedname": "enable", "guessedtype": "function"}, "close": {"description": "Close the group (recursively calls \"close\" on each field, does NOT hide the group )\nCall this function before hidding the group to close any field popup", "guessedname": "close", "guessedtype": "function"}, "validate": {"returns": "{Boolean} true if all fields validate and required fields are not empty", "description": "Validate each field", "guessedname": "validate", "guessedtype": "function"}, "renderField": {"params": [{"type": "Object", "name": "fieldOptions", "description": " The field properties as required by the inputEx() method"}], "description": "Instanciate one field given its parameters, type or fieldClass", "guessedname": "renderField", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The group value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the values of each field from a key/value hash object", "guessedname": "setValue", "guessedtype": "function"}, "toggleCollapse": {"description": "Toggle the collapse state", "guessedname": "toggleCollapse", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "Group.js", "guessedtype": "function", "shortname": "inputEx.Group", "description": "Handle a group of fields"}, "inputEx.AutoComplete": {"name": "inputEx.AutoComplete", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for Autocompleter\n
      \n
    • datasource: the datasource
    • \n
    • autoComp: autocompleter options
    • \n
    • returnValue: function to format the returned value (optional)
    • \n
    "}], "description": "An autocomplete field that wraps the YUI autocompleter"}], "namespace": "", "module": "inputEx", "guessedname": "AutoComplete", "methods": {"itemSelectHandler": {"params": [{"type": "", "name": "sType", "description": ""}, {"type": "", "name": "aArgs", "description": ""}], "description": "itemSelect handler", "guessedname": "itemSelectHandler", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " Value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Custom event init\n
      \n
    • listen to autocompleter textboxBlurEvent instead of this.el \"blur\" event
    • \n
    • listener to autocompleter textboxBlurEvent added in buildAutocomplete method
    • \n
    ", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the hidden list element", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"description": "Return the hidden value (stored in a hidden input)", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds autocomplete options", "guessedname": "setOptions", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "onChange event handler", "guessedname": "onChange", "guessedtype": "function"}, "buildAutocomplete": {"description": "Build the YUI autocompleter", "guessedname": "buildAutocomplete", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "AutoComplete.js", "guessedtype": "function", "shortname": "inputEx.AutoComplete", "description": "An autocomplete field that wraps the YUI autocompleter"}, "inputEx.DateSplitField": {"name": "inputEx.DateSplitField", "namespace": "", "module": "inputEx", "guessedname": "DateSplitField", "methods": {"setValue": {"params": [{"type": "Date", "name": "val", "description": " Date to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value. Format the date according to options.dateFormat", "guessedname": "setValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "DateSplitField.js", "guessedtype": "function", "shortname": "inputEx.DateSplitField", "description": "inputEx.DateSplitField"}, "inputEx.StringField": {"name": "inputEx.StringField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • regexp: regular expression used to validate (otherwise it always validate)
    • \n
    • size: size attribute of the input
    • \n
    • maxLength: maximum size of the string field (no message display, uses the maxlength html attribute)
    • \n
    • minLength: minimum size of the string field (will display an error message if shorter)
    • \n
    • typeInvite: string displayed when the field is empty
    • \n
    • readonly: set the field as readonly
    • \n
    "}], "description": "Basic string field (equivalent to the input type \"text\")"}], "namespace": "", "module": "inputEx", "guessedname": "StringField", "methods": {"onFocus": {"description": "Clear the typeInvite when the field gains focus", "guessedname": "onFocus", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The new value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Function to set the value", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Register the change, focus and blur events", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render an 'INPUT' DOM node", "guessedname": "renderComponent", "guessedtype": "function"}, "focus": {"description": "Set the focus to this field", "guessedname": "focus", "guessedtype": "function"}, "setClassFromState": {"description": "Display the type invite after setting the class", "guessedname": "setClassFromState", "guessedtype": "function"}, "getValue": {"params": [{"type": "String", "name": "The", "description": " string value"}], "description": "Return the string value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "validate": {"description": "Uses the optional regexp to validate the field value", "guessedname": "validate", "guessedtype": "function"}, "getStateString": {"description": "Add the minLength string message handling", "guessedname": "getStateString", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "StringField.js", "guessedtype": "function", "shortname": "inputEx.StringField", "description": "Basic string field (equivalent to the input type \"text\")"}, "inputEx.DateField": {"name": "inputEx.DateField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Add the folowing options: \n
      \n
    • dateFormat: Editor format (the one which is presented to the user) default to 'm/d/Y'
    • \n
    • valueFormat: if falsy, the field will return a javascript Date instance. Otherwise, this format will be used for input parsing/output formatting
    • \n
    "}], "description": "A Date Field."}], "namespace": "", "module": "inputEx", "guessedname": "DateField", "methods": {"setValue": {"params": [{"type": "Date", "name": "val", "description": " Date to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Format the date according to options.dateFormat", "guessedname": "setValue", "guessedtype": "function"}, "parseWithFormat": {"description": "Those methods are limited but largely enough for our usage", "guessedname": "parseWithFormat", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds the 'inputEx-DateField' default className", "guessedname": "setOptions", "guessedtype": "function"}, "formatDate": {"description": "Those methods are limited but largely enough for our usage", "guessedname": "formatDate", "guessedtype": "function"}, "validate": {"description": "Specific Date validation depending of the 'format' option", "guessedname": "validate", "guessedtype": "function"}, "getValue": {"return": {"type": "String || Date", "description": "Formatted date using the valueFormat or a javascript Date instance"}, "params": [{"type": "Boolean", "name": "forceDate", "description": " Skip the valueFormat option if set to truthy"}], "description": "Return the date", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "DateField.js", "guessedtype": "function", "shortname": "inputEx.DateField", "description": "A Date Field."}, "inputEx.Form": {"name": "inputEx.Form", "constructors": [{"params": [{"type": "Object} options The following options are added for Forms:\n
      \n
    • buttons: list of button definition objects {value: 'Click Me', type: 'submit'}
    • \n
    • ajax: send the form through an ajax request (submit button should be present): {method: 'POST', uri: 'myScript.php', callback: same as YAHOO.util.Connect.asyncRequest callback", "name": "
    • ", "description": "\n
    • showMask: adds a mask over the form while the request is running (default is false)
    • \n
    "}], "description": "Create a group of fields within a FORM tag and adds buttons"}], "namespace": "", "module": "inputEx", "guessedname": "Form", "methods": {"hideMask": {"description": "Hide the form mask", "guessedname": "hideMask", "guessedtype": "function"}, "renderMask": {"description": "Create a Mask over the form", "guessedname": "renderMask", "guessedtype": "function"}, "onSubmit": {"params": [{"type": "Event", "name": "e", "description": " The original onSubmit event"}], "description": "Intercept the 'onsubmit' event and stop it if !validate\nIf the ajax option object is set, use YUI async Request to send the form", "guessedname": "onSubmit", "guessedtype": "function"}, "render": {"description": "Render the group", "guessedname": "render", "guessedtype": "function"}, "initEvents": {"description": "Init the events", "guessedname": "initEvents", "guessedtype": "function"}, "enable": {"description": "Enable all fields and buttons in the form", "guessedname": "enable", "guessedtype": "function"}, "disable": {"description": "Disable all fields and buttons in the form", "guessedname": "disable", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Adds buttons and set ajax default parameters", "guessedname": "setOptions", "guessedtype": "function"}, "asyncRequest": {"description": "Send the form value in JSON through an ajax request", "guessedname": "asyncRequest", "guessedtype": "function"}, "renderButtons": {"description": "Render the buttons", "guessedname": "renderButtons", "guessedtype": "function"}, "showMask": {"description": "Show the form mask", "guessedname": "showMask", "guessedtype": "function"}}, "extends": "inputEx.Group", "superclass": "inputEx.Group", "file": "Form.js", "guessedtype": "function", "shortname": "inputEx.Form", "description": "Create a group of fields within a FORM tag and adds buttons"}, "inputEx.HiddenField": {"name": "inputEx.HiddenField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a hidden input, inherits from inputEx.Field"}], "namespace": "", "module": "inputEx", "guessedname": "HiddenField", "methods": {"setValue": {"params": [{"type": "Any", "name": "val", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Stores the value in a local variable", "guessedname": "setValue", "guessedtype": "function"}, "render": {"description": "Doesn't render much...", "guessedname": "render", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the previously stored value"}, "description": "Get the previously stored value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "HiddenField.js", "guessedtype": "function", "shortname": "inputEx.HiddenField", "description": "Create a hidden input, inherits from inputEx.Field"}, "inputEx": {"return": "{inputEx.Field} Created field instance", "name": "inputEx", "namespace": "", "module": "inputEx", "guessedname": "inputEx", "methods": {"compactArray": {"return": {"type": "Array", "description": "The new array"}, "description": "Create a new array without the null or undefined values", "static": "", "guessedname": "compactArray", "guessedtype": "function", "params": [{"type": "Array", "name": "arr", "description": " The array to compact"}]}, "cn": {"return": {"type": "HTMLElement", "description": "The created node"}, "description": "Helper function to create a DOM node. (wrapps the document.createElement tag and the inputEx.sn functions)", "static": "", "guessedname": "cn", "guessedtype": "function", "params": [{"type": "String", "name": "tag", "description": " The tagName to create (ex: 'div', 'a', ...)"}, {"type": "Object", "name": "[domAttributes]", "description": " see inputEx.sn"}, {"type": "Object", "name": "[styleAttributes]", "description": " see inputEx.sn"}, {"type": "String", "name": "[innerHTML]", "description": " The html string to append into the created element"}]}, "registerType": {"static": "", "params": [{"type": "String", "name": "type", "description": " String used as the inputEx field type"}, {"type": "Class", "name": "fieldClass", "description": " Field Class to register as this type"}, {"type": "Array", "name": "groupOptions", "description": " List of inputEx field description for each option"}, {"type": "Boolean", "name": "dontInherit", "description": " Won't inherhit the parent field properties if set to true"}], "description": "When you create a new inputEx Field Class, you can register it to give it a simple type.\nex: inputEx.registerType(\"color\", inputEx.ColorField);", "guessedname": "registerType", "guessedtype": "function"}, "indexOf": {"return": {"type": "number", "description": "Element position, -1 if not found"}, "description": "Find the position of the given element. (This method is not available in IE 6)", "static": "", "guessedname": "indexOf", "guessedtype": "function", "params": [{"type": "Object", "name": "el", "description": " Value to search"}, {"type": "Array", "name": "arr", "description": " The array to search"}]}, "getType": {"return": {"type": "String", "description": "returns the inputEx type string or null"}, "description": "Get the inputex type for the given class (ex: inputEx.getType(inputEx.ColorField) returns \"color\")", "static": "", "guessedname": "getType", "guessedtype": "function", "params": [{"type": "inputEx.Field", "name": "FieldClass", "description": " An inputEx.Field or derivated class"}]}, "buildField": {"return": {"type": "inputEx.Field", "description": "Created field instance"}, "guessedtype": "function", "params": [{"type": "Object", "name": "fieldOptions", "description": ""}], "guessedname": "buildField", "deprecated": "Kept for backward compatibility (alias for inputEx() )"}, "sn": {"static": "", "params": [{"type": "HTMLElement", "name": "el", "description": " The element to set attributes to"}, {"type": "Object} domAttributes An object containing key/value pairs to set as node attributes (ex: {id: 'myElement', className: 'myCssClass', ...", "name": ")", "description": ""}, {"type": "Object", "name": "styleAttributes", "description": " Same thing for style attributes. Please use camelCase for style attributes (ex: backgroundColor for 'background-color')"}], "description": "Helper function to set DOM node attributes and style attributes.", "guessedname": "sn", "guessedtype": "function"}, "removeAccents": {"return": {"type": "String", "description": "String without accent"}, "description": "Return a string without accent (only on lowercase)", "static": "", "guessedname": "removeAccents", "guessedtype": "function", "params": [{"type": "String", "name": "str", "description": " The string"}]}, "getFieldClass": {"static": "", "params": [{"type": "String", "name": "type", "description": " String type of the field"}], "description": "Returns the class for the given type\nex: inputEx.getFieldClass(\"color\") returns inputEx.ColorField", "guessedname": "getFieldClass", "guessedtype": "function"}}, "static": "", "param": "{Object} fieldOptions", "file": "inputex.js", "guessedtype": "function", "shortname": "inputEx", "properties": {"stateEmpty": {"type": "String", "description": "Field empty state constant", "guessedname": "stateEmpty", "guessedtype": "property"}, "stateValid": {"type": "String", "description": "Field valid state constant", "guessedname": "stateValid", "guessedtype": "property"}, "widget": {"static": "", "description": "inputEx widget namespace", "guessedname": "widget", "guessedtype": "property"}, "typeClasses": {"description": "Hash between inputEx types and classes (ex: inputEx.typeClasses.color = inputEx.ColorField)
    \nPlease register the types with the registerType method", "guessedname": "typeClasses", "guessedtype": "property"}, "regexps": {"description": "Associative array containing common regular expressions", "guessedname": "regexps", "guessedtype": "property"}, "messages": {"description": "Associative array containing field messages", "guessedname": "messages", "guessedtype": "property"}, "stateRequired": {"type": "String", "description": "Field required state constant", "guessedname": "stateRequired", "guessedtype": "property"}, "stateInvalid": {"type": "String", "description": "Field invalid state constant", "guessedname": "stateInvalid", "guessedtype": "property"}, "spacerUrl": {"type": "String", "description": "Url to the spacer image. This url schould be changed according to your project directories", "guessedname": "spacerUrl", "guessedtype": "property"}}, "description": "The inputEx method lets you create a field from the JSON definition:\n
    \ninputEx({type: 'string', inputParams: { name: 'company', label: 'Your company'} })\n
    \nBuild a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, inputParams: {} }
    \nThe inputParams property is the object that will be passed as the options parameter to the field class constructor.
    \nIf the neither type or fieldClass are found, it uses inputEx.StringField"}, "inputEx.widget.DDList": {"name": "inputEx.widget.DDList", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Options:\n
      \n
    • id: id of the ul element
    • \n
    • value: initial value of the list
    • \n
    "}], "description": "Create a sortable list"}], "namespace": "", "module": "inputEx", "guessedname": "DDList", "methods": {"setValue": {"params": [{"type": "Array", "name": "value", "description": " list of values"}], "description": "Set the value of the list", "guessedname": "setValue", "guessedtype": "function"}, "updateItem": {"params": [{"type": "Integer", "name": "index", "description": " Item index"}, {"type": "Any", "name": "value", "description": " New value"}], "description": "Update the value of a given item", "guessedname": "updateItem", "guessedtype": "function"}, "addItem": {"params": [{"type": "String|Object", "name": "item", "description": " Either a string with the given value or an object with \"label\" and \"value\" attributes"}], "description": "Add an item to the list", "guessedname": "addItem", "guessedtype": "function"}, "onReordered": {"description": "Called by the DDListItem when an item as been moved", "guessedname": "onReordered", "guessedtype": "function"}, "getValue": {"return": {"type": "Array", "description": "array of values"}, "description": "Return the current value of the field", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"description": "Set the options", "guessedname": "setOptions", "guessedtype": "function"}, "removeItem": {"params": [{"type": "Integer", "name": "index", "description": " Item index"}], "description": "Method to remove an item (_removeItem function + event firing)", "guessedname": "removeItem", "guessedtype": "function"}, "_removeItem": {"guessedname": "_removeItem", "params": [{"type": "Integer", "name": "index", "description": " index of item to be removed"}], "description": "private method to remove an item", "private": "", "guessedtype": "function"}}, "file": "ddlist.js", "guessedtype": "function", "shortname": "inputEx.widget.DDList", "events": {"YAHOO custom event fired when an item is removed": {"params": [{"type": "Any", "name": "itemValue", "description": " value of the removed item"}], "guessedname": "itemRemovedEvt", "guessedtype": "property"}, "YAHOO custom event fired when the list is reordered": {"guessedname": "listReorderedEvt", "guessedtype": "property"}}, "description": "Create a sortable list"}, "inputEx.RPC": {"name": "inputEx.RPC", "namespace": "", "module": "inputEx", "guessedname": "RPC", "methods": {"formForMethod": {"params": [{"type": "function", "name": "method", "description": " A method created through inputEx.RPC.Service"}], "description": "Return the inputEx form options from a method", "guessedname": "formForMethod", "guessedtype": "function"}, "generateServiceForm": {"params": [{"type": "function", "name": "method", "description": " A method created through inputEx.RPC.Service"}, {"type": "Object", "name": "formOpts", "description": ""}], "description": "Build a form to run a service !", "guessedname": "generateServiceForm", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "guessedtype": "property", "shortname": "inputEx.RPC", "description": "inputEx RPC utility functions\nImplements SMD and create forms directly from services"}, "inputEx.DSSelectField": {"name": "inputEx.DSSelectField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • selectValues: contains the list of options values
    • \n
    • selectOptions: list of option element texts
    • \n
    • multiple: boolean to allow multiple selections
    • \n
    • datasource: the datasource
    • \n
    • valueKey: value key
    • \n
    • labelKey: label key
    • \n
    "}], "description": "Create a select field from a datasource"}], "namespace": "", "module": "inputEx", "guessedname": "DSSelectField", "methods": {"populateSelect": {"description": "Insert the options", "guessedname": "populateSelect", "guessedtype": "function"}, "renderComponent": {"description": "Build a select tag with options", "guessedname": "renderComponent", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object (inputEx inputParams) as passed to the constructor"}], "description": "Setup the additional options for selectfield", "guessedname": "setOptions", "guessedtype": "function"}, "onDatasourceSuccess": {"description": "Callback for request success", "guessedname": "onDatasourceSuccess", "guessedtype": "function"}, "onDatasourceFailure": {"description": "Callback for request failure", "guessedname": "onDatasourceFailure", "guessedtype": "function"}, "sendDataRequest": {"description": "Send the datasource request", "guessedname": "sendDataRequest", "guessedtype": "function"}}, "extends": "inputEx.SelectField", "superclass": "inputEx.SelectField", "file": "DSSelectField.js", "guessedtype": "function", "shortname": "inputEx.DSSelectField", "description": "Create a select field from a datasource"}, "inputEx.visus": {"name": "inputEx.visus", "namespace": "", "module": "inputEx", "guessedname": "visus", "methods": {"trimpath": {"description": "Use the trimpath-template engine\nsee http://code.google.com/p/trimpath/wiki/JavaScriptTemplates for syntax\noptions = {visuType: 'trimpath', template: \"String template\"}", "guessedname": "trimpath", "guessedtype": "function"}, "addInputExModules": {"params": [{"type": "YUILoader", "name": "yuiLoader", "description": " YUI Loader instance"}, {"type": "String", "name": "inputExPath", "description": " (optional) inputExPath"}], "description": "Add inputEx modules to a YUI loader", "guessedname": "addInputExModules", "guessedtype": "function"}, "dump": {"description": "Use YAHOO.lang.dump\noptions = {visuType: 'dump'}", "guessedname": "dump", "guessedtype": "function"}, "func": {"description": "Use a rendering function\noptions = {visuType: 'func', func: function(data) { ...code here...} }"}, "renderVisu": {"return": {"type": "HTMLElement || String", "description": "Either the inserted HTMLElement or the String set to parentEl.innerHTML"}, "description": "Render 'data' using a visualization function described by 'visuOptions'", "static": "", "guessedname": "renderVisu", "guessedtype": "function", "params": [{"type": "Object", "name": "visuOptions", "description": " The visu parameters object with: visuType: 'myType', ...args..."}, {"type": "Object", "name": "data", "description": " The input data to send to the template"}, {"type": "HTMLElement || String", "name": "parentEl", "description": " optional Set the result as content of parentEl"}]}}, "static": "", "file": "Visus.js", "guessedtype": "property", "shortname": "inputEx.visus", "description": "Contains the various visualization methods"}, "inputEx.DateSelectMonthField": {"name": "inputEx.DateSelectMonthField", "namespace": "", "module": "inputEx", "guessedname": "DateSelectMonthField", "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "DateSelectMonthField.js", "guessedtype": "function", "shortname": "inputEx.DateSelectMonthField", "description": "A field to enter a date with 2 strings and a select"}, "inputEx.UpperCaseField": {"name": "inputEx.UpperCaseField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field where the value is always uppercase"}], "namespace": "", "module": "inputEx", "guessedname": "UpperCaseField", "methods": {"setValue": {"params": [{"type": "String", "name": "val", "description": " The string"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value and call toUpperCase", "guessedname": "setValue", "guessedtype": "function"}, "onKeyPress": {"params": [{"type": "Event", "name": "e", "description": " The original 'input' event"}], "description": "Call setvalue on input to update the field with upper case value", "guessedname": "onKeyPress", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "UpperCaseField.js", "guessedtype": "function", "shortname": "inputEx.UpperCaseField", "description": "A field where the value is always uppercase"}, "inputEx.widget.Dialog": {"name": "inputEx.widget.Dialog", "constructors": [{"params": [{"type": "Object} options Config object, options are :\n
      \n
    • inputExDef: an inputEx type definition (ex: {type: 'form', inputParams: {fields: [...]}", "name": ")
    • ", "description": "\n
    • id: an optional id for the dialog
    • \n
    • parentEl: optional parentEl (default document.body)
    • \n
    • title: the dialog title
    • \n
    • panelConfig: the YAHOO.widget.Panel userConfig object
    • \n
    "}], "description": "Create a Dialog from an inputEx field definition"}], "namespace": "", "module": "inputEx", "guessedname": "Dialog", "methods": {"renderForm": {"description": "Render the form", "guessedname": "renderForm", "guessedtype": "function"}, "getForm": {"return": {"type": "inputEx.Field", "description": "the field instance"}, "description": "Return the inputEx field instance created", "guessedname": "getForm", "guessedtype": "function"}, "buildForm": {"description": "render the inputExDef as a inputEx field", "guessedname": "buildForm", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The value to set on the field"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Shortcut to set value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the field value"}, "description": "Shortcut to get value", "guessedname": "getValue", "guessedtype": "function"}}, "file": "Dialog.js", "guessedtype": "function", "shortname": "inputEx.widget.Dialog", "description": "Create a Dialog from an inputEx field definition"}}, "version": "0.4.0", "modules": {"inputEx": {"description": "The inputEx Library", "submodules": [], "classlist": ["inputEx.Field", "inputEx.Form", "inputEx.Group", "inputEx.visus", "inputEx", "inputEx.JsonSchema", "inputEx.JsonSchema.Builder", "inputEx.AutoComplete", "inputEx.CheckBox", "inputEx.ColorField", "inputEx.ColorPickerField", "inputEx.CombineField", "inputEx.DSSelectField", "inputEx.DateField", "inputEx.DatePickerField", "inputEx.DateSelectMonthField", "inputEx.DateSplitField", "inputEx.DateTimeField", "inputEx.EmailField", "inputEx.FileField", "inputEx.HiddenField", "inputEx.IPv4Field", "inputEx.InPlaceEdit", "inputEx.IntegerField", "inputEx.KeyOpValueField", "inputEx.KeyValueField", "inputEx.Lens", "inputEx.ListField", "inputEx.MapField", "inputEx.MenuField", "inputEx.MultiAutoComplete", "inputEx.MultiSelectField", "inputEx.NumberField", "inputEx.PasswordField", "inputEx.RTEField", "inputEx.RadioButton", "inputEx.RadioField", "inputEx.SelectField", "inputEx.SliderField", "inputEx.StringField", "inputEx.Textarea", "inputEx.TimeField", "inputEx.TimeIntervalField", "inputEx.TreeField", "inputEx.TypeField", "inputEx.UneditableField", "inputEx.UpperCaseField", "inputEx.UrlField", "inputEx.VectorField", "inputEx.RPC", "inputEx.RPC.Service", "inputEx.RPC.Transport", "inputEx.RPC.Envelope", "inputEx.RPC.Envelope.URL", "inputEx.RPC.Envelope.PATH", "inputEx.RPC.Envelope.JSON", "inputEx.RPC.Envelope.JSON-RPC-1.0", "inputEx.RPC.Envelope.JSON-RPC-2.0", "inputEx.RPC.SMDTester", "inputEx.YQL", "inputEx.widget.DataTable", "inputEx.widget.Dialog", "inputEx.widget.DDListItem", "inputEx.widget.DDList", "inputEx.widget.dtInPlaceEdit", "inputEx.widget.CellEditor", "inputEx.widget.JsonTreeInspector"], "filelist": ["Field.js", "Form.js", "Group.js", "Visus.js", "inputex-loader.js", "inputex.js", "json-schema.js", "AutoComplete.js", "CheckBox.js", "ColorField.js", "ColorPickerField.js", "CombineField.js", "DSSelectField.js", "DateField.js", "DatePickerField.js", "DateSelectMonthField.js", "DateSplitField.js", "DateTimeField.js", "EmailField.js", "FileField.js", "HiddenField.js", "IPv4Field.js", "InPlaceEdit.js", "IntegerField.js", "KeyOpValueField-beta.js", "KeyValueField-beta.js", "Lens-beta.js", "ListField.js", "MapField.js", "MenuField.js", "MultiAutoComplete.js", "MultiSelectField.js", "NumberField.js", "PasswordField.js", "RTEField.js", "RadioButton.js", "RadioField.js", "SelectField.js", "SliderField.js", "StringField.js", "Textarea.js", "TimeField.js", "TimeIntervalField.js", "TreeField.js", "TypeField.js", "UneditableField.js", "UpperCaseField.js", "UrlField.js", "VectorField.js", "de.js", "es.js", "fr.js", "it.js", "nl.js", "inputex-rpc.js", "smdTester.js", "yql.js", "DataTable.js", "Dialog.js", "ddlist.js", "dtInPlaceEdit.js", "json-tree-inspector.js"], "subdata": {}, "name": "inputEx"}}, "filemap": {"dtInPlaceEdit.js": {"classlist": ["inputEx.widget.dtInPlaceEdit", "inputEx.widget.CellEditor"], "name": "dtInPlaceEdit.js", "module": "inputEx"}, "IntegerField.js": {"classlist": ["inputEx.IntegerField"], "name": "IntegerField.js", "module": "inputEx"}, "TimeField.js": {"classlist": ["inputEx.TimeField"], "name": "TimeField.js", "module": "inputEx"}, "Textarea.js": {"classlist": ["inputEx.Textarea"], "name": "Textarea.js", "module": "inputEx"}, "KeyValueField-beta.js": {"classlist": ["inputEx.KeyValueField"], "name": "KeyValueField-beta.js", "module": "inputEx"}, "nl.js": {"classlist": [], "name": "nl.js", "module": "inputEx"}, "MapField.js": {"classlist": ["inputEx.MapField"], "name": "MapField.js", "module": "inputEx"}, "MultiAutoComplete.js": {"classlist": ["inputEx.MultiAutoComplete"], "name": "MultiAutoComplete.js", "module": "inputEx"}, "TimeIntervalField.js": {"classlist": ["inputEx.TimeIntervalField"], "name": "TimeIntervalField.js", "module": "inputEx"}, "AutoComplete.js": {"classlist": ["inputEx.AutoComplete"], "name": "AutoComplete.js", "module": "inputEx"}, "SelectField.js": {"classlist": ["inputEx.SelectField"], "name": "SelectField.js", "module": "inputEx"}, "MenuField.js": {"classlist": ["inputEx.MenuField"], "name": "MenuField.js", "module": "inputEx"}, "ListField.js": {"classlist": ["inputEx.ListField"], "name": "ListField.js", "module": "inputEx"}, "fr.js": {"classlist": [], "name": "fr.js", "module": "inputEx"}, "UpperCaseField.js": {"classlist": ["inputEx.UpperCaseField"], "name": "UpperCaseField.js", "module": "inputEx"}, "it.js": {"classlist": [], "name": "it.js", "module": "inputEx"}, "UneditableField.js": {"classlist": ["inputEx.UneditableField"], "name": "UneditableField.js", "module": "inputEx"}, "json-schema.js": {"classlist": ["inputEx.JsonSchema", "inputEx.JsonSchema.Builder"], "name": "json-schema.js", "module": "inputEx"}, "DateField.js": {"classlist": ["inputEx.DateField"], "name": "DateField.js", "module": "inputEx"}, "de.js": {"classlist": [], "name": "de.js", "module": "inputEx"}, "Dialog.js": {"classlist": ["inputEx.widget.Dialog"], "name": "Dialog.js", "module": "inputEx"}, "DataTable.js": {"classlist": ["inputEx.widget.DataTable"], "name": "DataTable.js", "module": "inputEx"}, "inputex.js": {"classlist": ["inputEx"], "name": "inputex.js", "module": "inputEx"}, "NumberField.js": {"classlist": ["inputEx.NumberField"], "name": "NumberField.js", "module": "inputEx"}, "VectorField.js": {"classlist": ["inputEx.VectorField"], "name": "VectorField.js", "module": "inputEx"}, "RadioButton.js": {"classlist": ["inputEx.RadioButton"], "name": "RadioButton.js", "module": "inputEx"}, "ColorField.js": {"classlist": ["inputEx.ColorField"], "name": "ColorField.js", "module": "inputEx"}, "PasswordField.js": {"classlist": ["inputEx.PasswordField"], "name": "PasswordField.js", "module": "inputEx"}, "FileField.js": {"classlist": ["inputEx.FileField"], "name": "FileField.js", "module": "inputEx"}, "StringField.js": {"classlist": ["inputEx.StringField"], "name": "StringField.js", "module": "inputEx"}, "ddlist.js": {"classlist": ["inputEx.widget.DDListItem", "inputEx.widget.DDList"], "name": "ddlist.js", "module": "inputEx"}, "RTEField.js": {"classlist": ["inputEx.RTEField"], "name": "RTEField.js", "module": "inputEx"}, "DateTimeField.js": {"classlist": ["inputEx.DateTimeField"], "name": "DateTimeField.js", "module": "inputEx"}, "Lens-beta.js": {"classlist": ["inputEx.Lens"], "name": "Lens-beta.js", "module": "inputEx"}, "DatePickerField.js": {"classlist": ["inputEx.DatePickerField"], "name": "DatePickerField.js", "module": "inputEx"}, "KeyOpValueField-beta.js": {"classlist": ["inputEx.KeyOpValueField"], "name": "KeyOpValueField-beta.js", "module": "inputEx"}, "HiddenField.js": {"classlist": ["inputEx.HiddenField"], "name": "HiddenField.js", "module": "inputEx"}, "TreeField.js": {"classlist": ["inputEx.TreeField"], "name": "TreeField.js", "module": "inputEx"}, "UrlField.js": {"classlist": ["inputEx.UrlField"], "name": "UrlField.js", "module": "inputEx"}, "CombineField.js": {"classlist": ["inputEx.CombineField"], "name": "CombineField.js", "module": "inputEx"}, "DateSelectMonthField.js": {"classlist": ["inputEx.DateSelectMonthField"], "name": "DateSelectMonthField.js", "module": "inputEx"}, "SliderField.js": {"classlist": ["inputEx.SliderField"], "name": "SliderField.js", "module": "inputEx"}, "DateSplitField.js": {"classlist": ["inputEx.DateSplitField"], "name": "DateSplitField.js", "module": "inputEx"}, "yql.js": {"classlist": ["inputEx.YQL"], "name": "yql.js", "module": "inputEx"}, "inputex-rpc.js": {"classlist": ["inputEx.RPC", "inputEx.RPC.Service", "inputEx.RPC.Transport", "inputEx.RPC.Envelope", "inputEx.RPC.Envelope.URL", "inputEx.RPC.Envelope.PATH", "inputEx.RPC.Envelope.JSON", "inputEx.RPC.Envelope.JSON-RPC-1.0", "inputEx.RPC.Envelope.JSON-RPC-2.0"], "name": "inputex-rpc.js", "module": "inputEx"}, "InPlaceEdit.js": {"classlist": ["inputEx.InPlaceEdit"], "name": "InPlaceEdit.js", "module": "inputEx"}, "inputex-loader.js": {"classlist": [], "name": "inputex-loader.js", "module": "inputEx"}, "MultiSelectField.js": {"classlist": ["inputEx.MultiSelectField"], "name": "MultiSelectField.js", "module": "inputEx"}, "DSSelectField.js": {"classlist": ["inputEx.DSSelectField"], "name": "DSSelectField.js", "module": "inputEx"}, "Form.js": {"classlist": ["inputEx.Form"], "name": "Form.js", "module": "inputEx"}, "Visus.js": {"classlist": ["inputEx.visus"], "name": "Visus.js", "module": "inputEx"}, "json-tree-inspector.js": {"classlist": ["inputEx.widget.JsonTreeInspector"], "name": "json-tree-inspector.js", "module": "inputEx"}, "ColorPickerField.js": {"classlist": ["inputEx.ColorPickerField"], "name": "ColorPickerField.js", "module": "inputEx"}, "CheckBox.js": {"classlist": ["inputEx.CheckBox"], "name": "CheckBox.js", "module": "inputEx"}, "Field.js": {"classlist": ["inputEx.Field"], "name": "Field.js", "module": "inputEx"}, "smdTester.js": {"classlist": ["inputEx.RPC.SMDTester"], "name": "smdTester.js", "module": "inputEx"}, "EmailField.js": {"classlist": ["inputEx.EmailField"], "name": "EmailField.js", "module": "inputEx"}, "TypeField.js": {"classlist": ["inputEx.TypeField"], "name": "TypeField.js", "module": "inputEx"}, "IPv4Field.js": {"classlist": ["inputEx.IPv4Field"], "name": "IPv4Field.js", "module": "inputEx"}, "RadioField.js": {"classlist": ["inputEx.RadioField"], "name": "RadioField.js", "module": "inputEx"}, "es.js": {"classlist": [], "name": "es.js", "module": "inputEx"}, "Group.js": {"classlist": ["inputEx.Group"], "name": "Group.js", "module": "inputEx"}}} \ No newline at end of file +{"majorversion": 2, "classmap": {"inputEx.CheckBox": {"name": "inputEx.CheckBox", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for CheckBoxes:\n
      \n
    • sentValues: 2D vector of values for checked/unchecked states (default is [true, false])
    • \n
    "}], "description": "Create a checkbox."}], "namespace": "", "module": "inputEx", "guessedname": "CheckBox", "methods": {"setValue": {"params": [{"type": "Any", "name": "value", "description": " The value schould be one of [checkedValue,uncheckedValue]"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the checkedbox", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Clear the previous events and listen for the \"change\" event", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the checkbox and the hidden field", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "one of [checkedValue,uncheckedValue]"}, "description": "Get the state value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds the CheckBox specific options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "Function called when the checkbox is toggled", "guessedname": "onChange", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "CheckBox.js", "guessedtype": "function", "shortname": "inputEx.CheckBox", "description": "Create a checkbox."}, "inputEx.YQL": {"name": "inputEx.YQL", "namespace": "", "module": "inputEx", "guessedname": "YQL", "methods": {"queryCode": {"params": [{"type": "String", "name": "codeStr", "description": " YQL-execute javascript code"}, {"type": "Function", "name": "callback", "description": " Callback function"}], "description": "Dynamically build a XML from javascript code and generate a dummy request for YQL", "guessedname": "queryCode", "guessedtype": "function"}, "initTrimpathPage": {"params": [{"type": "Array", "name": "additionalCallbacks", "description": " List of [list of callbacks] (each yql query can call multiple callbacks)"}], "description": "YQL-trimpath-page is a utility to create pages using YQL queries ant Trimpath templating\nAll YQL queries are made using the rpc/yql.js utility.\nsee examples/yql-trimpath-page.html\nCall this method on page load to run yql queries and the associated templates", "guessedname": "initTrimpathPage", "guessedtype": "function"}, "init": {"params": [{"type": "Array", "name": "callbacks", "description": " Array of (list of callbacks functions) (provide a list of callbacks for each script type=\"text/yql\" tag in the page)"}], "description": "Run script type=\"text/yql\" tags on YQL servers\nIf you have just one script tag and one callback, pass [[function(results) {}]]\nIf you have two script tags and two callback for each: [ [function() {},function() {}] , [function() {},function() {}]]\netc...", "guessedname": "init", "guessedtype": "function"}, "queryUrl": {"params": [{"type": "String", "name": "codeUrl", "description": " Url to a YQL-execute javascript file"}, {"type": "Function", "name": "callback", "description": " Callback function"}], "description": "Dynamically build a XML from a URL and generate a dummy request for YQL", "guessedname": "queryUrl", "guessedtype": "function"}, "query": {"params": [{"type": "String", "name": "yql", "description": " YQL query string"}, {"type": "Function", "name": "callback", "description": " Callback function"}], "description": "Generate the jsonp request to YQL", "guessedname": "query", "guessedtype": "function"}, "genTrimpathCallback": {"guessedname": "genTrimpathCallback", "static": "", "description": "Build a callback that runs a trimpath template (used by initTrimpathPage)", "private": "", "guessedtype": "function"}}, "static": "", "file": "yql.js", "guessedtype": "property", "shortname": "inputEx.YQL", "description": "

    inputEx YQL utility

    \n

    Provide functions to run YQL javascript code and get results asynchronously.

    \n

    YQL Execute is only available from a YQL request using a YQL Open Table XML file.\nThis script uses a php (http://javascript.neyric.com/yql/js.php) to generate the wanted XML file from javascript code.

    \n

    Examples:

    \n\n

    We use a classic JSONP hack to get the results via a callback method.

    "}, "inputEx.KeyOpValueField": {"name": "inputEx.KeyOpValueField", "extend": "inputEx.KeyValueField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " InputEx definition object with the \"availableFields\""}], "description": "Add an SQL operator select field in the middle of a KeyValueField"}], "namespace": "", "module": "inputEx", "guessedname": "KeyOpValueField", "methods": {"setOptions": {"description": "Setup the options.fields from the availableFields option", "guessedname": "setOptions", "guessedtype": "function"}}, "file": "KeyOpValueField-beta.js", "guessedtype": "function", "shortname": "inputEx.KeyOpValueField", "description": "Add an SQL operator select field in the middle of a KeyValueField"}, "inputEx.RPC.Transport": {"name": "inputEx.RPC.Transport", "namespace": "", "module": "inputEx", "guessedname": "Transport", "methods": {"POST": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Build a ajax request using 'POST' method"}, "JSONP": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Receive data through JSONP (insert a script tag within the page)"}, "TCP/IP": {"description": "NOT implemented"}, "REST": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Build an ajax request using the right HTTP method"}, "GET": {"params": [{"type": "Object", "name": "r", "description": " Object specifying target, callback and data attributes"}], "description": "Build a ajax request using 'GET' method"}}, "static": "", "file": "inputex-rpc.js", "guessedtype": "property", "shortname": "inputEx.RPC.Transport", "description": "inputEx.RPC.Transport"}, "inputEx.widget.CellEditor": {"name": "inputEx.widget.CellEditor", "constructors": [{"params": [{"type": "Object", "name": "inputExFieldDef", "description": " InputEx field definition object"}], "description": "The CellEditor class provides functionality for inline editing in datatables\nusing the inputEx field definition."}], "namespace": "", "module": "inputEx", "guessedname": "CellEditor", "methods": {"renderForm": {"description": "Render the inputEx field editor", "guessedname": "renderForm", "guessedtype": "function"}, "save": {"description": "When clicking the save button but also when clicking out of the cell", "guessedname": "save", "guessedtype": "function"}, "getInputValue": {"description": "Returns new value for CellEditor.", "guessedname": "getInputValue", "guessedtype": "function"}, "focus": {"description": "Sets focus in CellEditor.", "guessedname": "focus", "guessedtype": "function"}, "resetForm": {"description": "Resets CellEditor UI to initial state.", "guessedname": "resetForm", "guessedtype": "function"}}, "extends": "YAHOO.widget.BaseCellEditor", "superclass": "YAHOO.widget.BaseCellEditor", "file": "dtInPlaceEdit.js", "guessedtype": "function", "shortname": "inputEx.widget.CellEditor", "description": "The CellEditor class provides functionality for inline editing in datatables\nusing the inputEx field definition."}, "inputEx.widget.DDList": {"name": "inputEx.widget.DDList", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Options:\n
      \n
    • id: id of the ul element
    • \n
    • value: initial value of the list
    • \n
    "}], "description": "Create a sortable list"}], "namespace": "", "module": "inputEx", "guessedname": "DDList", "methods": {"setValue": {"params": [{"type": "Array", "name": "value", "description": " list of values"}], "description": "Set the value of the list", "guessedname": "setValue", "guessedtype": "function"}, "updateItem": {"params": [{"type": "Integer", "name": "index", "description": " Item index"}, {"type": "Any", "name": "value", "description": " New value"}], "description": "Update the value of a given item", "guessedname": "updateItem", "guessedtype": "function"}, "addItem": {"params": [{"type": "String|Object", "name": "item", "description": " Either a string with the given value or an object with \"label\" and \"value\" attributes"}], "description": "Add an item to the list", "guessedname": "addItem", "guessedtype": "function"}, "onReordered": {"description": "Called by the DDListItem when an item as been moved", "guessedname": "onReordered", "guessedtype": "function"}, "getValue": {"return": {"type": "Array", "description": "array of values"}, "description": "Return the current value of the field", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"description": "Set the options", "guessedname": "setOptions", "guessedtype": "function"}, "removeItem": {"params": [{"type": "Integer", "name": "index", "description": " Item index"}], "description": "Method to remove an item (_removeItem function + event firing)", "guessedname": "removeItem", "guessedtype": "function"}, "_removeItem": {"guessedname": "_removeItem", "params": [{"type": "Integer", "name": "index", "description": " index of item to be removed"}], "description": "private method to remove an item", "private": "", "guessedtype": "function"}}, "file": "ddlist.js", "guessedtype": "function", "shortname": "inputEx.widget.DDList", "events": {"YAHOO custom event fired when an item is removed": {"params": [{"type": "Any", "name": "itemValue", "description": " value of the removed item"}], "guessedname": "itemRemovedEvt", "guessedtype": "property"}, "YAHOO custom event fired when the list is reordered": {"guessedname": "listReorderedEvt", "guessedtype": "property"}}, "description": "Create a sortable list"}, "inputEx.MapField": {"name": "inputEx.MapField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • width
    • \n
    • height
    • \n
    • loading
    • \n
    • lat
    • \n
    • lon
    • \n
    • uzoom
    • \n
    • api: google, yahoo or virtualearth (default)
    • \n
    • api_key
    • \n
    "}], "description": "Wrapper for Mapping APIs, including Google Maps, Yahoo Maps and Virtual Earth"}], "namespace": "", "module": "inputEx", "guessedname": "MapField", "methods": {"preload": {"description": "This preloaded MAY not really work -- we recommend that you use\nthe following JavaScript instead _after_ \"yahoo-dom-event.js\" (or similar)\nis included:\nscript type=\"text/javascript\"\nYMAPPID = [yourapikey]\n/script\nscript type=\"text/javascript\" src=\"http://us.js2.yimg.com/us.js.yimg.com/lib/map/js/api/ymapapi_3_8_0_7.js\"\n/script\nNote the non-standard loading pattern! See:\nhttp://yuiblog.com/blog/2006/12/14/maps-plus-yui/", "guessedname": "preload", "guessedtype": "function"}, "wait_create": {"description": "This will wait until the DOM element appears before completion of map rendering", "guessedname": "wait_create", "guessedtype": "function"}, "setValue": {"description": "set the value: {lat: 45.23234, lon: 2.34456, uzoom: 6, nzoom: 6}", "guessedname": "setValue", "guessedtype": "function"}, "renderComponent": {"description": "Render the field using the appropriate mapping function", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"description": "return the same structure as setValue", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"description": "Adds the 'inputEx-MapField' default className", "guessedname": "setOptions", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "MapField.js", "guessedtype": "function", "shortname": "inputEx.MapField", "description": "Wrapper for Mapping APIs, including Google Maps, Yahoo Maps and Virtual Earth"}, "inputEx.VectorField": {"name": "inputEx.VectorField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "VectorField", "methods": {"setOptions": {"description": "Additional options for VectorField (dimension, size)", "guessedname": "setOptions", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "VectorField.js", "guessedtype": "function", "shortname": "inputEx.VectorField", "description": "A field limited to number inputs (floating)"}, "inputEx.widget.dtInPlaceEdit": {"name": "inputEx.widget.dtInPlaceEdit", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Options"}], "description": "InPlaceEditable datatable using inputEx fields"}], "namespace": "", "module": "inputEx", "guessedname": "dtInPlaceEdit", "methods": {"onRemoveFailure": {"description": "When failed to delete a row", "guessedname": "onRemoveFailure", "guessedtype": "function"}, "onCellClick": {"description": "Public handler - When clicking on one of the datatable's cells", "guessedname": "onCellClick", "guessedtype": "function"}, "onCancelButton": {"description": "When clicking \"Cancel\" button to cancel a new row", "guessedname": "onCancelButton", "guessedtype": "function"}, "initEvents": {"description": "Init the events", "guessedname": "initEvents", "guessedtype": "function"}, "_onCellClick": {"description": "Handling cell click events", "guessedname": "_onCellClick", "guessedtype": "function"}, "onModifyItem": {"description": "When modifying a row", "guessedname": "onModifyItem", "guessedtype": "function"}, "onRemoveItem": {"description": "When trying to delete a row", "guessedname": "onRemoveItem", "guessedtype": "function"}, "onRemoveSuccess": {"description": "When successfully deleted a row", "guessedname": "onRemoveSuccess", "guessedtype": "function"}, "onDialogSave": {"description": "When saving the Dialog (option insertWithDialog)", "guessedname": "onDialogSave", "guessedtype": "function"}, "onInsertButton": {"description": "When clicking on the \"insert\" button to add a new row", "guessedname": "onInsertButton", "guessedtype": "function"}, "setOptions": {"description": "Additional options", "guessedname": "setOptions", "guessedtype": "function"}, "onModifySuccess": {"description": "When successfully modified a row", "guessedname": "onModifySuccess", "guessedtype": "function"}, "onAddFailure": {"description": "When Failed to Add Row", "guessedname": "onAddFailure", "guessedtype": "function"}, "onAddButton": {"description": "When clicking \"Add\" button to save a new row", "guessedname": "onAddButton", "guessedtype": "function"}, "onAddSuccess": {"description": "Validate the new record's row : \nYou need to call this function when you really added the item with an id\nIe if you trigger an Ajax request to insert your record into database,\nyou trigger this function only if your request didn't failed", "guessedname": "onAddSuccess", "guessedtype": "function"}, "setColumnDefs": {"description": "Modify the column definitions to add the inputEx CellEditor", "guessedname": "setColumnDefs", "guessedtype": "function"}}, "extends": "inputEx.widget.DataTable", "superclass": "inputEx.widget.DataTable", "file": "dtInPlaceEdit.js", "guessedtype": "function", "shortname": "inputEx.widget.dtInPlaceEdit", "description": "InPlaceEditable datatable using inputEx fields"}, "inputEx.TimeIntervalField": {"name": "inputEx.TimeIntervalField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options\n
      \n
    • unit: inputEx.TimeIntervalField.units.MYUNIT (SECOND,MINUTE,HOUR,DAY,MONTH,YEAR)
    • \n
    "}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "TimeIntervalField", "methods": {"setOptions": {"description": "Additional options", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"param": "{array} array with 4 Hour strings in display order (format [\"HH\",\"MM\", \"HH\",\"MM\"])", "params": [{"type": "Number", "name": "val", "description": " The time interval integer (with the given unit)"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of both subfields", "guessedname": "setValue", "guessedtype": "function"}, "TimeRange": {"description": "Tweaking the TimeField to make a Time Range (two TimeFields)\n- doesn't show seconds\n- Minutes by group of 5", "guessedname": "TimeRange", "guessedtype": "function"}, "toogleEndMinutes": {"description": "Disable the last selector and set it to \"00\" when the third one's value is 24\n(it will be inccorect to have an end superior to 24:00)", "guessedname": "toogleEndMinutes", "guessedtype": "function"}, "getValue": {"return": {"type": "Integer", "description": "the time interval in the field unit"}, "description": "Concat the values to return a date", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "TimeIntervalField.js", "guessedtype": "function", "shortname": "inputEx.TimeIntervalField", "description": "A field limited to number inputs (floating)"}, "inputEx.Textarea": {"name": "inputEx.Textarea", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • rows: rows attribute
    • \n
    • cols: cols attribute
    • \n
    "}], "description": "Create a textarea input"}], "namespace": "", "module": "inputEx", "guessedname": "Textarea", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the specific options (rows and cols)", "guessedname": "setOptions", "guessedtype": "function"}, "getStateString": {"description": "Add the minLength string message handling", "guessedname": "getStateString", "guessedtype": "function"}, "renderComponent": {"description": "Render an 'INPUT' DOM node", "guessedname": "renderComponent", "guessedtype": "function"}, "validate": {"description": "Uses the optional regexp to validate the field value", "guessedname": "validate", "guessedtype": "function"}, "insert": {"params": [{"type": "String", "name": "text", "description": " Text to insert"}], "description": "Insert text at the current cursor position", "guessedname": "insert", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "Textarea.js", "guessedtype": "function", "shortname": "inputEx.Textarea", "description": "Create a textarea input"}, "inputEx.RPC.Service": {"name": "inputEx.RPC.Service", "constructors": [{"description": "Provide SMD support \nhttp://groups.google.com/group/json-schema/web/service-mapping-description-proposal\nNot implemented: REST envelope, TCP/IP transport\nTake a string as a url to retrieve an smd or an object that is an smd or partial smd to use \nas a definition for the service"}], "namespace": "", "module": "inputEx", "guessedname": "Service", "methods": {"process": {"description": "Process the SMD definition", "guessedname": "process", "guessedtype": "function"}, "_generateService": {"params": [{"type": "String", "name": "serviceName", "description": ""}, {"type": "Method definition", "name": "method", "description": ""}], "description": "Generate the function from a service definition", "guessedname": "_generateService", "guessedtype": "function"}, "fetch": {"params": [{"type": "String", "name": "Absolute", "description": " or relative url"}], "description": "Download the SMD at the given url", "guessedname": "fetch", "guessedtype": "function"}}, "file": "inputex-rpc.js", "guessedtype": "function", "shortname": "inputEx.RPC.Service", "description": "Provide SMD support \nhttp://groups.google.com/group/json-schema/web/service-mapping-description-proposal\nNot implemented: REST envelope, TCP/IP transport\nTake a string as a url to retrieve an smd or an object that is an smd or partial smd to use \nas a definition for the service"}, "inputEx.KeyValueField": {"name": "inputEx.KeyValueField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " InputEx definition object with the \"availableFields\""}], "description": "Display a selectors for keys and auto-update the value field"}], "namespace": "", "module": "inputEx", "guessedname": "KeyValueField", "methods": {"setOptions": {"description": "Setup the options.fields from the availableFields option", "guessedname": "setOptions", "guessedtype": "function"}, "generateSelectConfig": {"description": "Generate", "guessedname": "generateSelectConfig", "guessedtype": "function"}, "onSelectFieldChange": {"description": "Rebuild the value field", "guessedname": "onSelectFieldChange", "guessedtype": "function"}, "initEvents": {"description": "Subscribe the updatedEvt on the key selector", "guessedname": "initEvents", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "KeyValueField-beta.js", "guessedtype": "function", "shortname": "inputEx.KeyValueField", "description": "Display a selectors for keys and auto-update the value field"}, "inputEx.RadioField": {"name": "inputEx.RadioField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}], "namespace": "", "module": "inputEx", "guessedname": "RadioField", "methods": {"setValue": {"params": [{"type": "Any", "name": "value", "description": " The value schould be one of this.options.values (which defaults to this.options.choices if missing) if allowAny option not true."}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the checkedbox", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Listen for change events on all radios", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the checkbox and the hidden field", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": ""}, "description": "Get the field value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds the Radio button specific options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "isEmpty": {"description": "Should return true if empty", "guessedname": "isEmpty", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "Function called when the checkbox is toggled", "guessedname": "onChange", "guessedtype": "function"}, "clear": {"params": [{"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Clear the field by setting the field value to this.options.value", "guessedname": "clear", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "RadioField.js", "guessedtype": "function", "shortname": "inputEx.RadioField", "description": "Create a radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}, "inputEx.MenuField": {"name": "inputEx.MenuField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • typeInvite : text to display when no selection made
    • \n
    • menuItems : contains descriptions of menu items
    • \n
    • menuTrigger : event to trigger menu show
    • \n
    • menuPosition : array of corners positions (syntax : ['menu popup corner','invite div corner'])
    • \n
    • menuConfig (optional) : object used as a config for the YUI Menu generated by MenuField\n
    "}], "description": "Create a menu field"}], "namespace": "", "module": "inputEx", "guessedname": "MenuField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Build a menu", "guessedname": "renderComponent", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "MenuField.js", "guessedtype": "function", "shortname": "inputEx.MenuField", "description": "Create a menu field"}, "inputEx.FileField": {"name": "inputEx.FileField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    "}], "description": "Create a file input"}], "namespace": "", "module": "inputEx", "guessedname": "FileField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds size and accept options", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Render an 'INPUT' DOM node", "guessedname": "renderComponent", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "FileField.js", "guessedtype": "function", "shortname": "inputEx.FileField", "description": "Create a file input"}, "inputEx.RPC.Envelope.JSON-RPC-1.0": {"name": "inputEx.RPC.Envelope.JSON-RPC-1.0", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.JSON-RPC-1.0", "description": "JSON-RPC-1.0 envelope"}, "inputEx.DatePickerField": {"name": "inputEx.DatePickerField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " No added option for this field (same as DateField)\n
      \n
    • calendar: yui calendar configuration object
    • \n
    "}], "description": "A DatePicker Field."}], "namespace": "", "module": "inputEx", "guessedname": "DatePickerField", "methods": {"enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "renderComponent": {"description": "Render the input field and the minical container", "guessedname": "renderComponent", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default date picker CSS classes", "guessedname": "setOptions", "guessedtype": "function"}, "beforeShowOverlay": {"description": "Select the right date and display the right page on calendar, when the field has a value", "guessedname": "beforeShowOverlay", "guessedtype": "function"}, "renderCalendar": {"description": "Called ONCE to render the calendar lazily", "guessedname": "renderCalendar", "guessedtype": "function"}}, "extends": "inputEx.DateField", "superclass": "inputEx.DateField", "file": "DatePickerField.js", "guessedtype": "function", "shortname": "inputEx.DatePickerField", "description": "A DatePicker Field."}, "inputEx.RPC.Envelope.PATH": {"name": "inputEx.RPC.Envelope.PATH", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.PATH", "description": "PATH envelope"}, "inputEx.ColorPickerField": {"name": "inputEx.ColorPickerField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for ColorPickerField :\n
      \n
    • showcontrols: show the input values RGB,HSV,RGB hex
    • \n
    "}], "description": "Create a Color picker input field"}], "namespace": "", "module": "inputEx", "guessedname": "ColorPickerField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds the 'inputEx-ColorPickerField' default className", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Render the color button and the colorpicker popup", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " Color to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "Color value"}, "description": "Return the color value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "ColorPickerField.js", "guessedtype": "function", "shortname": "inputEx.ColorPickerField", "description": "Create a Color picker input field"}, "inputEx.TimeField": {"name": "inputEx.TimeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "TimeField", "methods": {"setValue": {"params": [{"type": "String", "name": "str", "description": " Hour string (format HH:MM:SS)"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "Hour string"}, "description": "Returns a string like HH:MM:SS", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "TimeField.js", "guessedtype": "function", "shortname": "inputEx.TimeField", "description": "A field limited to number inputs (floating)"}, "inputEx.TypeField": {"name": "inputEx.TypeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Standard inputEx options definition"}], "description": "TypeField is a field to create fields. The user can create any value he wants by switching fields."}], "namespace": "", "module": "inputEx", "guessedname": "TypeField", "methods": {"setValue": {"params": [{"type": "Object", "name": "value", "description": " Type object configuration"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the label, typeProperties and group", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Adds 2 event listeners: \n- on the button to toggel the propertiesPanel", "guessedname": "initEvents", "guessedtype": "function"}, "updateFieldValue": {"description": "Update the fieldValue", "guessedname": "updateFieldValue", "guessedtype": "function"}, "renderComponent": {"description": "Render the TypeField: create a button with a property panel that contains the field options", "guessedname": "renderComponent", "guessedtype": "function"}, "onTogglePropertiesPanel": {"description": "Toggle the property panel", "guessedname": "onTogglePropertiesPanel", "guessedtype": "function"}, "onChangeGroupOptions": {"description": "Update the fieldValue with the changed properties", "guessedname": "onChangeGroupOptions", "guessedtype": "function"}, "getValue": {"return": {"type": "Object", "description": "Type object configuration"}, "description": "Return the config for a entry in an Group", "guessedname": "getValue", "guessedtype": "function"}, "rebuildGroupOptions": {"description": "Regenerate the property form", "guessedname": "rebuildGroupOptions", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "TypeField.js", "guessedtype": "function", "shortname": "inputEx.TypeField", "description": "TypeField is a field to create fields. The user can create any value he wants by switching fields."}, "inputEx.MultiAutoComplete": {"name": "inputEx.MultiAutoComplete", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    "}], "description": "Create a multi autocomplete field"}], "namespace": "", "module": "inputEx", "guessedname": "MultiAutoComplete", "methods": {"itemSelectHandler": {"description": "Handle item selection in the autocompleter to add it to the list", "guessedname": "itemSelectHandler", "guessedtype": "function"}, "getState": {"description": "Return (stateEmpty|stateRequired) if the value equals the typeInvite attribute", "guessedname": "getState", "guessedtype": "function"}, "renderComponent": {"description": "Build the DDList", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the selected value from the selectValues array"}, "description": "Return the value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"description": "Additional options", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "validate": {"description": "TODO : how to validate ?", "guessedname": "validate", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "onChange event handler", "guessedname": "onChange", "guessedtype": "function"}}, "extends": "inputEx.AutoComplete", "superclass": "inputEx.AutoComplete", "file": "MultiAutoComplete.js", "guessedtype": "function", "shortname": "inputEx.MultiAutoComplete", "description": "Create a multi autocomplete field"}, "inputEx.PasswordField": {"name": "inputEx.PasswordField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object\n
      \n
    • confirmPasswordField: the PasswordField instance to compare to when using 2 password fields for password creation (please use the setConfirmationField method)
    • \n
    • strengthIndicator: display a widget to indicate password strength (default false)
    • \n
    • capsLockWarning: display a warning if CapsLock is on (default false)
    • \n
    • confirm: id of the field to compare to
    • \n
    "}], "description": "Create a password field."}], "namespace": "", "module": "inputEx", "guessedname": "PasswordField", "methods": {"setConfirmationField": {"params": [{"type": "inputEx.PasswordField", "name": "passwordField", "description": " The target password field"}], "description": "Set this field as the confirmation for the targeted password field:", "guessedname": "setConfirmationField", "guessedtype": "function"}, "onInput": {"params": [{"type": "Event", "name": "e", "description": " The original input event"}], "description": "Update the state of the confirmation field", "guessedname": "onInput", "guessedtype": "function"}, "onKeyPress": {"description": "callback to display the capsLockWarning", "guessedname": "onKeyPress", "guessedtype": "function"}, "updateStrengthIndicator": {"description": "Update the strength indicator (called by onKeyPress)", "guessedname": "updateStrengthIndicator", "guessedtype": "function"}, "renderComponent": {"description": "Set the el type to 'password'", "guessedname": "renderComponent", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Add the password regexp, strengthIndicator, capsLockWarning", "guessedname": "setOptions", "guessedtype": "function"}, "setCapsLockWarning": {"description": "Show or hide the caps lock warning given the status", "guessedname": "setCapsLockWarning", "guessedtype": "function"}, "onKeyUp": {"description": "onkeyup callback to update the strength indicator", "guessedname": "onKeyUp", "guessedtype": "function"}, "getStateString": {"description": "Change the state string", "guessedname": "getStateString", "guessedtype": "function"}, "getPasswordStrength": {"description": "Return an integer within [0,100] that quantify the password strength\nFunction taken from Mozilla Code: (changed a little bit the values)\nhttp://lxr.mozilla.org/seamonkey/source/security/manager/pki/resources/content/password.js", "guessedname": "getPasswordStrength", "guessedtype": "function"}, "validate": {"description": "The validation adds the confirmation password field support", "guessedname": "validate", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "PasswordField.js", "guessedtype": "function", "shortname": "inputEx.PasswordField", "properties": {"byId": {"description": "Keep track of all instances, indexed by ids, for the password confirmation field", "guessedname": "byId", "guessedtype": "property"}}, "description": "Create a password field."}, "inputEx.UneditableField": {"name": "inputEx.UneditableField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a uneditable field where you can stick the html you want\nAdded Options:\n
      \n
    • visu: inputEx visu type
    • \n
    "}], "namespace": "", "module": "inputEx", "guessedname": "UneditableField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "val", "description": " The value that will be sent to the visu"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Store the value and update the visu", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "The previously stored value"}, "description": "Return the stored value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "UneditableField.js", "guessedtype": "function", "shortname": "inputEx.UneditableField", "description": "Create a uneditable field where you can stick the html you want\nAdded Options:\n
      \n
    • visu: inputEx visu type
    • \n
    "}, "inputEx.ColorField": {"name": "inputEx.ColorField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for ColorField :\n
      \n
    • colors: list of colors to load as palette
    • \n
    • palette: default palette to be used (if colors option not provided)
    • \n
    • cellPerLine: how many colored cells in a row on the palette
    • \n
    • ratio: screen-like ratio to display the palette, syntax: [with,height], default: [16,9] (if cellPerLine not provided)
    • \n
    • overlayPadding: padding inside the popup palette
    • \n
    • cellWidth: width of a colored cell
    • \n
    • cellHeight: height of a colored cell
    • \n
    • cellMargin: margin of a colored cell (cell spacing = 2*cellMarging)
    • \n
    "}], "description": "Create a Color picker input field"}], "namespace": "", "module": "inputEx", "guessedname": "ColorField", "methods": {"onColorClick": {"params": [{"type": "Event", "name": "e", "description": " The original click event"}], "description": "Handle a color selection", "guessedname": "onColorClick", "guessedtype": "function"}, "setDefaultColors": {"return": {"type": "Array", "description": "List of colors to choose from"}, "params": [{"type": "int", "name": "index", "description": " Index of the palette to use"}], "description": "Set the colors to set in the picker", "guessedname": "setDefaultColors", "guessedtype": "function"}, "renderComponent": {"description": "Render the color button and the colorpicker popup", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "Color value"}, "description": "Return the color value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds the 'inputEx-ColorField' default className", "guessedname": "setOptions", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " Color to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "renderColorGrid": {"description": "This creates a color grid", "guessedname": "renderColorGrid", "guessedtype": "function"}, "close": {"description": "Call overlay when field is removed", "guessedname": "close", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "ColorField.js", "guessedtype": "function", "shortname": "inputEx.ColorField", "properties": {"palettes": {"description": "Default palettes", "guessedname": "palettes", "guessedtype": "property"}}, "description": "Create a Color picker input field"}, "inputEx.IPv4Field": {"name": "inputEx.IPv4Field", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Adds an IPv4 address regexp"}], "namespace": "", "module": "inputEx", "guessedname": "IPv4Field", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "set IPv4 regexp and invalid string", "guessedname": "setOptions", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "IPv4Field.js", "guessedtype": "function", "shortname": "inputEx.IPv4Field", "description": "Adds an IPv4 address regexp"}, "inputEx.widget.DataTable": {"name": "inputEx.widget.DataTable", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Options:\n
      \n
    • parentEl: DOMelement in which we have to insert the datatable
    • \n
    • datasource (or datasourceConfig)
    • \n
    • datatableOpts: additionnal datatable options
    • \n
    • fields: inputEx fields
    • \n
    • dialogLabel: title of the dialog
    • \n
    • columnDefs: YUI datatable columnDefs
    • \n
    • id: (optional, default is autogenerated) sets the id of the div wrapper around the widget
    • \n
    • allowInsert: adds the 'Insert' button (optional, default true)
    • \n
    • allowModify: default true
    • \n
    • allowDelete: default true
    • \n
    • showHideColumnsDlg: add a link to a dialog to show/hide columns
    • \n
    • panelConfig: (optional) YUI's dialog panelConfig object
    • \n
    "}], "description": "Create an editable datatable"}], "namespace": "", "module": "inputEx", "properties": {"datatable": {"description": "YUI's datatable instance", "guessedname": "datatable", "guessedtype": "property"}, "element": {"description": "Main container", "guessedname": "element", "guessedtype": "property"}}, "guessedname": "DataTable", "methods": {"onCellClick": {"description": "Public cell click handler", "guessedname": "onCellClick", "guessedtype": "function"}, "onCancelForm": {"description": "Cancel row edition", "guessedname": "onCancelForm", "guessedtype": "function"}, "render": {"description": "Render the main container only (not the datatable)", "guessedname": "render", "guessedtype": "function"}, "initEvents": {"description": "Init the events", "guessedname": "initEvents", "guessedtype": "function"}, "_onCellClick": {"description": "Handling cell click events", "guessedname": "_onCellClick", "guessedtype": "function"}, "renderShowHideColumnsDlg": {"description": "Render the dialog (+link) to show/hide columns", "guessedname": "renderShowHideColumnsDlg", "guessedtype": "function"}, "onDialogSave": {"description": "When saving the Dialog", "guessedname": "onDialogSave", "guessedtype": "function"}, "removeUnsavedRecord": {"description": "Remove the record that has not been saved", "guessedname": "removeUnsavedRecord", "guessedtype": "function"}, "onInsertButton": {"description": "Insert button event handler", "guessedname": "onInsertButton", "guessedtype": "function"}, "showTableOptions": {"description": "Display the dialog to show/hide fields", "guessedname": "showTableOptions", "guessedtype": "function"}, "setOptions": {"description": "Set the options", "guessedname": "setOptions", "guessedtype": "function"}, "fieldToColumndef": {"description": "Convert a single inputEx field definition to a DataTable column definition", "guessedname": "fieldToColumndef", "guessedtype": "function"}, "fieldsToColumndefs": {"description": "Convert an inputEx fields definition to a DataTable columns definition", "guessedname": "fieldsToColumndefs", "guessedtype": "function"}, "onDialogCancel": {"description": "When canceling the Dialog", "guessedname": "onDialogCancel", "guessedtype": "function"}, "renderDatatable": {"description": "Render the datatable", "guessedname": "renderDatatable", "guessedtype": "function"}, "renderDialog": {"description": "Render the dialog for row edition", "guessedname": "renderDialog", "guessedtype": "function"}, "onClickModify": {"description": "Opens the Dialog to edit the row\nCalled when the user clicked on modify button", "guessedname": "onClickModify", "guessedtype": "function"}, "setColumnDefs": {"description": "Set the column definitions, create them if none from the fields, adds the modify and delete buttons", "guessedname": "setColumnDefs", "guessedtype": "function"}}, "file": "DataTable.js", "guessedtype": "function", "shortname": "inputEx.widget.DataTable", "events": {"Event fired when an item is removed": {"desc": "YAHOO custom event fired when an item is removed", "params": [{"type": "YAHOO.widget.Record", "name": "Removed", "description": " record"}], "guessedname": "itemRemovedEvt", "guessedtype": "property"}, "Event fired when an item is modified": {"desc": "YAHOO custom event fired when an item is modified", "params": [{"type": "YAHOO.widget.Record", "name": "Modified", "description": " record"}], "guessedname": "itemModifiedEvt", "guessedtype": "property"}, "Event fired when an item is added": {"desc": "YAHOO custom event fired when an item is added", "params": [{"type": "YAHOO.widget.Record", "name": "Added", "description": " record"}], "guessedname": "itemAddedEvt", "guessedtype": "property"}}, "description": "Create an editable datatable"}, "inputEx.JsonSchema.Builder": {"file": "json-schema.js", "namespace": "", "module": "inputEx", "methods": {"defaultReferenceResolver": {"description": "return a schema based on the reference value default is to look up in map", "guessedname": "defaultReferenceResolver", "guessedtype": "function"}, "schemaToInputEx": {"params": [{"type": "JSONSchema", "name": "p", "description": ""}], "description": "Convert a JSON schema to inputEx JSON", "guessedname": "schemaToInputEx", "guessedtype": "function"}, "formFromInstance": {"description": "Create an inputEx Json form definition from a json schema instance object\nRespect the \"Self-Defined Schema Convention\"", "guessedname": "formFromInstance", "guessedtype": "function"}}, "guessedname": "Builder", "guessedtype": "function", "shortname": "inputEx.JsonSchema.Builder", "properties": {"referenceResolver": {"guessedname": "referenceResolver", "guessedtype": "property"}, "defaultOptions": {"description": "options to be applied unless already specified", "guessedname": "defaultOptions", "guessedtype": "property"}, "schemaToParamMap": {"description": "specify how other schema properties are mapped to inputParam properties", "guessedname": "schemaToParamMap", "guessedtype": "property"}, "schemaIdentifierMap": {"description": "key is reference, value is schema", "guessedname": "schemaIdentifierMap", "guessedtype": "property"}}, "name": "inputEx.JsonSchema.Builder"}, "inputEx.Lens": {"name": "inputEx.Lens", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • lens: html code for the lens. Fields will be displayed in the div elements that has the classname named \"field-(field name)\"
    • \n
    • visus: list of visualization for each field
    • \n
    "}], "description": "Display a group with inplace edit and custom template"}], "namespace": "", "module": "inputEx", "guessedname": "Lens", "methods": {"setOptions": {"description": "Set additional options", "guessedname": "setOptions", "guessedtype": "function"}, "renderFields": {"description": "Render each the fields in each div which class attribute is \"field-\"+fieldName", "guessedname": "renderFields", "guessedtype": "function"}}, "extends": "inputEx.Group", "superclass": "inputEx.Group", "file": "Lens-beta.js", "guessedtype": "function", "shortname": "inputEx.Lens", "description": "Display a group with inplace edit and custom template"}, "inputEx.RPC.Envelope": {"name": "inputEx.RPC.Envelope", "namespace": "", "module": "inputEx", "guessedname": "Envelope", "static": "", "file": "inputex-rpc.js", "guessedtype": "property", "shortname": "inputEx.RPC.Envelope", "description": "inputEx.RPC.Envelope"}, "inputEx.RPC.Envelope.JSON": {"name": "inputEx.RPC.Envelope.JSON", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.JSON", "description": "JSON envelope"}, "inputEx.CombineField": {"name": "inputEx.CombineField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • separators: array of string inserted
    • \n
    "}], "description": "A meta field to put N fields on the same line, separated by separators"}], "namespace": "", "module": "inputEx", "guessedname": "CombineField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "getValue": {"return": {"type": "Array", "description": "An array of values [value1, value2, ...]"}, "description": "Specific getValue", "guessedname": "getValue", "guessedtype": "function"}, "renderFields": {"description": "Render the subfields", "guessedname": "renderFields", "guessedtype": "function"}, "setValue": {"params": [{"type": "Array", "name": "values", "description": " [value1, value2, ...]"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "renderField": {"params": [{"type": "Object", "name": "fieldOptions", "description": " The field properties as required by inputEx()"}], "description": "Override to force required option on each subfield", "guessedname": "renderField", "guessedtype": "function"}}, "extends": "inputEx.Group", "superclass": "inputEx.Group", "file": "CombineField.js", "guessedtype": "function", "shortname": "inputEx.CombineField", "description": "A meta field to put N fields on the same line, separated by separators"}, "inputEx.Field": {"name": "inputEx.Field", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Configuration object\n
      \n
    • name: the name of the field
    • \n
    • required: boolean, the field cannot be null if true
    • \n
    • className: CSS class name for the div wrapper (default 'inputEx-Field')
    • \n
    • value: initial value
    • \n
    • parentEl: HTMLElement or String id, append the field to this DOM element
    • \n
    "}], "description": "An abstract class (never instantiated) that contains the shared features for all fields."}], "namespace": "", "module": "inputEx", "properties": {"options": {"description": "Configuration object to set the options for this class and the parent classes. See constructor details for options added by this class.", "guessedname": "options", "guessedtype": "property"}}, "guessedname": "Field", "methods": {"validate": {"return": {"type": "Boolean", "description": "field validation status (true/false)"}, "description": "Validation of the field", "guessedname": "validate", "guessedtype": "function"}, "render": {"description": "Default render of the dom element. Create a divEl that wraps the field.", "guessedname": "render", "guessedtype": "function"}, "show": {"description": "Show the field", "guessedname": "show", "guessedtype": "function"}, "focus": {"description": "Focus the field", "guessedname": "focus", "guessedtype": "function"}, "setClassFromState": {"description": "Set the styles for valid/invalide state", "guessedname": "setClassFromState", "guessedtype": "function"}, "getState": {"return": {"type": "String", "description": "One of the following states: 'empty', 'required', 'valid' or 'invalid'"}, "description": "Returns the current state (given its value)", "guessedname": "getState", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "getParentField": {"return": {"type": "inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField", "description": ""}, "description": "Return the parent field instance", "guessedname": "getParentField", "guessedtype": "function"}, "close": {"description": "Close the field and eventually opened popups...", "guessedname": "close", "guessedtype": "function"}, "getStateString": {"description": "Get the string for the given state", "guessedname": "getStateString", "guessedtype": "function"}, "hide": {"description": "Hide the field", "guessedname": "hide", "guessedtype": "function"}, "initEvents": {"description": "Initialize events of the Input", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the interface component into this.divEl", "guessedname": "renderComponent", "guessedtype": "function"}, "getEl": {"return": {"type": "HTMLElement", "description": "divEl The main DIV wrapper"}, "description": "The default render creates a div to put in the messages", "guessedname": "getEl", "guessedtype": "function"}, "isEmpty": {"description": "Should return true if empty", "guessedname": "isEmpty", "guessedtype": "function"}, "destroy": {"description": "Purge all event listeners and remove the component from the dom", "guessedname": "destroy", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "onChange event handler", "guessedname": "onChange", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The new value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Function to set the value", "guessedname": "setValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "onFocus": {"params": [{"type": "Event", "name": "e", "description": " The original 'focus' event"}], "description": "Function called on the focus event", "guessedname": "onFocus", "guessedtype": "function"}, "displayMessage": {"params": [{"type": "String", "name": "msg", "description": " Message to display"}], "description": "Update the message", "guessedname": "displayMessage", "guessedtype": "function"}, "onBlur": {"params": [{"type": "Event", "name": "e", "description": " The original 'blur' event"}], "description": "Function called on the blur event", "guessedname": "onBlur", "guessedtype": "function"}, "clear": {"params": [{"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Clear the field by setting the field value to this.options.value", "guessedname": "clear", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "value of the field"}, "description": "Return the value of the input", "guessedname": "getValue", "guessedtype": "function"}, "fireUpdatedEvt": {"description": "Fire the \"updated\" event (only if the field validated)\nEscape the stack using a setTimeout", "guessedname": "fireUpdatedEvt", "guessedtype": "function"}, "setParentField": {"params": [{"type": "inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField", "name": "parentField", "description": " The parent field instance"}], "description": "Set the parentField.\nGenerally use by composable fields (ie. Group,Form,ListField,CombineField,...}", "guessedname": "setParentField", "guessedtype": "function"}}, "file": "Field.js", "guessedtype": "function", "shortname": "inputEx.Field", "events": {"updatedEvt": {"desc": "YAHOO custom event fired when the field is \"updated\"
    subscribe with: this.updatedEvt.subscribe(function(e, params) { var value = params[0]; console.log(\"updated\",value, this.updatedEvt); }, this, true);", "params": [{"type": "Any", "name": "value", "description": " The new value of the field"}], "description": "Event fired after the user changed the value of the field.", "guessedname": "updatedEvt", "guessedtype": "property"}}, "description": "An abstract class (never instantiated) that contains the shared features for all fields."}, "inputEx.EmailField": {"name": "inputEx.EmailField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Field that adds the email regexp for validation. Result is always lower case."}], "namespace": "", "module": "inputEx", "guessedname": "EmailField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the email regexp and invalid message", "guessedname": "setOptions", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "The email string"}, "description": "Set the value to lower case since email have no case", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "EmailField.js", "guessedtype": "function", "shortname": "inputEx.EmailField", "description": "Field that adds the email regexp for validation. Result is always lower case."}, "inputEx.RTEField": {"name": "inputEx.RTEField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • opts: the options to be added when calling the RTE constructor (see YUI RTE)
    • \n
    • editorType: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.
    • \n
    "}], "description": "Wrapper for the Rich Text Editor from YUI"}], "namespace": "", "module": "inputEx", "guessedname": "RTEField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "Render the field using the YUI Editor widget", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The html string"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the html content", "guessedname": "setValue", "guessedtype": "function"}, "filter_msword": {"return": {"type": "String", "description": "The html string"}, "params": [{"type": "String", "name": "value", "description": " The html string"}], "description": "Filters out msword html comments, classes, and other junk\n(complementary with YAHOO.widget.SimpleEditor.prototype.filter_msword, when filterWord option is true)", "guessedname": "filter_msword", "guessedtype": "function"}, "getValue": {"return": {"type": "String", "description": "the html string"}, "description": "Get the html string", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "RTEField.js", "guessedtype": "function", "shortname": "inputEx.RTEField", "description": "Wrapper for the Rich Text Editor from YUI"}, "inputEx.widget.DDListItem": {"name": "inputEx.widget.DDListItem", "constructors": [{"params": [{"type": "String", "name": "id", "description": ""}], "description": "DDProxy for DDList items (used by DDList)"}], "namespace": "", "module": "inputEx", "guessedname": "DDListItem", "methods": {"onDragDrop": {"guessedname": "onDragDrop", "guessedtype": "function"}, "onDrag": {"description": "Keep track of the direction of the drag for use during onDragOver", "guessedname": "onDrag", "guessedtype": "function"}, "startDrag": {"description": "Create the proxy element", "guessedname": "startDrag", "guessedtype": "function"}, "onDragOver": {"guessedname": "onDragOver", "guessedtype": "function"}, "endDrag": {"description": "Handle the endDrag and eventually fire the listReordered event", "guessedname": "endDrag", "guessedtype": "function"}}, "extends": "YAHOO.util.DDProxy", "superclass": "YAHOO.util.DDProxy", "file": "ddlist.js", "guessedtype": "function", "shortname": "inputEx.widget.DDListItem", "description": "DDProxy for DDList items (used by DDList)"}, "inputEx.InPlaceEdit": {"name": "inputEx.InPlaceEdit", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • visu
    • \n
    • editorField
    • \n
    • animColors
    • \n
    "}], "description": "Meta field providing in place editing (the editor appears when you click on the formatted value)."}], "namespace": "", "module": "inputEx", "guessedname": "InPlaceEdit", "methods": {"onOkEditor": {"description": "Validate the editor (ok button, enter key or tabulation key)", "guessedname": "onOkEditor", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value and update the display", "guessedname": "setValue", "guessedtype": "function"}, "onVisuMouseOver": {"params": [{"type": "Event", "name": "e", "description": " The original mouseover event"}], "description": "Set the color when hovering the field", "guessedname": "onVisuMouseOver", "guessedtype": "function"}, "openEditor": {"description": "Display the editor", "guessedname": "openEditor", "guessedtype": "function"}, "initEvents": {"description": "Adds the events for the editor and color animations", "guessedname": "initEvents", "guessedtype": "function"}, "onVisuMouseOut": {"params": [{"type": "Event", "name": "e", "description": " The original mouseout event"}], "description": "Start the color animation when hovering the field", "guessedname": "onVisuMouseOut", "guessedtype": "function"}, "renderComponent": {"description": "Override renderComponent to create 2 divs: the visualization one, and the edit in place form", "guessedname": "renderComponent", "guessedtype": "function"}, "onKeyDown": {"params": [{"type": "Event", "name": "e", "description": " The original keydown event"}], "description": "Handle the tabulation key to close the editor", "guessedname": "onKeyDown", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "The value of the subfield"}, "description": "Returned the previously stored value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "renderVisuDiv": {"description": "Create the div that will contain the visualization of the value", "guessedname": "renderVisuDiv", "guessedtype": "function"}, "onKeyUp": {"params": [{"type": "Event", "name": "e", "description": " The original keyup event"}], "description": "Handle some keys events to close the editor", "guessedname": "onKeyUp", "guessedtype": "function"}, "close": {"description": "Close the editor when calling the close function on this field", "guessedname": "close", "guessedtype": "function"}, "onCancelEditor": {"params": [{"type": "Event", "name": "e", "description": " The original event (click, blur or keydown)"}], "description": "Close the editor on cancel (cancel button, blur event or escape key)", "guessedname": "onCancelEditor", "guessedtype": "function"}, "renderEditor": {"description": "Render the editor", "guessedname": "renderEditor", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "InPlaceEdit.js", "guessedtype": "function", "shortname": "inputEx.InPlaceEdit", "description": "Meta field providing in place editing (the editor appears when you click on the formatted value)."}, "inputEx.ListField": {"name": "inputEx.ListField", "constructors": [{"params": [{"type": "type: 'string'", "name": "options", "description": " Added options:\n
      \n
    • sortable: Add arrows to sort the items if true (default false)
    • \n
    • elementType: an element type definition (default is )
    • \n
    • useButtons: use buttons instead of links (default false)
    • \n
    • unique: require values to be unique (default false)
    • \n
    • listAddLabel: if useButtons is false, text to add an item
    • \n
    • listRemoveLabel: if useButtons is false, text to remove an item
    • \n
    • maxItems: maximum number of items (leave undefined if no maximum, default)
    • \n
    • minItems: minimum number of items to validate (leave undefined if no minimum, default)
    • \n
    "}], "description": "Meta field to create a list of other fields"}], "namespace": "", "module": "inputEx", "guessedname": "ListField", "methods": {"onDelete": {"params": [{"type": "Event", "name": "e", "description": " The original click event"}], "description": "Called when the user clicked on a delete button.", "guessedname": "onDelete", "guessedtype": "function"}, "setValue": {"params": [{"type": "Array", "name": "value", "description": " The list of values to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of all the subfields", "guessedname": "setValue", "guessedtype": "function"}, "onArrowDown": {"params": [{"type": "Event", "name": "e", "description": " Original click event"}], "description": "Switch a subField with its next one\nCalled when the user clicked on the down arrow of a sortable list", "guessedname": "onArrowDown", "guessedtype": "function"}, "initEvents": {"description": "Handle the click event on the add button", "guessedname": "initEvents", "guessedtype": "function"}, "removeElement": {"params": [{"type": "integer", "name": "index", "description": " The index of the element to remove"}], "description": "Remove the line from the dom and the subField from the list.", "guessedname": "removeElement", "guessedtype": "function"}, "renderComponent": {"description": "Render the addButton", "guessedname": "renderComponent", "guessedtype": "function"}, "renderSubField": {"return": {"type": "inputEx.Field", "description": "instance of the created field (inputEx.Field or derivative)"}, "params": [{"type": "Any", "name": "The", "description": " initial value of the subfield to create"}], "description": "Adds a new line to the List Field", "guessedname": "renderSubField", "guessedtype": "function"}, "getValue": {"return": {"type": "Array", "description": "The array"}, "description": "Return the array of values", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the ListField classname", "guessedname": "setOptions", "guessedtype": "function"}, "onAddButton": {"params": [{"type": "Event", "name": "e", "description": " The original click event"}], "description": "Add a new element to the list and fire updated event", "guessedname": "onAddButton", "guessedtype": "function"}, "validate": {"returns": "{Boolean} true if all fields validate, required fields are not empty and unique constraint (if specified) is not violated", "description": "Validate each field", "guessedname": "validate", "guessedtype": "function"}, "onArrowUp": {"params": [{"type": "Event", "name": "e", "description": " Original click event"}], "description": "Switch a subField with its previous one\nCalled when the user clicked on the up arrow of a sortable list", "guessedname": "onArrowUp", "guessedtype": "function"}, "addElement": {"return": {"type": "inputEx.Field", "description": "SubField added instance"}, "params": [{"type": "Any", "name": "The", "description": " initial value of the subfield to create"}], "description": "Adds an element", "guessedname": "addElement", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "ListField.js", "guessedtype": "function", "shortname": "inputEx.ListField", "properties": {"subFields": {"description": "List of all the subField instances", "guessedname": "subFields", "guessedtype": "property"}}, "description": "Meta field to create a list of other fields"}, "inputEx.IntegerField": {"name": "inputEx.IntegerField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • negative: boolean indicating if we accept boolean numbers
    • \n
    "}], "description": "A field limited to number inputs"}], "namespace": "", "module": "inputEx", "guessedname": "IntegerField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": ""}], "description": "Adds the negative, min, and max options", "guessedname": "setOptions", "guessedtype": "function"}, "validate": {"description": "Validate if is a number", "guessedname": "validate", "guessedtype": "function"}, "getValue": {"return": {"type": "int", "description": "The integer value"}, "description": "Get the value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "IntegerField.js", "guessedtype": "function", "shortname": "inputEx.IntegerField", "description": "A field limited to number inputs"}, "inputEx.RPC.SMDTester": {"name": "inputEx.RPC.SMDTester", "namespace": "", "module": "inputEx", "guessedname": "SMDTester", "methods": {"onServiceLoaded": {"description": "When the SMD has been loaded", "guessedname": "onServiceLoaded", "guessedtype": "function"}, "loadSMD": {"description": "When the user select a SMD in the select", "guessedname": "loadSMD", "guessedtype": "function"}, "onServiceMethod": {"description": "When a method has been selected :", "guessedname": "onServiceMethod", "guessedtype": "function"}}, "file": "smdTester.js", "guessedtype": "function", "shortname": "inputEx.RPC.SMDTester", "description": "Creates a form to test various SMD files"}, "inputEx.TreeField": {"name": "inputEx.TreeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Meta field to create trees"}], "namespace": "", "module": "inputEx", "guessedname": "TreeField", "methods": {"renderComponent": {"description": "Render the addButton and childContainer", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "obj", "description": " The tree object"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "renderSubField": {"return": {"type": "inputEx.Field", "description": "instance of the created field (inputEx.Field or derivative)"}, "params": [{"type": "Any", "name": "value", "description": " Value of the subelement"}], "description": "Adds a new line to the List Field", "guessedname": "renderSubField", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "The tree object"}, "description": "Get the value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.ListField", "superclass": "inputEx.ListField", "file": "TreeField.js", "guessedtype": "function", "shortname": "inputEx.TreeField", "description": "Meta field to create trees"}, "inputEx.JsonSchema": {"name": "inputEx.JsonSchema", "namespace": "", "module": "inputEx", "guessedname": "JsonSchema", "methods": {"inputExToSchema": {"description": "Convert the inputEx JSON fields to a JSON schema", "guessedname": "inputExToSchema", "guessedtype": "function"}}, "static": "", "file": "json-schema.js", "guessedtype": "property", "shortname": "inputEx.JsonSchema", "description": "Namespace containing utility functions for conversion between inputEx JSON format and JSON Schema\nbased on \"Json Schema Proposal Working Draft\":\nhttp://groups.google.com/group/json-schema/web/json-schema-proposal-working-draft\nThe proposal is still under discussion and the implementation is very minimalist.\nTODO:\n- we should provide a lot of json schema examples and instances that should/should not validate\n- use the $ref (async calls => provide callbacks to methods)\n- Inheritance\nLimitations:\n- ??? Please do not trust inputEx: the getValue may return a value which do NOT validate the schema (provide an example ?)\n- no tuple typing for arrays\n- no \"Union type definition\""}, "inputEx.RPC.Envelope.JSON-RPC-2.0": {"name": "inputEx.RPC.Envelope.JSON-RPC-2.0", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "serialize", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "serialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.JSON-RPC-2.0", "description": "JSON-RPC-2.0 envelope"}, "inputEx.widget.JsonTreeInspector": {"name": "inputEx.widget.JsonTreeInspector", "constructors": [{"params": [{"type": "String|HTMLElement", "name": "parentEl", "description": " where to append the tree"}, {"type": "Object", "name": "object", "description": " the object to inspect"}, {"type": "String", "name": "jsonPath", "description": " JSON Path string (optional) (http://code.google.com/p/jsonpath/wiki/Javascript)"}], "description": "Create a treeview to inspect a javascript object"}], "namespace": "", "module": "inputEx", "guessedname": "JsonTreeInspector", "methods": {"expandAll": {"params": [{"type": "Integer", "name": "maxLevel", "description": ""}], "description": "Expand the root node", "guessedname": "expandAll", "guessedtype": "function"}, "expandBranch": {"params": [{"type": "HTMLElement", "name": "li", "description": ""}, {"type": "Integer", "name": "maxLevel", "description": ""}], "description": "Expand a branch given a li element", "guessedname": "expandBranch", "guessedtype": "function"}, "buildBranch": {"description": "Build the sub-branch for obj", "guessedname": "buildBranch", "guessedtype": "function"}, "expandElement": {"description": "expand the node given the li element", "guessedname": "expandElement", "guessedtype": "function"}, "jsonPath": {"description": "JSONPath 0.8.0 - XPath for JSON\nhttp://code.google.com/p/jsonpath/\nhttp://code.google.com/p/jsonpath/wiki/Javascript\nCopyright (c) 2007 Stefan Goessner (goessner.net)\nLicensed under the MIT (MIT-LICENSE.txt) licence.", "guessedname": "jsonPath", "guessedtype": "function"}, "destroy": {"description": "Destroy the widget", "guessedname": "destroy", "guessedtype": "function"}, "onItemClick": {"description": "When the user click on a node", "guessedname": "onItemClick", "guessedtype": "function"}}, "file": "json-tree-inspector.js", "guessedtype": "function", "shortname": "inputEx.widget.JsonTreeInspector", "properties": {"el": {"description": "Main div element", "guessedname": "el", "guessedtype": "property"}, "hash": {"description": "Hash to contain the values indexed by li ids", "guessedname": "hash", "guessedtype": "property"}}, "description": "Create a treeview to inspect a javascript object"}, "inputEx.SliderField": {"name": "inputEx.SliderField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a slider using YUI widgets"}], "namespace": "", "module": "inputEx", "guessedname": "SliderField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the classname to 'inputEx-SliderField'", "guessedname": "setOptions", "guessedtype": "function"}, "renderComponent": {"description": "render a slider widget", "guessedname": "renderComponent", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The new value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Function to set the value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "int", "description": "The integer value"}, "description": "Get the value from the slider", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "SliderField.js", "guessedtype": "function", "shortname": "inputEx.SliderField", "description": "Create a slider using YUI widgets"}, "inputEx.RPC.Envelope.URL": {"name": "inputEx.RPC.Envelope.URL", "namespace": "", "module": "inputEx", "methods": {"serialize": {"description": "Serialize data into URI encoded parameters", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"description": "Deserialize", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "shortname": "inputEx.RPC.Envelope.URL", "description": "URL envelope"}, "inputEx.UrlField": {"name": "inputEx.UrlField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object\n
      \n
    • favicon: boolean whether the domain favicon.ico should be displayed or not (default is true, except for https)
    • \n
    "}], "description": "Adds an url regexp, and display the favicon at this url"}], "namespace": "", "module": "inputEx", "guessedname": "UrlField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds the invalid Url message", "guessedname": "setOptions", "guessedtype": "function"}, "displayFavicon": {"description": "Display the favicon if the icon was found (use of the naturalWidth property)", "guessedname": "displayFavicon", "guessedtype": "function"}, "render": {"description": "Adds a img tag before the field to display the favicon", "guessedname": "render", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "UrlField.js", "guessedtype": "function", "shortname": "inputEx.UrlField", "description": "Adds an url regexp, and display the favicon at this url"}, "inputEx.SerializeField": {"name": "inputEx.SerializeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Standard inputEx options definition"}], "description": "SerializeField allows to serialize/deserialize a complex sub-group to a string"}], "namespace": "", "module": "inputEx", "guessedname": "SerializeField", "methods": {"setValue": {"description": "Use the deserialize method and set the value of the subField", "guessedname": "setValue", "guessedtype": "function"}, "deserialize": {"description": "Use the configured deserializer", "guessedname": "deserialize", "guessedtype": "function"}, "initEvents": {"description": "Subscribe the subField", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the subfield", "guessedname": "renderComponent", "guessedtype": "function"}, "serialize": {"description": "Use the configured serializer", "guessedname": "serialize", "guessedtype": "function"}, "focus": {"description": "Sets the focus on this field", "guessedname": "focus", "guessedtype": "function"}, "getValue": {"description": "Use the subField getValue and serialize it with the selected serializing method", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds some options: subfield & serializer", "guessedname": "setOptions", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "SerializeField-beta.js", "guessedtype": "function", "shortname": "inputEx.SerializeField", "description": "SerializeField allows to serialize/deserialize a complex sub-group to a string"}, "inputEx.DateTimeField": {"name": "inputEx.DateTimeField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options\n
      \n
    • dateFormat: same as DateField
    • \n
    "}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "DateTimeField", "methods": {"setValue": {"params": [{"type": "Date", "name": "val", "description": " Date to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of both subfields", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "Date", "description": "The javascript Date object"}, "description": "Concat the values to return a date", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "DateTimeField.js", "guessedtype": "function", "shortname": "inputEx.DateTimeField", "description": "A field limited to number inputs (floating)"}, "inputEx.MultiSelectField": {"name": "inputEx.MultiSelectField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • selectValues: contains the list of options values
    • \n
    • selectOptions: list of option element texts
    • \n
    "}], "description": "Create a multi select field"}], "namespace": "", "module": "inputEx", "guessedname": "MultiSelectField", "methods": {"onAddNewItem": {"description": "Add an item to the list when the select changed", "guessedname": "onAddNewItem", "guessedtype": "function"}, "initEvents": {"description": "Register the \"change\" event", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Build the DDList", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the selected value from the selectValues array"}, "description": "Return the value", "guessedname": "getValue", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value of the list", "guessedname": "setValue", "guessedtype": "function"}, "onItemRemoved": {"description": "Re-enable the option element when an item is removed by the user", "guessedname": "onItemRemoved", "guessedtype": "function"}}, "extends": "inputEx.SelectField", "superclass": "inputEx.SelectField", "file": "MultiSelectField.js", "guessedtype": "function", "shortname": "inputEx.MultiSelectField", "description": "Create a multi select field"}, "inputEx.RadioButton": {"name": "inputEx.RadioButton", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a YUI Radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}], "namespace": "", "module": "inputEx", "guessedname": "RadioButton", "extends": "inputEx.RadioField", "superclass": "inputEx.RadioField", "file": "RadioButton.js", "guessedtype": "function", "shortname": "inputEx.RadioButton", "description": "Create a YUI Radio button. Here are the added options :\n
      \n
    • choices: list of choices (array of string)
    • \n
    • values: list of returned values (array )
    • \n
    • allowAny: add an option with a string field
    • \n
    "}, "inputEx.SelectField": {"name": "inputEx.SelectField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • selectValues: contains the list of options values
    • \n
    • selectOptions: list of option element texts
    • \n
    • multiple: boolean to allow multiple selections
    • \n
    "}], "description": "Create a select field"}], "namespace": "", "module": "inputEx", "guessedname": "SelectField", "methods": {"setValue": {"params": [{"type": "String", "name": "value", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "addOption": {"params": [{"type": "Object", "name": "item", "description": ""}], "description": "Add an option in the selector", "guessedname": "addOption", "guessedtype": "function"}, "initEvents": {"description": "Register the \"change\" event", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Build a select tag with options", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the selected value from the selectValues array"}, "description": "Return the value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "SelectField.js", "guessedtype": "function", "shortname": "inputEx.SelectField", "description": "Create a select field"}, "inputEx.NumberField": {"name": "inputEx.NumberField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field limited to number inputs (floating)"}], "namespace": "", "module": "inputEx", "guessedname": "NumberField", "methods": {"setOptions": {"params": [{"type": "Object", "name": "options", "description": ""}], "description": "Adds the min, and max options", "guessedname": "setOptions", "guessedtype": "function"}, "validate": {"description": "Check if the entered number is a float", "guessedname": "validate", "guessedtype": "function"}, "getValue": {"return": {"type": "Number", "description": "The parsed float"}, "description": "Return a parsed float (javascript type number)", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "NumberField.js", "guessedtype": "function", "shortname": "inputEx.NumberField", "description": "A field limited to number inputs (floating)"}, "inputEx.Group": {"name": "inputEx.Group", "constructors": [{"params": [{"type": "Object} options The following options are added for Groups and subclasses:\n
      \n
    • fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, ... ", "name": "
    • ", "description": "\n
    • legend: The legend for the fieldset (default is an empty string)
    • \n
    • collapsible: Boolean to make the group collapsible (default is false)
    • \n
    • collapsed: If collapsible only, will be collapsed at creation (default is false)
    • \n
    • flatten:
    • \n
    "}], "description": "Handle a group of fields"}], "namespace": "", "module": "inputEx", "guessedname": "Group", "methods": {"render": {"description": "Render the group", "guessedname": "render", "guessedtype": "function"}, "runInteractions": {"params": [{"type": "inputEx.Field", "name": "fieldInstance", "description": " Field that just changed"}, {"type": "Any", "name": "fieldValue", "description": " Field value"}], "description": "Run the interactions for the given field instance", "guessedname": "runInteractions", "guessedtype": "function"}, "setErrors": {"params": [{"type": "Object || Array", "name": "errors", "description": " Hash object containing error messages as Strings referenced by the field name, or array [ [\"fieldName\", \"Message\"], ...]"}], "description": "Write error messages for fields as specified in the hash", "guessedname": "setErrors", "guessedtype": "function"}, "focus": {"description": "Set the focus to the first input in the group", "guessedname": "focus", "guessedtype": "function"}, "enable": {"description": "Enable all fields in the group", "guessedname": "enable", "guessedtype": "function"}, "close": {"description": "Close the group (recursively calls \"close\" on each field, does NOT hide the group )\nCall this function before hidding the group to close any field popup", "guessedname": "close", "guessedtype": "function"}, "runFieldsInteractions": {"description": "Run the interactions for all fields", "guessedname": "runFieldsInteractions", "guessedtype": "function"}, "renderField": {"params": [{"type": "Object", "name": "fieldOptions", "description": " The field properties as required by the inputEx() method"}], "description": "Instanciate one field given its parameters, type or fieldClass", "guessedname": "renderField", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The group value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the values of each field from a key/value hash object", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Add a listener for the 'collapsible' option", "guessedname": "initEvents", "guessedtype": "function"}, "runAction": {"params": [{"type": "Object", "name": "action", "description": " inputEx action object"}, {"type": "Any", "name": "triggerValue", "description": " The value that triggered the interaction"}], "description": "Run an action (for interactions)", "guessedname": "runAction", "guessedtype": "function"}, "destroy": {"description": "Purge all event listeners and remove the component from the dom", "guessedname": "destroy", "guessedtype": "function"}, "onChange": {"params": [{"type": "String", "name": "eventName", "description": " Event name"}, {"type": "Array", "name": "args", "description": " Array of [fieldValue, fieldInstance]"}], "description": "Called when one of the group subfields is updated.", "guessedname": "onChange", "guessedtype": "function"}, "renderFields": {"description": "Render all the fields.\nWe use the parentEl so that inputEx.Form can append them to the FORM tag", "guessedname": "renderFields", "guessedtype": "function"}, "getFieldByName": {"params": [{"type": "String", "name": "fieldName", "description": " The name property"}], "description": "Return the sub-field instance by its name property", "guessedname": "getFieldByName", "guessedtype": "function"}, "getFieldsStates": {"returns": "{Object} with all Forms's fields state, error message\nand validate containing a boolean for the global Form validation", "description": "Alternative method to validate for advanced error handling", "guessedname": "getFieldsStates", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds some options: legend, collapsible, fields...", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable all fields in the group", "guessedname": "disable", "guessedtype": "function"}, "validate": {"returns": "{Boolean} true if all fields validate and required fields are not empty", "description": "Validate each field", "guessedname": "validate", "guessedtype": "function"}, "clear": {"params": [{"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Clear all subfields", "guessedname": "clear", "guessedtype": "function"}, "getValue": {"description": "Return an object with all the values of the fields", "guessedname": "getValue", "guessedtype": "function"}, "toggleCollapse": {"description": "Toggle the collapse state", "guessedname": "toggleCollapse", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "Group.js", "guessedtype": "function", "shortname": "inputEx.Group", "description": "Handle a group of fields"}, "inputEx.AutoComplete": {"name": "inputEx.AutoComplete", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options for Autocompleter\n
      \n
    • datasource: the datasource
    • \n
    • autoComp: autocompleter options
    • \n
    • returnValue: function to format the returned value (optional)
    • \n
    "}], "description": "An autocomplete field that wraps the YUI autocompleter"}], "namespace": "", "module": "inputEx", "guessedname": "AutoComplete", "methods": {"itemSelectHandler": {"params": [{"type": "", "name": "sType", "description": ""}, {"type": "", "name": "aArgs", "description": ""}], "description": "itemSelect handler", "guessedname": "itemSelectHandler", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " Value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Custom event init\n
      \n
    • listen to autocompleter textboxBlurEvent instead of this.el \"blur\" event
    • \n
    • listener to autocompleter textboxBlurEvent added in buildAutocomplete method
    • \n
    ", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render the hidden list element", "guessedname": "renderComponent", "guessedtype": "function"}, "getValue": {"description": "Return the hidden value (stored in a hidden input)", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds autocomplete options", "guessedname": "setOptions", "guessedtype": "function"}, "onChange": {"params": [{"type": "Event", "name": "e", "description": " The original 'change' event"}], "description": "onChange event handler", "guessedname": "onChange", "guessedtype": "function"}, "buildAutocomplete": {"description": "Build the YUI autocompleter", "guessedname": "buildAutocomplete", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "AutoComplete.js", "guessedtype": "function", "shortname": "inputEx.AutoComplete", "description": "An autocomplete field that wraps the YUI autocompleter"}, "inputEx.DateSplitField": {"name": "inputEx.DateSplitField", "namespace": "", "module": "inputEx", "guessedname": "DateSplitField", "methods": {"setValue": {"params": [{"type": "Date", "name": "val", "description": " Date to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value. Format the date according to options.dateFormat", "guessedname": "setValue", "guessedtype": "function"}}, "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "DateSplitField.js", "guessedtype": "function", "shortname": "inputEx.DateSplitField", "description": "inputEx.DateSplitField"}, "inputEx.StringField": {"name": "inputEx.StringField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • regexp: regular expression used to validate (otherwise it always validate)
    • \n
    • size: size attribute of the input
    • \n
    • maxLength: maximum size of the string field (no message display, uses the maxlength html attribute)
    • \n
    • minLength: minimum size of the string field (will display an error message if shorter)
    • \n
    • typeInvite: string displayed when the field is empty
    • \n
    • readonly: set the field as readonly
    • \n
    "}], "description": "Basic string field (equivalent to the input type \"text\")"}], "namespace": "", "module": "inputEx", "guessedname": "StringField", "methods": {"onFocus": {"description": "Clear the typeInvite when the field gains focus", "guessedname": "onFocus", "guessedtype": "function"}, "setValue": {"params": [{"type": "String", "name": "value", "description": " The new value"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Function to set the value", "guessedname": "setValue", "guessedtype": "function"}, "initEvents": {"description": "Register the change, focus and blur events", "guessedname": "initEvents", "guessedtype": "function"}, "renderComponent": {"description": "Render an 'INPUT' DOM node", "guessedname": "renderComponent", "guessedtype": "function"}, "focus": {"description": "Set the focus to this field", "guessedname": "focus", "guessedtype": "function"}, "setClassFromState": {"description": "Display the type invite after setting the class", "guessedname": "setClassFromState", "guessedtype": "function"}, "getValue": {"params": [{"type": "String", "name": "The", "description": " string value"}], "description": "Return the string value", "guessedname": "getValue", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Set the default values of the options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the field", "guessedname": "disable", "guessedtype": "function"}, "enable": {"description": "Enable the field", "guessedname": "enable", "guessedtype": "function"}, "validate": {"description": "Uses the optional regexp to validate the field value", "guessedname": "validate", "guessedtype": "function"}, "getStateString": {"description": "Add the minLength string message handling", "guessedname": "getStateString", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "StringField.js", "guessedtype": "function", "shortname": "inputEx.StringField", "description": "Basic string field (equivalent to the input type \"text\")"}, "inputEx.DateField": {"name": "inputEx.DateField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Add the folowing options: \n
      \n
    • dateFormat: Editor format (the one which is presented to the user) default to 'm/d/Y'
    • \n
    • valueFormat: if falsy, the field will return a javascript Date instance. Otherwise, this format will be used for input parsing/output formatting
    • \n
    "}], "description": "A Date Field."}], "namespace": "", "module": "inputEx", "guessedname": "DateField", "methods": {"setValue": {"params": [{"type": "Date", "name": "val", "description": " Date to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Format the date according to options.dateFormat", "guessedname": "setValue", "guessedtype": "function"}, "parseWithFormat": {"description": "Those methods are limited but largely enough for our usage", "guessedname": "parseWithFormat", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds the 'inputEx-DateField' default className", "guessedname": "setOptions", "guessedtype": "function"}, "formatDate": {"description": "Those methods are limited but largely enough for our usage", "guessedname": "formatDate", "guessedtype": "function"}, "validate": {"description": "Specific Date validation depending of the 'format' option", "guessedname": "validate", "guessedtype": "function"}, "getValue": {"return": {"type": "String || Date", "description": "Formatted date using the valueFormat or a javascript Date instance"}, "params": [{"type": "Boolean", "name": "forceDate", "description": " Skip the valueFormat option if set to truthy"}], "description": "Return the date", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "DateField.js", "guessedtype": "function", "shortname": "inputEx.DateField", "description": "A Date Field."}, "inputEx.Form": {"name": "inputEx.Form", "constructors": [{"params": [{"type": "Object} options The following options are added for Forms:\n
      \n
    • buttons: list of button definition objects {value: 'Click Me', type: 'submit'}
    • \n
    • ajax: send the form through an ajax request (submit button should be present): {method: 'POST', uri: 'myScript.php', callback: same as YAHOO.util.Connect.asyncRequest callback", "name": "
    • ", "description": "\n
    • showMask: adds a mask over the form while the request is running (default is false)
    • \n
    "}], "description": "Create a group of fields within a FORM tag and adds buttons"}], "namespace": "", "module": "inputEx", "guessedname": "Form", "methods": {"hideMask": {"description": "Hide the form mask", "guessedname": "hideMask", "guessedtype": "function"}, "renderMask": {"description": "Create a Mask over the form", "guessedname": "renderMask", "guessedtype": "function"}, "onSubmit": {"params": [{"type": "Event", "name": "e", "description": " The original onSubmit event"}], "description": "Intercept the 'onsubmit' event and stop it if !validate\nIf the ajax option object is set, use YUI async Request to send the form", "guessedname": "onSubmit", "guessedtype": "function"}, "render": {"description": "Render the group", "guessedname": "render", "guessedtype": "function"}, "initEvents": {"description": "Init the events", "guessedname": "initEvents", "guessedtype": "function"}, "enable": {"description": "Enable all fields and buttons in the form", "guessedname": "enable", "guessedtype": "function"}, "disable": {"description": "Disable all fields and buttons in the form", "guessedname": "disable", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Adds buttons and set ajax default parameters", "guessedname": "setOptions", "guessedtype": "function"}, "asyncRequest": {"description": "Send the form value in JSON through an ajax request", "guessedname": "asyncRequest", "guessedtype": "function"}, "destroy": {"description": "Purge all event listeners and remove the component from the dom", "guessedname": "destroy", "guessedtype": "function"}, "renderButtons": {"description": "Render the buttons", "guessedname": "renderButtons", "guessedtype": "function"}, "showMask": {"description": "Show the form mask", "guessedname": "showMask", "guessedtype": "function"}}, "extends": "inputEx.Group", "superclass": "inputEx.Group", "file": "Form.js", "guessedtype": "function", "shortname": "inputEx.Form", "description": "Create a group of fields within a FORM tag and adds buttons"}, "inputEx.HiddenField": {"name": "inputEx.HiddenField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "Create a hidden input, inherits from inputEx.Field"}], "namespace": "", "module": "inputEx", "guessedname": "HiddenField", "methods": {"setValue": {"params": [{"type": "Any", "name": "val", "description": " The value to set"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Stores the value in a local variable", "guessedname": "setValue", "guessedtype": "function"}, "render": {"description": "Doesn't render much...", "guessedname": "render", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the previously stored value"}, "description": "Get the previously stored value", "guessedname": "getValue", "guessedtype": "function"}}, "extends": "inputEx.Field", "superclass": "inputEx.Field", "file": "HiddenField.js", "guessedtype": "function", "shortname": "inputEx.HiddenField", "description": "Create a hidden input, inherits from inputEx.Field"}, "inputEx": {"return": "{inputEx.Field} Created field instance", "name": "inputEx", "namespace": "", "module": "inputEx", "guessedname": "inputEx", "methods": {"compactArray": {"return": {"type": "Array", "description": "The new array"}, "description": "Create a new array without the null or undefined values", "static": "", "guessedname": "compactArray", "guessedtype": "function", "params": [{"type": "Array", "name": "arr", "description": " The array to compact"}]}, "cn": {"return": {"type": "HTMLElement", "description": "The created node"}, "description": "Helper function to create a DOM node. (wrapps the document.createElement tag and the inputEx.sn functions)", "static": "", "guessedname": "cn", "guessedtype": "function", "params": [{"type": "String", "name": "tag", "description": " The tagName to create (ex: 'div', 'a', ...)"}, {"type": "Object", "name": "[domAttributes]", "description": " see inputEx.sn"}, {"type": "Object", "name": "[styleAttributes]", "description": " see inputEx.sn"}, {"type": "String", "name": "[innerHTML]", "description": " The html string to append into the created element"}]}, "registerType": {"static": "", "params": [{"type": "String", "name": "type", "description": " String used as the inputEx field type"}, {"type": "Class", "name": "fieldClass", "description": " Field Class to register as this type"}, {"type": "Array", "name": "groupOptions", "description": " List of inputEx field description for each option"}, {"type": "Boolean", "name": "dontInherit", "description": " Won't inherhit the parent field properties if set to true"}], "description": "When you create a new inputEx Field Class, you can register it to give it a simple type.\nex: inputEx.registerType(\"color\", inputEx.ColorField);", "guessedname": "registerType", "guessedtype": "function"}, "indexOf": {"return": {"type": "number", "description": "Element position, -1 if not found"}, "description": "Find the position of the given element. (This method is not available in IE 6)", "static": "", "guessedname": "indexOf", "guessedtype": "function", "params": [{"type": "Object", "name": "el", "description": " Value to search"}, {"type": "Array", "name": "arr", "description": " The array to search"}]}, "getType": {"return": {"type": "String", "description": "returns the inputEx type string or null"}, "description": "Get the inputex type for the given class (ex: inputEx.getType(inputEx.ColorField) returns \"color\")", "static": "", "guessedname": "getType", "guessedtype": "function", "params": [{"type": "inputEx.Field", "name": "FieldClass", "description": " An inputEx.Field or derivated class"}]}, "buildField": {"return": {"type": "inputEx.Field", "description": "Created field instance"}, "guessedtype": "function", "params": [{"type": "Object", "name": "fieldOptions", "description": ""}], "guessedname": "buildField", "deprecated": "Kept for backward compatibility (alias for inputEx() )"}, "sn": {"static": "", "params": [{"type": "HTMLElement", "name": "el", "description": " The element to set attributes to"}, {"type": "Object} domAttributes An object containing key/value pairs to set as node attributes (ex: {id: 'myElement', className: 'myCssClass', ...", "name": ")", "description": ""}, {"type": "Object", "name": "styleAttributes", "description": " Same thing for style attributes. Please use camelCase for style attributes (ex: backgroundColor for 'background-color')"}], "description": "Helper function to set DOM node attributes and style attributes.", "guessedname": "sn", "guessedtype": "function"}, "removeAccents": {"return": {"type": "String", "description": "String without accent"}, "description": "Return a string without accent (only on lowercase)", "static": "", "guessedname": "removeAccents", "guessedtype": "function", "params": [{"type": "String", "name": "str", "description": " The string"}]}, "getFieldClass": {"static": "", "params": [{"type": "String", "name": "type", "description": " String type of the field"}], "description": "Returns the class for the given type\nex: inputEx.getFieldClass(\"color\") returns inputEx.ColorField", "guessedname": "getFieldClass", "guessedtype": "function"}}, "static": "", "param": "{Object} fieldOptions", "file": "inputex.js", "guessedtype": "function", "shortname": "inputEx", "properties": {"stateEmpty": {"type": "String", "description": "Field empty state constant", "guessedname": "stateEmpty", "guessedtype": "property"}, "stateValid": {"type": "String", "description": "Field valid state constant", "guessedname": "stateValid", "guessedtype": "property"}, "widget": {"static": "", "description": "inputEx widget namespace", "guessedname": "widget", "guessedtype": "property"}, "typeClasses": {"description": "Hash between inputEx types and classes (ex: inputEx.typeClasses.color = inputEx.ColorField)
    \nPlease register the types with the registerType method", "guessedname": "typeClasses", "guessedtype": "property"}, "regexps": {"description": "Associative array containing common regular expressions", "guessedname": "regexps", "guessedtype": "property"}, "messages": {"description": "Associative array containing field messages", "guessedname": "messages", "guessedtype": "property"}, "stateRequired": {"type": "String", "description": "Field required state constant", "guessedname": "stateRequired", "guessedtype": "property"}, "stateInvalid": {"type": "String", "description": "Field invalid state constant", "guessedname": "stateInvalid", "guessedtype": "property"}, "spacerUrl": {"type": "String", "description": "Url to the spacer image. This url schould be changed according to your project directories", "guessedname": "spacerUrl", "guessedtype": "property"}}, "description": "The inputEx method lets you create a field from the JSON definition:\n
    \ninputEx({type: 'string', name: 'company', label: 'Your company' })\n
    \nBuild a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, ... }
    \nIf the neither type or fieldClass are found, it uses inputEx.StringField"}, "inputEx.SerializeField.serializers": {"name": "inputEx.SerializeField.serializers", "namespace": "", "module": "inputEx", "guessedname": "serializers", "methods": {"serialize": {"static": "", "description": "serialize to JSON", "guessedname": "serialize", "guessedtype": "function"}, "deserialize": {"static": "", "description": "deserialize from JSON", "guessedname": "deserialize", "guessedtype": "function"}}, "static": "", "file": "SerializeField-beta.js", "guessedtype": "property", "shortname": "inputEx.SerializeField.serializers", "properties": {"xml": {"static": "", "description": "XML Serializer (uses the ObjTree library)", "guessedname": "xml", "guessedtype": "property"}, "json": {"static": "", "description": "JSON Serializer", "guessedname": "json", "guessedtype": "property"}}, "description": "Default serializers for the SerializeField"}, "inputEx.RPC": {"name": "inputEx.RPC", "namespace": "", "module": "inputEx", "guessedname": "RPC", "methods": {"formForMethod": {"params": [{"type": "function", "name": "method", "description": " A method created through inputEx.RPC.Service"}], "description": "Return the inputEx form options from a method", "guessedname": "formForMethod", "guessedtype": "function"}, "generateServiceForm": {"params": [{"type": "function", "name": "method", "description": " A method created through inputEx.RPC.Service"}, {"type": "Object", "name": "formOpts", "description": ""}], "description": "Build a form to run a service !", "guessedname": "generateServiceForm", "guessedtype": "function"}}, "static": "", "file": "inputex-rpc.js", "guessedtype": "property", "shortname": "inputEx.RPC", "description": "inputEx RPC utility functions\nImplements SMD and create forms directly from services"}, "inputEx.DSSelectField": {"name": "inputEx.DSSelectField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " Added options:\n
      \n
    • selectValues: contains the list of options values
    • \n
    • selectOptions: list of option element texts
    • \n
    • multiple: boolean to allow multiple selections
    • \n
    • datasource: the datasource
    • \n
    • valueKey: value key
    • \n
    • labelKey: label key
    • \n
    "}], "description": "Create a select field from a datasource"}], "namespace": "", "module": "inputEx", "guessedname": "DSSelectField", "methods": {"populateSelect": {"description": "Insert the options", "guessedname": "populateSelect", "guessedtype": "function"}, "renderComponent": {"description": "Build a select tag with options", "guessedname": "renderComponent", "guessedtype": "function"}, "setOptions": {"params": [{"type": "Object", "name": "options", "description": " Options object as passed to the constructor"}], "description": "Setup the additional options for selectfield", "guessedname": "setOptions", "guessedtype": "function"}, "onDatasourceSuccess": {"description": "Callback for request success", "guessedname": "onDatasourceSuccess", "guessedtype": "function"}, "onDatasourceFailure": {"description": "Callback for request failure", "guessedname": "onDatasourceFailure", "guessedtype": "function"}, "sendDataRequest": {"description": "Send the datasource request", "guessedname": "sendDataRequest", "guessedtype": "function"}}, "extends": "inputEx.SelectField", "superclass": "inputEx.SelectField", "file": "DSSelectField.js", "guessedtype": "function", "shortname": "inputEx.DSSelectField", "description": "Create a select field from a datasource"}, "inputEx.visus": {"name": "inputEx.visus", "namespace": "", "module": "inputEx", "guessedname": "visus", "methods": {"trimpath": {"description": "Use the trimpath-template engine\nsee http://code.google.com/p/trimpath/wiki/JavaScriptTemplates for syntax\noptions = {visuType: 'trimpath', template: \"String template\"}", "guessedname": "trimpath", "guessedtype": "function"}, "addInputExModules": {"params": [{"type": "YUILoader", "name": "yuiLoader", "description": " YUI Loader instance"}, {"type": "String", "name": "inputExPath", "description": " (optional) inputExPath"}], "description": "Add inputEx modules to a YUI loader", "guessedname": "addInputExModules", "guessedtype": "function"}, "dump": {"description": "Use YAHOO.lang.dump\noptions = {visuType: 'dump'}", "guessedname": "dump", "guessedtype": "function"}, "func": {"description": "Use a rendering function\noptions = {visuType: 'func', func: function(data) { ...code here...} }"}, "renderVisu": {"return": {"type": "HTMLElement || String", "description": "Either the inserted HTMLElement or the String set to parentEl.innerHTML"}, "description": "Render 'data' using a visualization function described by 'visuOptions'", "static": "", "guessedname": "renderVisu", "guessedtype": "function", "params": [{"type": "Object", "name": "visuOptions", "description": " The visu parameters object with: visuType: 'myType', ...args..."}, {"type": "Object", "name": "data", "description": " The input data to send to the template"}, {"type": "HTMLElement || String", "name": "parentEl", "description": " optional Set the result as content of parentEl"}]}}, "static": "", "file": "Visus.js", "guessedtype": "property", "shortname": "inputEx.visus", "description": "Contains the various visualization methods"}, "inputEx.DateSelectMonthField": {"name": "inputEx.DateSelectMonthField", "namespace": "", "module": "inputEx", "guessedname": "DateSelectMonthField", "extends": "inputEx.CombineField", "superclass": "inputEx.CombineField", "file": "DateSelectMonthField.js", "guessedtype": "function", "shortname": "inputEx.DateSelectMonthField", "description": "A field to enter a date with 2 strings and a select"}, "inputEx.UpperCaseField": {"name": "inputEx.UpperCaseField", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " inputEx.Field options object"}], "description": "A field where the value is always uppercase"}], "namespace": "", "module": "inputEx", "guessedname": "UpperCaseField", "methods": {"setValue": {"params": [{"type": "String", "name": "val", "description": " The string"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Set the value and call toUpperCase", "guessedname": "setValue", "guessedtype": "function"}, "onKeyPress": {"params": [{"type": "Event", "name": "e", "description": " The original 'input' event"}], "description": "Call setvalue on input to update the field with upper case value", "guessedname": "onKeyPress", "guessedtype": "function"}}, "extends": "inputEx.StringField", "superclass": "inputEx.StringField", "file": "UpperCaseField.js", "guessedtype": "function", "shortname": "inputEx.UpperCaseField", "description": "A field where the value is always uppercase"}, "inputEx.widget.Dialog": {"name": "inputEx.widget.Dialog", "constructors": [{"params": [{"type": "Object} options Config object, options are :\n
      \n
    • inputExDef: an inputEx type definition (ex: {type: 'form', inputParams: {fields: [...]}", "name": ")
    • ", "description": "\n
    • id: an optional id for the dialog
    • \n
    • parentEl: optional parentEl (default document.body)
    • \n
    • title: the dialog title
    • \n
    • panelConfig: the YAHOO.widget.Panel userConfig object
    • \n
    "}], "description": "Create a Dialog from an inputEx field definition"}], "namespace": "", "module": "inputEx", "guessedname": "Dialog", "methods": {"renderForm": {"description": "Render the form", "guessedname": "renderForm", "guessedtype": "function"}, "getForm": {"return": {"type": "inputEx.Field", "description": "the field instance"}, "description": "Return the inputEx field instance created", "guessedname": "getForm", "guessedtype": "function"}, "buildForm": {"description": "render the inputExDef as a inputEx field", "guessedname": "buildForm", "guessedtype": "function"}, "setValue": {"params": [{"type": "Any", "name": "value", "description": " The value to set on the field"}, {"type": "boolean", "name": "[sendUpdatedEvt]", "description": " (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)"}], "description": "Shortcut to set value", "guessedname": "setValue", "guessedtype": "function"}, "getValue": {"return": {"type": "Any", "description": "the field value"}, "description": "Shortcut to get value", "guessedname": "getValue", "guessedtype": "function"}}, "file": "Dialog.js", "guessedtype": "function", "shortname": "inputEx.widget.Dialog", "description": "Create a Dialog from an inputEx field definition"}, "inputEx.widget.Button": {"name": "inputEx.widget.Button", "constructors": [{"params": [{"type": "Object", "name": "options", "description": " The following options are available for Button :\n
      \n
    • id: id of the created A element (default is auto-generated)
    • \n
    • className: CSS class added to the button (default is either \"inputEx-Button-Link\" or \"inputEx-Button-Submit-Link\", depending on \"type\")
    • \n
    • parentEl: The DOM element where we should append the button
    • \n
    • type: \"link\", \"submit-link\" or \"submit\"
    • \n
    • value: text displayed inside the button
    • \n
    • disabled: Disable the button after creation
    • \n
    • onClick: Custom click event handler
    • \n
    "}], "description": "Create a button"}], "namespace": "", "module": "inputEx", "guessedname": "Button", "methods": {"enable": {"description": "Enable the button", "guessedname": "enable", "guessedtype": "function"}, "render": {"return": {"type": "DOMElement", "description": "The created button"}, "params": [{"type": "DOMElement", "name": "parentEl", "description": " The DOM element where the button should be rendered"}], "description": "render the button into the parent Element", "guessedname": "render", "guessedtype": "function"}, "initEvents": {"description": "attach the listeners on \"click\" event and create the custom events", "guessedname": "initEvents", "guessedtype": "function"}, "setOptions": {"description": "set the default options", "guessedname": "setOptions", "guessedtype": "function"}, "disable": {"description": "Disable the button", "guessedname": "disable", "guessedtype": "function"}, "destroy": {"description": "Purge all event listeners and remove the component from the dom", "guessedname": "destroy", "guessedtype": "function"}}, "file": "Button.js", "guessedtype": "function", "shortname": "inputEx.widget.Button", "events": {"clickEvent": {"description": "Click Event facade (YUI custom event)", "guessedname": "clickEvent", "guessedtype": "property"}, "submitEvent": {"description": "Submit Event facade (YUI custom event)", "guessedname": "submitEvent", "guessedtype": "property"}}, "description": "Create a button"}}, "version": "0.5.0", "modules": {"inputEx": {"description": "The inputEx Library", "submodules": [], "classlist": ["inputEx.Field", "inputEx.Form", "inputEx.Group", "inputEx.visus", "inputEx", "inputEx.JsonSchema", "inputEx.JsonSchema.Builder", "inputEx.AutoComplete", "inputEx.CheckBox", "inputEx.ColorField", "inputEx.ColorPickerField", "inputEx.CombineField", "inputEx.DSSelectField", "inputEx.DateField", "inputEx.DatePickerField", "inputEx.DateSelectMonthField", "inputEx.DateSplitField", "inputEx.DateTimeField", "inputEx.EmailField", "inputEx.FileField", "inputEx.HiddenField", "inputEx.IPv4Field", "inputEx.InPlaceEdit", "inputEx.IntegerField", "inputEx.KeyOpValueField", "inputEx.KeyValueField", "inputEx.Lens", "inputEx.ListField", "inputEx.MapField", "inputEx.MenuField", "inputEx.MultiAutoComplete", "inputEx.MultiSelectField", "inputEx.NumberField", "inputEx.PasswordField", "inputEx.RTEField", "inputEx.RadioButton", "inputEx.RadioField", "inputEx.SelectField", "inputEx.SerializeField", "inputEx.SerializeField.serializers", "inputEx.SliderField", "inputEx.StringField", "inputEx.Textarea", "inputEx.TimeField", "inputEx.TimeIntervalField", "inputEx.TreeField", "inputEx.TypeField", "inputEx.UneditableField", "inputEx.UpperCaseField", "inputEx.UrlField", "inputEx.VectorField", "inputEx.RPC", "inputEx.RPC.Service", "inputEx.RPC.Transport", "inputEx.RPC.Envelope", "inputEx.RPC.Envelope.URL", "inputEx.RPC.Envelope.PATH", "inputEx.RPC.Envelope.JSON", "inputEx.RPC.Envelope.JSON-RPC-1.0", "inputEx.RPC.Envelope.JSON-RPC-2.0", "inputEx.RPC.SMDTester", "inputEx.YQL", "inputEx.widget.Button", "inputEx.widget.DataTable", "inputEx.widget.Dialog", "inputEx.widget.DDListItem", "inputEx.widget.DDList", "inputEx.widget.dtInPlaceEdit", "inputEx.widget.CellEditor", "inputEx.widget.JsonTreeInspector"], "filelist": ["Field.js", "Form.js", "Group.js", "Visus.js", "inputex-loader.js", "inputex.js", "json-schema.js", "AutoComplete.js", "CheckBox.js", "ColorField.js", "ColorPickerField.js", "CombineField.js", "DSSelectField.js", "DateField.js", "DatePickerField.js", "DateSelectMonthField.js", "DateSplitField.js", "DateTimeField.js", "EmailField.js", "FileField.js", "HiddenField.js", "IPv4Field.js", "InPlaceEdit.js", "IntegerField.js", "KeyOpValueField-beta.js", "KeyValueField-beta.js", "Lens-beta.js", "ListField.js", "MapField.js", "MenuField.js", "MultiAutoComplete.js", "MultiSelectField.js", "NumberField.js", "PasswordField.js", "RTEField.js", "RadioButton.js", "RadioField.js", "SelectField.js", "SerializeField-beta.js", "SliderField.js", "StringField.js", "Textarea.js", "TimeField.js", "TimeIntervalField.js", "TimeRange.js", "TreeField.js", "TypeField.js", "UneditableField.js", "UpperCaseField.js", "UrlField.js", "VectorField.js", "de.js", "es.js", "fr.js", "it.js", "nl.js", "inputex-rpc.js", "smdTester.js", "yql.js", "Button.js", "DataTable.js", "Dialog.js", "ddlist.js", "dtInPlaceEdit.js", "json-tree-inspector.js"], "subdata": {}, "name": "inputEx"}}, "filemap": {"dtInPlaceEdit.js": {"classlist": ["inputEx.widget.dtInPlaceEdit", "inputEx.widget.CellEditor"], "name": "dtInPlaceEdit.js", "module": "inputEx"}, "IntegerField.js": {"classlist": ["inputEx.IntegerField"], "name": "IntegerField.js", "module": "inputEx"}, "TimeField.js": {"classlist": ["inputEx.TimeField"], "name": "TimeField.js", "module": "inputEx"}, "Textarea.js": {"classlist": ["inputEx.Textarea"], "name": "Textarea.js", "module": "inputEx"}, "KeyValueField-beta.js": {"classlist": ["inputEx.KeyValueField"], "name": "KeyValueField-beta.js", "module": "inputEx"}, "nl.js": {"classlist": [], "name": "nl.js", "module": "inputEx"}, "MapField.js": {"classlist": ["inputEx.MapField"], "name": "MapField.js", "module": "inputEx"}, "MultiAutoComplete.js": {"classlist": ["inputEx.MultiAutoComplete"], "name": "MultiAutoComplete.js", "module": "inputEx"}, "TimeIntervalField.js": {"classlist": ["inputEx.TimeIntervalField"], "name": "TimeIntervalField.js", "module": "inputEx"}, "AutoComplete.js": {"classlist": ["inputEx.AutoComplete"], "name": "AutoComplete.js", "module": "inputEx"}, "SelectField.js": {"classlist": ["inputEx.SelectField"], "name": "SelectField.js", "module": "inputEx"}, "MenuField.js": {"classlist": ["inputEx.MenuField"], "name": "MenuField.js", "module": "inputEx"}, "ListField.js": {"classlist": ["inputEx.ListField"], "name": "ListField.js", "module": "inputEx"}, "fr.js": {"classlist": [], "name": "fr.js", "module": "inputEx"}, "UpperCaseField.js": {"classlist": ["inputEx.UpperCaseField"], "name": "UpperCaseField.js", "module": "inputEx"}, "it.js": {"classlist": [], "name": "it.js", "module": "inputEx"}, "UneditableField.js": {"classlist": ["inputEx.UneditableField"], "name": "UneditableField.js", "module": "inputEx"}, "json-schema.js": {"classlist": ["inputEx.JsonSchema", "inputEx.JsonSchema.Builder"], "name": "json-schema.js", "module": "inputEx"}, "DateField.js": {"classlist": ["inputEx.DateField"], "name": "DateField.js", "module": "inputEx"}, "de.js": {"classlist": [], "name": "de.js", "module": "inputEx"}, "Dialog.js": {"classlist": ["inputEx.widget.Dialog"], "name": "Dialog.js", "module": "inputEx"}, "DataTable.js": {"classlist": ["inputEx.widget.DataTable"], "name": "DataTable.js", "module": "inputEx"}, "inputex.js": {"classlist": ["inputEx"], "name": "inputex.js", "module": "inputEx"}, "NumberField.js": {"classlist": ["inputEx.NumberField"], "name": "NumberField.js", "module": "inputEx"}, "VectorField.js": {"classlist": ["inputEx.VectorField"], "name": "VectorField.js", "module": "inputEx"}, "RadioButton.js": {"classlist": ["inputEx.RadioButton"], "name": "RadioButton.js", "module": "inputEx"}, "ColorField.js": {"classlist": ["inputEx.ColorField"], "name": "ColorField.js", "module": "inputEx"}, "PasswordField.js": {"classlist": ["inputEx.PasswordField"], "name": "PasswordField.js", "module": "inputEx"}, "FileField.js": {"classlist": ["inputEx.FileField"], "name": "FileField.js", "module": "inputEx"}, "StringField.js": {"classlist": ["inputEx.StringField"], "name": "StringField.js", "module": "inputEx"}, "ddlist.js": {"classlist": ["inputEx.widget.DDListItem", "inputEx.widget.DDList"], "name": "ddlist.js", "module": "inputEx"}, "RTEField.js": {"classlist": ["inputEx.RTEField"], "name": "RTEField.js", "module": "inputEx"}, "DateTimeField.js": {"classlist": ["inputEx.DateTimeField"], "name": "DateTimeField.js", "module": "inputEx"}, "Lens-beta.js": {"classlist": ["inputEx.Lens"], "name": "Lens-beta.js", "module": "inputEx"}, "DatePickerField.js": {"classlist": ["inputEx.DatePickerField"], "name": "DatePickerField.js", "module": "inputEx"}, "KeyOpValueField-beta.js": {"classlist": ["inputEx.KeyOpValueField"], "name": "KeyOpValueField-beta.js", "module": "inputEx"}, "HiddenField.js": {"classlist": ["inputEx.HiddenField"], "name": "HiddenField.js", "module": "inputEx"}, "TreeField.js": {"classlist": ["inputEx.TreeField"], "name": "TreeField.js", "module": "inputEx"}, "TimeRange.js": {"classlist": [], "name": "TimeRange.js", "module": "inputEx"}, "CombineField.js": {"classlist": ["inputEx.CombineField"], "name": "CombineField.js", "module": "inputEx"}, "DateSelectMonthField.js": {"classlist": ["inputEx.DateSelectMonthField"], "name": "DateSelectMonthField.js", "module": "inputEx"}, "SliderField.js": {"classlist": ["inputEx.SliderField"], "name": "SliderField.js", "module": "inputEx"}, "DateSplitField.js": {"classlist": ["inputEx.DateSplitField"], "name": "DateSplitField.js", "module": "inputEx"}, "yql.js": {"classlist": ["inputEx.YQL"], "name": "yql.js", "module": "inputEx"}, "inputex-rpc.js": {"classlist": ["inputEx.RPC", "inputEx.RPC.Service", "inputEx.RPC.Transport", "inputEx.RPC.Envelope", "inputEx.RPC.Envelope.URL", "inputEx.RPC.Envelope.PATH", "inputEx.RPC.Envelope.JSON", "inputEx.RPC.Envelope.JSON-RPC-1.0", "inputEx.RPC.Envelope.JSON-RPC-2.0"], "name": "inputex-rpc.js", "module": "inputEx"}, "InPlaceEdit.js": {"classlist": ["inputEx.InPlaceEdit"], "name": "InPlaceEdit.js", "module": "inputEx"}, "inputex-loader.js": {"classlist": [], "name": "inputex-loader.js", "module": "inputEx"}, "MultiSelectField.js": {"classlist": ["inputEx.MultiSelectField"], "name": "MultiSelectField.js", "module": "inputEx"}, "DSSelectField.js": {"classlist": ["inputEx.DSSelectField"], "name": "DSSelectField.js", "module": "inputEx"}, "Form.js": {"classlist": ["inputEx.Form"], "name": "Form.js", "module": "inputEx"}, "Visus.js": {"classlist": ["inputEx.visus"], "name": "Visus.js", "module": "inputEx"}, "Button.js": {"classlist": ["inputEx.widget.Button"], "name": "Button.js", "module": "inputEx"}, "UrlField.js": {"classlist": ["inputEx.UrlField"], "name": "UrlField.js", "module": "inputEx"}, "ColorPickerField.js": {"classlist": ["inputEx.ColorPickerField"], "name": "ColorPickerField.js", "module": "inputEx"}, "CheckBox.js": {"classlist": ["inputEx.CheckBox"], "name": "CheckBox.js", "module": "inputEx"}, "SerializeField-beta.js": {"classlist": ["inputEx.SerializeField", "inputEx.SerializeField.serializers"], "name": "SerializeField-beta.js", "module": "inputEx"}, "Field.js": {"classlist": ["inputEx.Field"], "name": "Field.js", "module": "inputEx"}, "smdTester.js": {"classlist": ["inputEx.RPC.SMDTester"], "name": "smdTester.js", "module": "inputEx"}, "json-tree-inspector.js": {"classlist": ["inputEx.widget.JsonTreeInspector"], "name": "json-tree-inspector.js", "module": "inputEx"}, "EmailField.js": {"classlist": ["inputEx.EmailField"], "name": "EmailField.js", "module": "inputEx"}, "TypeField.js": {"classlist": ["inputEx.TypeField"], "name": "TypeField.js", "module": "inputEx"}, "IPv4Field.js": {"classlist": ["inputEx.IPv4Field"], "name": "IPv4Field.js", "module": "inputEx"}, "RadioField.js": {"classlist": ["inputEx.RadioField"], "name": "RadioField.js", "module": "inputEx"}, "es.js": {"classlist": [], "name": "es.js", "module": "inputEx"}, "Group.js": {"classlist": ["inputEx.Group"], "name": "Group.js", "module": "inputEx"}}} \ No newline at end of file diff --git a/lib/inputex/api/smdTester.js.html b/lib/inputex/api/smdTester.js.html index d9505d82..704bcda9 100644 --- a/lib/inputex/api/smdTester.js.html +++ b/lib/inputex/api/smdTester.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -58,12 +58,10 @@

    inputEx  0.4.0

    var selectStr = 'select smd'; inputEx({ type: 'select', - inputParams: { - label: "SMD", - parentEl: this.el, - selectValues: [selectStr].concat(smdList), - description: "Select the Service Mapping Description file" - } + label: "SMD", + parentEl: this.el, + selectValues: [selectStr].concat(smdList), + description: "Select the Service Mapping Description file" }).updatedEvt.subscribe(function(e, params) { var smdFile = params[0]; if(smdFile != selectStr) { @@ -123,12 +121,10 @@

    inputEx  0.4.0

    } var select = inputEx({ type: 'select', - inputParams: { - parentEl: this.serviceMethodEl, - selectValues: genMethods, - label: 'Method', - description: "Select the method" - } + parentEl: this.serviceMethodEl, + selectValues: genMethods, + label: 'Method', + description: "Select the method" }); select.updatedEvt.subscribe(function(e, params) { @@ -227,6 +223,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -239,6 +237,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -254,6 +253,7 @@

    Classes

    Files

    diff --git a/lib/inputex/api/yql.js.html b/lib/inputex/api/yql.js.html index 3faafb31..0fde44b7 100644 --- a/lib/inputex/api/yql.js.html +++ b/lib/inputex/api/yql.js.html @@ -15,8 +15,8 @@
    -

    inputEx-library

    -

    inputEx  0.4.0

    +

    inputEx-library

    +

    inputEx  0.5.0

    inputEx-library > inputEx @@ -55,7 +55,7 @@

    inputEx  0.4.0

    * <p>Examples:</p> * <ul> * <li><a href='http://javascript.neyric.com/yql/js.php?url=http://gist.github.com/106503.txt'>http://javascript.neyric.com/yql/js.php?url=http://gist.github.com/106503.txt</a></li> - * <li><a href='http://javascript.neyric.com/yql/js.php?code=y.log(%22test%22)'>http://javascript.neyric.com/yql/js.php?code=y.log(%22test%22)</a></li> + * <li><a href='http://javascript.neyric.com/yql/js.php?code=...jscode...'>http://javascript.neyric.com/yql/js.php?code=...jscode...</a></li> * </ul> * <p>We use a classic JSONP hack to get the results via a callback method.</p> * @class inputEx.YQL @@ -90,7 +90,7 @@

    inputEx  0.4.0

    * @param {Function} callback Callback function */ queryCode: function(codeStr, callback) { - var url = ("http://javascript.neyric.com/yql/js.php?code="+window.encodeURIComponent(codeStr)).replace(/'/g,"\\'"); + var url = ("http://javascript.neyric.com/yql/js.php?code="+window.encodeURIComponent(codeStr)).replace(new RegExp("'","g"),"\\'"); var yql = "use '"+url+"' as yqlexconsole; select * from yqlexconsole;"; inputEx.YQL.query(yql,callback); }, @@ -101,7 +101,7 @@

    inputEx  0.4.0

    * @param {Function} callback Callback function */ queryUrl: function(codeUrl, callback) { - var url = ("http://javascript.neyric.com/yql/js.php?url="+window.encodeURIComponent(codeUrl)).replace(/'/g,"\\'"); + var url = ("http://javascript.neyric.com/yql/js.php?url="+window.encodeURIComponent(codeUrl)).replace(new RegExp("'","g"),"\\'"); var yql = "use '"+url+"' as yqlexconsole; select * from yqlexconsole;"; inputEx.YQL.query(yql,callback); }, @@ -249,6 +249,8 @@

    Classes

  • inputEx.RPC.Transport
  • inputEx.RTEField
  • inputEx.SelectField
  • +
  • inputEx.SerializeField
  • +
  • inputEx.SerializeField.serializers
  • inputEx.SliderField
  • inputEx.StringField
  • inputEx.Textarea
  • @@ -261,6 +263,7 @@

    Classes

  • inputEx.UrlField
  • inputEx.VectorField
  • inputEx.visus
  • +
  • inputEx.widget.Button
  • inputEx.widget.CellEditor
  • inputEx.widget.DataTable
  • inputEx.widget.DDList
  • @@ -276,6 +279,7 @@

    Classes

    Files

    diff --git a/lib/inputex/build/inputex-min.css b/lib/inputex/build/inputex-min.css index 4a62ebab..4f307b6c 100644 --- a/lib/inputex/build/inputex-min.css +++ b/lib/inputex/build/inputex-min.css @@ -1,6 +1,6 @@ /* Distributed under the MIT License : -Visit http://javascript.neyric.com/inputex for more informations +Visit http://neyric.github.com/inputex for more informations Copyright (c) 2007-2010, Eric Abouaf @@ -22,4 +22,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -div.inputEx-fieldWrapper{margin-bottom:.2em;}div.inputEx-label{float:left;color:#505050;text-align:right;padding:.2em .5em 0 0;}div.inputEx-Group div.inputEx-label{width:130px;}div.inputEx-Field{float:left;}div.inputEx-description{clear:both;color:#505050;font-size:75%;margin-top:2px;}div.inputEx-message{float:left;margin:4px;font-size:85%;}div.inputEx-clear-div{clear:both;}div.inputEx-invalid>div.inputEx-message{color:#C00E0C;font-weight:bold;}div.inputEx-invalid>div.inputEx-label{color:#C00E0C;font-weight:bold;}div.inputEx-invalid>div.inputEx-label label{background:transparent url(../images/error_bang.gif) no-repeat scroll 0 1px;padding-left:20px;}div.inputEx-valid>div.inputEx-message{color:#505050;font-weight:normal;}div.inputEx-valid>div.inputEx-label{color:#505050;font-weight:normal;}div.inputEx-valid>div.inputEx-label label,div.inputEx-empty>div.inputEx-label label{background:none;padding-left:inherit;font-weight:normal;color:#505050;}div.inputEx-typeInvite>div.inputEx-Field input,div.inputEx-typeInvite>div.inputEx-Field textarea{color:#aaa;}div.inputEx-empty div.inputEx-valid div.inputEx-Field input,div.inputEx-empty div.inputEx-valid div.inputEx-Field textarea{color:black;}inputEx-focused div.inputEx-Field input,inputEx-focused div.inputEx-Field textarea{color:black;}div.inputEx-StringField-wrapper{float:none;}legend.inputEx-Group-legend{color:#63126B;font-weight:bold;}div.inputEx-Group div.inputEx-Group-collapseImg{width:14px;height:14px;background-image:url(../images/sprite-menu.gif);background-color:transparent;background-repeat:no-repeat;background-attachment:scroll;float:left;}div.inputEx-Group fieldset.inputEx-Expanded legend,div.inputEx-Group fieldset.inputEx-Collapsed legend{cursor:pointer;}div.inputEx-Group fieldset.inputEx-Expanded legend div.inputEx-Group-collapseImg{background-position:-8px 2px;}div.inputEx-Group fieldset.inputEx-Expanded legend:hover div.inputEx-Group-collapseImg{background-position:-8px -78px;}div.inputEx-Group fieldset.inputEx-Collapsed legend div.inputEx-Group-collapseImg{background-position:-8px -317px;}div.inputEx-Group fieldset.inputEx-Collapsed legend:hover div.inputEx-Group-collapseImg{background-position:-8px -397px;}div.inputEx-Group fieldset.inputEx-Collapsed div.inputEx-fieldWrapper{display:none;}label.inputExForm-checkbox-rightLabel{margin-left:4px;}div.inputEx-Form-buttonBar{margin:3px 0 0 137px;}div.inputEx-Form-Mask{height:275px;left:0;position:absolute;top:0;width:180px;}div.inputEx-Form-Mask div.inputEx-Form-Mask-bg{background-color:#FFF;height:100%;left:0;opacity:.9;position:absolute;top:0;width:100%;}div.inputEx-Form-Mask div.inputEx-Form-Mask-spinner{width:36px;height:36px;background-image:url(../images/spinner.gif);}div.inputEx-Form-Mask span{color:#666;}div.inputEx-UrlField{position:relative;}div.inputEx-UrlField input{padding-left:20px;}div.inputEx-UrlField input.nofavicon{padding-left:0;}div.inputEx-UrlField img{position:absolute;top:3px;left:2px;width:16px;height:16px;}img.inputEx-ListField-addButton{background:transparent url(../images/add.png) no-repeat scroll 0;width:16px;height:16px;cursor:pointer;}img.inputEx-ListField-delButton{background:transparent url(../images/delete.png) no-repeat scroll 0;width:16px;height:16px;float:left;cursor:pointer;}div.inputEx-ListField-Arrow{width:16px;height:16px;float:left;cursor:pointer;}div.inputEx-ListField-ArrowUp{background:transparent url(../images/bullet_arrow_up.png) no-repeat scroll 0;}div.inputEx-ListField-ArrowDown{background:transparent url(../images/bullet_arrow_down.png) no-repeat scroll 0;}a.inputEx-List-link{color:blue;cursor:pointer;margin-left:10px;}a.inputEx-List-link:hover{text-decoration:underline;}div.inputEx-InPlaceEdit-visu{cursor:pointer;padding:3px;}div.inputEx-InPlaceEdit-visu:hover{background-color:#ff9;}.inputEx-InPlaceEdit-editorDiv{float:left;}a.inputEx-InPlaceEdit-OkButton{margin-top:3px;margin-left:5px;float:left;font-size:120%;text-decoration:none;}a.inputEx-InPlaceEdit-CancelLink{margin-left:5px;margin-top:5px;float:left;text-decoration:none;}.yui-skin-sam div.inputEx-AutoComplete .yui-ac-input{width:auto;position:relative;}.yui-skin-sam div.inputEx-AutoComplete .yui-ac-content{width:auto;}div.inputEx-AutoComplete div.yui-ac-container{margin-bottom:2em;width:25em;}div.inputEx-DateField{background:transparent url(../images/calendar.gif) no-repeat scroll left center;padding-left:20px;}div.inputEx-DateField input{width:75px;}div.inputEx-PickerField,div.inputEx-PickerField input{vertical-align:top;}div.inputEx-PickerField{background:none;padding-left:inherit;}div.inputEx-PickerField .yui-menu-button button{background-position:center center;background-repeat:no-repeat;overflow:hidden;font-size:9px;padding:2px;width:20px;height:16px;}div.inputEx-DatePickerField .yui-menu-button button{background-image:url(../images/calendar.gif);}div.inputEx-DatePickerField div.yui-overlay{width:210px;}div.inputEx-ColorField .yui-menu-button button{background-image:url(../images/palette.png);}div.inputEx-ColorField-button{height:18px;width:100px;border:1px solid #B5B8C8;margin-left:0;cursor:pointer;float:left;}div.inputEx-ColorField-square{float:left;cursor:pointer;}div.inputEx-ColorField div.yui-overlay div.bd{background:white no-repeat scroll 5px 5px;border:1px solid #AAA;}.inputEx-ColorPicker-Button{vertical-align:baseline;}.inputEx-ColorPicker-Button button{outline:none;line-height:1.5;}.inputEx-ColorPicker-Label{display:block;display:inline-block;*display:block;margin-top:.5em;*margin:.25em 0;width:1em;height:1em;overflow:hidden;text-indent:1em;background-color:#fff;white-space:nowrap;border:solid 1px #000;}.inputEx-ColorPicker-Container-nocontrols .yui-picker-controls,.inputEx-ColorPicker-Container-nocontrols .yui-picker-swatch,.inputEx-ColorPicker-Container-nocontrols .yui-picker-websafe-swatch{display:none;}.inputEx-ColorPicker-Container{width:370px;height:190px;}.inputEx-ColorPicker-Container-nocontrols{width:220px;height:190px;}div.inputEx-SliderField div.inputEx-SliderField-bg{position:relative;background:url('../images/slider-bg-h.gif') 5px 0 no-repeat;height:28px;width:112px;float:left;}div.inputEx-SliderField div.inputEx-SliderField-thumb{background:url('../images/thumb-n.gif') 0 0 no-repeat;cursor:pointer;position:absolute;top:4px;width:17px;height:21px;}div.inputEx-SliderField div.inputEx-SliderField-value{float:left;margin-top:6px;margin-left:5px;}div.inputEx-PasswordField input{float:left;}div.inputEx-PasswordField div.capsLockWarning{float:left;margin:3px 4px;color:#505050;font-size:85%;}div.inputEx-Password-StrengthIndicator{float:left;color:#505050;font-size:70%;margin-left:10px;width:83px;}div.inputEx-Password-StrengthIndicator div.inputEx-Password-StrengthIndicatorBlock{background-color:white;width:1.4em;height:7px;border:1px solid #aaa;float:left;margin-left:2px;}div.inputEx-CheckBox input{float:left;margin:2px 0 4px 0;}label.inputEx-CheckBox-rightLabel{margin:3px;}div.inputEx-CombineField-separator{float:left;margin-top:2px;}.inputEx-DDList-item{padding:5px;background-color:#DDD;cursor:move;border:1px solid #BBB;width:300px;position:relative;}.inputEx-DDList-item a{color:#D05D00;padding:3px 5px;position:absolute;right:0;top:0;cursor:pointer;}.inputEx-DDList-item a:hover{text-decoration:underline;}label.inputEx-RadioField-rightLabel{cursor:pointer;margin:3px;}div.inputEx-RadioField-choice{float:left;margin-left:10px;}div.inputEx-TypeField-EditButton{width:16px;height:16px;background-image:url(../images/pencil.png);cursor:pointer;float:left;margin-left:4px;position:relative;}div.inputEx-TypeField-EditButton.opened{background-image:url(../images/pencil_delete.png);}div.inputEx-TypeField-FieldValueWrapper{float:left;margin-left:4px;}div.inputEx-TypeField-PropertiesPanel{border:1px solid #aaa;padding:3px;background-color:white;position:absolute;top:0;left:16px;z-index:1;width:380px;}div.inputEx-MenuField div.inputEx-Result{background-color:#FFF;border:1px solid #CCC;padding:2px 25px 2px 5px;cursor:pointer;}div.inputEx-MenuField div.inputEx-RightArrow{background-image:url(../images/menu-right-arrow.png);background-position:right center;background-repeat:no-repeat;}div.inputEx-MenuField div.inputEx-DownArrow{background-image:url(../images/menu-down-arrow.png);background-position:right center;background-repeat:no-repeat;}ul.inputEx-JsonTreeInspector li{padding-left:20px;list-style-type:none;}ul.inputEx-JsonTreeInspector li.collapsed{background:transparent url(../images/plus.gif) no-repeat scroll 0 0;cursor:pointer;}ul.inputEx-JsonTreeInspector li.expanded{background:transparent url(../images/minus.gif) no-repeat scroll 0 0;cursor:pointer;}ul.inputEx-JsonTreeInspector li span{padding-left:20px;color:green;}ul.inputEx-JsonTreeInspector li span.type-number,ul.inputEx-JsonTreeInspector li span.type-boolean{color:blue;}ul.inputEx-JsonTreeInspector li span.type-null{color:red;}.yui-skin-sam .inputex-datatable-columnsDlg{visibility:hidden;border:1px solid #808080;background-color:#E3E3E3;}.yui-skin-sam .inputex-datatable-columnsDlg .hd{font-weight:bold;padding:1em;background:none;background-color:#E3E3E3;border-bottom:0;}.yui-skin-sam .inputex-datatable-columnsDlg .ft{text-align:right;padding:.5em;background-color:#E3E3E3;}.yui-skin-sam .inputex-datatable-columnsDlg .bd{height:10em;margin:0 1em;overflow:auto;border:1px solid black;background-color:white;}.yui-skin-sam .inputex-datatable-columnsDlg .dt-dlg-pickercol{clear:both;padding:.5em 1em 3em;border-bottom:1px solid gray;}.yui-skin-sam .inputex-datatable-columnsDlg .dt-dlg-pickerkey{float:left;}.yui-skin-sam .inputex-datatable-columnsDlg .dt-dlg-pickerbtns{float:right;}.yui-skin-sam .yui-panel-container.hide-scrollbars .inputex-datatable-columnsDlg .bd{overflow:hidden;}.yui-skin-sam .yui-panel-container.show-scrollbars .inputex-datatable-columnsDlg .bd{overflow:auto;}tbody.yui-dt-data td.yui-dt-editable div.inputEx-dtInPlaceEdit-onModifyItem{background-color:#FFAFAF;}tbody.yui-dt-data div.inputEx-dtInPlaceEdit-deleteLinkSpinner{width:16px;height:16px;background:transparent url(../images/ajax-loader.gif) no-repeat scroll 20px 4px;} \ No newline at end of file +div.inputEx-fieldWrapper{margin-bottom:.2em;}div.inputEx-label{float:left;color:#505050;text-align:right;padding:.2em .5em 0 0;}div.inputEx-Group div.inputEx-label{width:130px;}div.inputEx-Field{float:left;}div.inputEx-description{clear:both;color:#505050;font-size:75%;margin-top:2px;}div.inputEx-message{float:left;margin:4px;font-size:85%;}div.inputEx-clear-div{clear:both;}div.inputEx-invalid>div.inputEx-message{color:#C00E0C;font-weight:bold;}div.inputEx-invalid>div.inputEx-label{color:#C00E0C;font-weight:bold;}div.inputEx-invalid>div.inputEx-label label{background:transparent url(../images/error_bang.gif) no-repeat scroll 0 1px;padding-left:20px;}div.inputEx-valid>div.inputEx-message{color:#505050;font-weight:normal;}div.inputEx-valid>div.inputEx-label{color:#505050;font-weight:normal;}div.inputEx-valid>div.inputEx-label label,div.inputEx-empty>div.inputEx-label label{background:none;padding-left:inherit;font-weight:normal;color:#505050;}div.inputEx-typeInvite>div.inputEx-Field input,div.inputEx-typeInvite>div.inputEx-Field textarea{color:#aaa;}div.inputEx-empty div.inputEx-valid div.inputEx-Field input,div.inputEx-empty div.inputEx-valid div.inputEx-Field textarea{color:black;}inputEx-focused div.inputEx-Field input,inputEx-focused div.inputEx-Field textarea{color:black;}div.inputEx-StringField-wrapper{float:none;}legend.inputEx-Group-legend{color:#63126B;font-weight:bold;}div.inputEx-Group div.inputEx-Group-collapseImg{width:14px;height:14px;background-image:url(../images/sprite-menu.gif);background-color:transparent;background-repeat:no-repeat;background-attachment:scroll;float:left;}div.inputEx-Group fieldset.inputEx-Expanded legend,div.inputEx-Group fieldset.inputEx-Collapsed legend{cursor:pointer;}div.inputEx-Group fieldset.inputEx-Expanded legend div.inputEx-Group-collapseImg{background-position:-8px 2px;}div.inputEx-Group fieldset.inputEx-Expanded legend:hover div.inputEx-Group-collapseImg{background-position:-8px -78px;}div.inputEx-Group fieldset.inputEx-Collapsed legend div.inputEx-Group-collapseImg{background-position:-8px -317px;}div.inputEx-Group fieldset.inputEx-Collapsed legend:hover div.inputEx-Group-collapseImg{background-position:-8px -397px;}div.inputEx-Group fieldset.inputEx-Collapsed div.inputEx-fieldWrapper{display:none;}div.inputEx-Form-buttonBar{margin:3px 0 0 137px;}.inputEx-Button{margin:0 4px 0 0;}div.inputEx-Form-Mask{height:275px;left:0;position:absolute;top:0;width:180px;}div.inputEx-Form-Mask div.inputEx-Form-Mask-bg{background-color:#FFF;height:100%;left:0;opacity:.9;position:absolute;top:0;width:100%;}div.inputEx-Form-Mask div.inputEx-Form-Mask-spinner{width:36px;height:36px;background-image:url(../images/spinner.gif);}div.inputEx-Form-Mask span{color:#666;}div.inputEx-UrlField{position:relative;}div.inputEx-UrlField input{padding-left:20px;}div.inputEx-UrlField input.nofavicon{padding-left:0;}div.inputEx-UrlField img{position:absolute;top:3px;left:2px;width:16px;height:16px;}img.inputEx-ListField-addButton{background:transparent url(../images/add.png) no-repeat scroll 0;width:16px;height:16px;cursor:pointer;}img.inputEx-ListField-delButton{background:transparent url(../images/delete.png) no-repeat scroll 0;width:16px;height:16px;float:left;cursor:pointer;}div.inputEx-ListField-Arrow{width:16px;height:16px;float:left;cursor:pointer;}div.inputEx-ListField-ArrowUp{background:transparent url(../images/bullet_arrow_up.png) no-repeat scroll 0;}div.inputEx-ListField-ArrowDown{background:transparent url(../images/bullet_arrow_down.png) no-repeat scroll 0;}a.inputEx-List-link{color:blue;cursor:pointer;margin-left:10px;}a.inputEx-List-link:hover{text-decoration:underline;}div.inputEx-InPlaceEdit-visu{cursor:pointer;padding:3px;}.inputEx-InPlaceEdit-editor .inputEx-InPlaceEdit-editorDiv{float:left;margin-bottom:0;}.inputEx-InPlaceEdit-OkButton{margin-left:5px;}.yui-skin-sam div.inputEx-AutoComplete .yui-ac-input{width:auto;position:relative;}.yui-skin-sam div.inputEx-AutoComplete .yui-ac-content{width:auto;}div.inputEx-AutoComplete div.yui-ac-container{margin-bottom:2em;width:25em;}div.inputEx-DateField{background:transparent url(../images/calendar.gif) no-repeat scroll left center;padding-left:20px;}div.inputEx-DateField input{width:75px;}div.inputEx-PickerField,div.inputEx-PickerField input{vertical-align:top;}div.inputEx-PickerField{background:none;padding-left:0;}div.inputEx-PickerField .yui-menu-button button{background-position:center center;background-repeat:no-repeat;overflow:hidden;font-size:9px;padding:2px;width:20px;height:16px;}div.inputEx-DatePickerField .yui-menu-button button{background-image:url(../images/calendar.gif);}div.inputEx-DatePickerField div.yui-overlay{width:210px;}div.inputEx-ColorField .yui-menu-button button{background-image:url(../images/palette.png);}div.inputEx-ColorField-button{height:18px;width:100px;border:1px solid #B5B8C8;margin-left:0;cursor:pointer;float:left;}div.inputEx-ColorField-square{float:left;cursor:pointer;}div.inputEx-ColorField div.yui-overlay div.bd{background:white no-repeat scroll 5px 5px;border:1px solid #AAA;}.inputEx-ColorPicker-Button{vertical-align:baseline;}.inputEx-ColorPicker-Button button{outline:none;line-height:1.5;}.inputEx-ColorPicker-Label{display:block;display:inline-block;*display:block;margin-top:.5em;*margin:.25em 0;width:1em;height:1em;overflow:hidden;text-indent:1em;background-color:#fff;white-space:nowrap;border:solid 1px #000;}.inputEx-ColorPicker-Container-nocontrols .yui-picker-controls,.inputEx-ColorPicker-Container-nocontrols .yui-picker-swatch,.inputEx-ColorPicker-Container-nocontrols .yui-picker-websafe-swatch{display:none;}.inputEx-ColorPicker-Container{width:370px;height:190px;}.inputEx-ColorPicker-Container-nocontrols{width:220px;height:190px;}div.inputEx-SliderField div.inputEx-SliderField-bg{position:relative;background:url('../images/slider-bg-h.gif') 5px 0 no-repeat;height:28px;width:112px;float:left;}div.inputEx-SliderField div.inputEx-SliderField-thumb{background:url('../images/thumb-n.gif') 0 0 no-repeat;cursor:pointer;position:absolute;top:4px;width:17px;height:21px;}div.inputEx-SliderField div.inputEx-SliderField-value{float:left;margin-top:6px;margin-left:5px;}div.inputEx-PasswordField input{float:left;}div.inputEx-PasswordField div.capsLockWarning{float:left;margin:3px 4px;color:#505050;font-size:85%;}div.inputEx-Password-StrengthIndicator{float:left;color:#505050;font-size:70%;margin-left:10px;width:83px;}div.inputEx-Password-StrengthIndicator div.inputEx-Password-StrengthIndicatorBlock{background-color:white;width:1.4em;height:7px;border:1px solid #aaa;float:left;margin-left:2px;}div.inputEx-CheckBox{padding-top:.2em;}div.inputEx-CheckBox input{margin-right:.2em;}label.inputExForm-checkbox-rightLabel{cursor:pointer;}div.inputEx-CheckBox{*padding-top:0;}@media screen and(-webkit-min-device-pixel-ratio:0){div.inputEx-CheckBox input{position:relative;top:1px;}}label.inputEx-RadioField-rightLabel{cursor:pointer;}div.inputEx-RadioField-choice{float:left;margin-right:10px;margin-top:.2em;}div.inputEx-RadioField-choice{*margin-top:0;}html>body div.inputEx-RadioField-choice input{position:relative;top:.2em;margin-right:.2em;}html>body div.inputEx-RadioField-choice input,x:-moz-any-link,x:default{top:0;}.inputEx-RadioField-Vertically .inputEx-RadioField-choice{float:none;}div.inputEx-CombineField-separator{float:left;margin-top:2px;}.inputEx-DDList-item{padding:5px;background-color:#DDD;cursor:move;border:1px solid #BBB;width:300px;position:relative;}.inputEx-DDList-item a{color:#D05D00;padding:3px 5px;position:absolute;right:0;top:0;cursor:pointer;}.inputEx-DDList-item a:hover{text-decoration:underline;}div.inputEx-TypeField-EditButton{width:16px;height:16px;background-image:url(../images/pencil.png);cursor:pointer;float:left;margin-left:4px;position:relative;}div.inputEx-TypeField-EditButton.opened{background-image:url(../images/pencil_delete.png);}div.inputEx-TypeField-FieldValueWrapper{float:left;margin-left:4px;}div.inputEx-TypeField-PropertiesPanel{border:1px solid #aaa;padding:3px;background-color:white;position:absolute;top:0;left:16px;z-index:1;width:380px;}div.inputEx-MenuField div.inputEx-Result{background-color:#FFF;border:1px solid #CCC;padding:2px 25px 2px 5px;cursor:pointer;}div.inputEx-MenuField div.inputEx-RightArrow{background-image:url(../images/menu-right-arrow.png);background-position:right center;background-repeat:no-repeat;}div.inputEx-MenuField div.inputEx-DownArrow{background-image:url(../images/menu-down-arrow.png);background-position:right center;background-repeat:no-repeat;}ul.inputEx-JsonTreeInspector li{padding-left:20px;list-style-type:none;}ul.inputEx-JsonTreeInspector li.collapsed{background:transparent url(../images/plus.gif) no-repeat scroll 0 0;cursor:pointer;}ul.inputEx-JsonTreeInspector li.expanded{background:transparent url(../images/minus.gif) no-repeat scroll 0 0;cursor:pointer;}ul.inputEx-JsonTreeInspector li span{padding-left:20px;color:green;}ul.inputEx-JsonTreeInspector li span.type-number,ul.inputEx-JsonTreeInspector li span.type-boolean{color:blue;}ul.inputEx-JsonTreeInspector li span.type-null{color:red;}.yui-skin-sam .inputex-datatable-columnsDlg{visibility:hidden;border:1px solid #808080;background-color:#E3E3E3;}.yui-skin-sam .inputex-datatable-columnsDlg .hd{font-weight:bold;padding:1em;background:none;background-color:#E3E3E3;border-bottom:0;}.yui-skin-sam .inputex-datatable-columnsDlg .ft{text-align:right;padding:.5em;background-color:#E3E3E3;}.yui-skin-sam .inputex-datatable-columnsDlg .bd{height:10em;margin:0 1em;overflow:auto;border:1px solid black;background-color:white;}.yui-skin-sam .inputex-datatable-columnsDlg .dt-dlg-pickercol{clear:both;padding:.5em 1em 3em;border-bottom:1px solid gray;}.yui-skin-sam .inputex-datatable-columnsDlg .dt-dlg-pickerkey{float:left;}.yui-skin-sam .inputex-datatable-columnsDlg .dt-dlg-pickerbtns{float:right;}.yui-skin-sam .yui-panel-container.hide-scrollbars .inputex-datatable-columnsDlg .bd{overflow:hidden;}.yui-skin-sam .yui-panel-container.show-scrollbars .inputex-datatable-columnsDlg .bd{overflow:auto;}tbody.yui-dt-data td.yui-dt-editable div.inputEx-dtInPlaceEdit-onModifyItem{background-color:#FFAFAF;}tbody.yui-dt-data div.inputEx-dtInPlaceEdit-deleteLinkSpinner{width:16px;height:16px;background:transparent url(../images/ajax-loader.gif) no-repeat scroll 20px 4px;} \ No newline at end of file diff --git a/lib/inputex/build/inputex-min.js b/lib/inputex/build/inputex-min.js index 7abc2a75..d534628c 100644 --- a/lib/inputex/build/inputex-min.js +++ b/lib/inputex/build/inputex-min.js @@ -1,6 +1,6 @@ /* Distributed under the MIT License : -Visit http://javascript.neyric.com/inputex for more informations +Visit http://neyric.github.com/inputex for more informations Copyright (c) 2007-2010, Eric Abouaf @@ -22,4 +22,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -(function(){var A=YAHOO.lang;inputEx=function(B){var C=null;if(B.type){C=inputEx.getFieldClass(B.type);if(C===null){C=inputEx.StringField}}else{C=B.fieldClass?B.fieldClass:inputEx.StringField}var D=new C(B.inputParams);return D};A.augmentObject(inputEx,{VERSION:"0.4.0",spacerUrl:"images/space.gif",stateEmpty:"empty",stateRequired:"required",stateValid:"valid",stateInvalid:"invalid",messages:{required:"This field is required",invalid:"This field is invalid",valid:"This field is valid",defaultDateFormat:"m/d/Y",months:["January","February","March","April","May","June","July","August","September","October","November","December"]},widget:{},regexps:{email:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/i,password:/^[0-9a-zA-Z\x20-\x7E]*$/},typeClasses:{},registerType:function(C,E,B,F){if(!A.isString(C)){throw new Error("inputEx.registerType: first argument must be a string")}if(!A.isFunction(E)){throw new Error("inputEx.registerType: second argument must be a function")}this.typeClasses[C]=E;var D=[];if(A.isArray(B)){D=B}if(E.superclass&&!F&&A.isArray(E.superclass.constructor.groupOptions)){D=D.concat(E.superclass.constructor.groupOptions)}E.groupOptions=D},getFieldClass:function(B){return A.isFunction(this.typeClasses[B])?this.typeClasses[B]:null},getType:function(B){for(var C in this.typeClasses){if(this.typeClasses.hasOwnProperty(C)){if(this.typeClasses[C]==B){return C}}}return null},buildField:function(B){return inputEx(B)},sn:function(E,D,B){if(!E){return }var C;if(D){for(C in D){var G=D[C];if(A.isFunction(G)){continue}if(C=="className"){C="class";E.className=G}if(G!==E.getAttribute(C)){try{if(G===false){E.removeAttribute(C)}else{E.setAttribute(C,G)}}catch(F){}}}}if(B){for(C in B){if(A.isFunction(B[C])){continue}if(E.style[C]!=B[C]){E.style[C]=B[C]}}}},cn:function(B,F,C,H){if(B=="input"&&YAHOO.env.ua.ie){var E="<"+B;if(F!=="undefined"){for(var D in F){E+=" "+D+'="'+F[D]+'"'}}E+="/>";return document.createElement(E)}else{var G=document.createElement(B);this.sn(G,F,C);if(H){G.innerHTML=H}return G}},indexOf:function(E,B){var C=B.length,D;for(D=0;D=0)?D.length-1:0])}catch(E){alert(E)}}this.msgEl.innerHTML=F},show:function(){this.divEl.style.display=""},hide:function(){this.divEl.style.display="none"},clear:function(D){this.setValue(C.isUndefined(this.options.value)?"":this.options.value,D)},isEmpty:function(){return this.getValue()===""}};inputEx.Field.groupOptions=[{type:"string",inputParams:{label:"Label",name:"label",value:""}},{type:"string",inputParams:{label:"Name",name:"name",value:""}},{type:"string",inputParams:{label:"Description",name:"description",value:""}},{type:"boolean",inputParams:{label:"Required?",name:"required",value:false}},{type:"boolean",inputParams:{label:"Show messages",name:"showMsg",value:false}}]})();(function(){var C=YAHOO.lang,B=YAHOO.util.Dom,A=YAHOO.util.Event;inputEx.Group=function(D){inputEx.Group.superclass.constructor.call(this,D);if(!this.options.value){this.runFieldsInteractions()}};C.extend(inputEx.Group,inputEx.Field,{setOptions:function(D){this.options={};this.options.className=D.className||"inputEx-Group";this.options.fields=D.fields;this.options.id=D.id;this.options.name=D.name;this.options.value=D.value;this.options.flatten=D.flatten;this.options.legend=D.legend||"";this.inputConfigs=D.fields;this.options.collapsible=C.isUndefined(D.collapsible)?false:D.collapsible;this.options.collapsed=C.isUndefined(D.collapsed)?false:D.collapsed;this.options.disabled=C.isUndefined(D.disabled)?false:D.disabled;this.inputs=[];this.inputsNames={}},render:function(){this.divEl=inputEx.cn("div",{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}this.renderFields(this.divEl);if(this.options.disabled){this.disable()}},renderFields:function(F){this.fieldset=inputEx.cn("fieldset");this.legend=inputEx.cn("legend",{className:"inputEx-Group-legend"});if(this.options.collapsible){var H=inputEx.cn("div",{className:"inputEx-Group-collapseImg"},null," ");this.legend.appendChild(H);inputEx.sn(this.fieldset,{className:"inputEx-Expanded"})}if(!C.isUndefined(this.options.legend)&&this.options.legend!==""){this.legend.appendChild(document.createTextNode(" "+this.options.legend))}if(this.options.collapsible||(!C.isUndefined(this.options.legend)&&this.options.legend!=="")){this.fieldset.appendChild(this.legend)}for(var E=0;E0){this.inputs[0].focus()}},getFieldByName:function(D){if(!this.inputsNames.hasOwnProperty(D)){return null}return this.inputsNames[D]},onChange:function(E,F){var G=F[0];var D=F[1];this.runInteractions(D,G);this.fireUpdatedEvt()},runAction:function(D,F){var E=this.getFieldByName(D.name);if(YAHOO.lang.isFunction(E[D.action])){E[D.action].call(E)}else{if(YAHOO.lang.isFunction(D.action)){D.action.call(E,F)}else{throw new Error("action "+D.action+" is not a valid action for field "+D.name)}}},runInteractions:function(E,J){var G=inputEx.indexOf(E,this.inputs);var I=this.options.fields[G];if(YAHOO.lang.isUndefined(I.interactions)){return }var K=I.interactions;for(var H=0;H


    "+inputEx.messages.ajaxWait+"");this.divEl.appendChild(this.formMask);this.maskRendered=true},showMask:function(){this.renderMask();this.toggleSelectsInIE(false);this.formMask.style.display=""},hideMask:function(){this.toggleSelectsInIE(true);this.formMask.style.display="none"},toggleSelectsInIE:function(E){if(!!YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){var G=!!E?YAHOO.util.Dom.removeClass:YAHOO.util.Dom.addClass;var F=this;YAHOO.util.Dom.getElementsBy(function(){return true},"select",this.divEl,function(H){G.call(F,H,"inputEx-hidden")})}},enable:function(){inputEx.Form.superclass.enable.call(this);for(var E=0;E=this.options.minLength}return D},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false},focus:function(){if(!!this.el&&!C.isUndefined(this.el.focus)){this.el.focus()}},getStateString:function(D){if(D==inputEx.stateInvalid&&this.options.minLength&&this.el.value.length9999||C<1||C>31||G<1||G>12){return false}return(H!="Invalid Date")},isEmpty:function(){var C=inputEx.DateSplitField.superclass.getValue.call(this);return(C[this.monthIndex]==""&&C[this.yearIndex]==""&&C[this.dayIndex]=="")},initAutoTab:function(){var C=[48,49,50,51,52,53,54,55,56,57];var F=function(G){for(var H=0,I=C.length;H0){B.batch(G,function(I){if(B.hasClass(I.parentNode,"today")){F=I}});if(!F){F=G[0]}C.later(0,F,function(){try{F.focus()}catch(I){}})}};this.calendar.renderEvent.subscribe(D,this.calendar,true);this.oOverlay.beforeShowEvent.subscribe(this.beforeShowOverlay,this,true);this.beforeShowOverlay();this.calendar.selectEvent.subscribe(function(J,H,L){if(!!this.ignoreBeforeShowOverlayCall){return }this.oOverlay.hide();var G=H[0][0];var I=G[0],K=G[1],F=G[2];this.setValue(new Date(I,K-1,F))},this,true);this.button.unsubscribe("click",this.renderCalendar);this.calendarRendered=true},beforeShowOverlay:function(){var D=this.getValue(true);if(!!this.calendar){if(!!D){this.ignoreBeforeShowOverlayCall=true;this.calendar.select(D);this.ignoreBeforeShowOverlayCall=false;this.calendar.cfg.setProperty("pagedate",(D.getMonth()+1)+"/"+D.getFullYear())}this.calendar.render()}}});inputEx.messages.defautCalendarOpts={navigator:true};inputEx.registerType("datepicker",inputEx.DatePickerField)})();(function(){inputEx.EmailField=function(A){inputEx.EmailField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.EmailField,inputEx.StringField,{setOptions:function(A){inputEx.EmailField.superclass.setOptions.call(this,A);this.options.messages.invalid=inputEx.messages.invalidEmail;this.options.regexp=inputEx.regexps.email},getValue:function(){return inputEx.removeAccents(this.el.value.toLowerCase())}});inputEx.messages.invalidEmail="Invalid email, ex: sample@test.com";inputEx.registerType("email",inputEx.EmailField,[])})();(function(){inputEx.HiddenField=function(A){inputEx.HiddenField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.HiddenField,inputEx.Field,{render:function(){this.type=inputEx.HiddenField;this.divEl=inputEx.cn("div",null,{display:"none"});this.el=inputEx.cn("input",{type:"hidden"});if(this.options.name){this.el.name=this.options.name}this.divEl.appendChild(this.el)},setValue:function(B,A){this.el.value=B;inputEx.HiddenField.superclass.setValue.call(this,B,A)},getValue:function(){return this.el.value}});inputEx.registerType("hidden",inputEx.HiddenField)})();(function(){var D=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom,C="inputEx-InPlaceEdit-";inputEx.InPlaceEdit=function(E){inputEx.InPlaceEdit.superclass.constructor.call(this,E)};D.extend(inputEx.InPlaceEdit,inputEx.Field,{setOptions:function(E){inputEx.InPlaceEdit.superclass.setOptions.call(this,E);this.options.animColors=E.animColors||{from:"#ffff99",to:"#ffffff"};this.options.visu=E.visu;this.options.editorField=E.editorField},renderComponent:function(){this.renderVisuDiv();this.renderEditor()},renderEditor:function(){this.editorContainer=inputEx.cn("div",{className:C+"editor"},{display:"none"});this.editorField=inputEx(this.options.editorField);var E=this.editorField.getEl();this.editorContainer.appendChild(E);B.addClass(E,C+"editorDiv");this.okButton=inputEx.cn("a",{className:C+"OkButton"},null,inputEx.messages.okEditor);this.okButton.href="";this.editorContainer.appendChild(this.okButton);this.cancelLink=inputEx.cn("a",{className:C+"CancelLink"},null,inputEx.messages.cancelEditor);this.cancelLink.href="";this.editorContainer.appendChild(this.cancelLink);this.editorContainer.appendChild(inputEx.cn("div",null,{clear:"both"}));this.fieldContainer.appendChild(this.editorContainer)},onVisuMouseOver:function(E){if(this.colorAnim){this.colorAnim.stop(true)}inputEx.sn(this.formattedContainer,null,{backgroundColor:this.options.animColors.from})},onVisuMouseOut:function(E){if(this.colorAnim){this.colorAnim.stop(true)}this.colorAnim=new YAHOO.util.ColorAnim(this.formattedContainer,{backgroundColor:this.options.animColors},1);this.colorAnim.onComplete.subscribe(function(){B.setStyle(this.formattedContainer,"background-color","")},this,true);this.colorAnim.animate()},renderVisuDiv:function(){this.formattedContainer=inputEx.cn("div",{className:"inputEx-InPlaceEdit-visu"});if(D.isFunction(this.options.formatDom)){this.formattedContainer.appendChild(this.options.formatDom(this.options.value))}else{if(D.isFunction(this.options.formatValue)){this.formattedContainer.innerHTML=this.options.formatValue(this.options.value)}else{this.formattedContainer.innerHTML=D.isUndefined(this.options.value)?inputEx.messages.emptyInPlaceEdit:this.options.value}}this.fieldContainer.appendChild(this.formattedContainer)},initEvents:function(){A.addListener(this.formattedContainer,"click",this.openEditor,this,true);A.addListener(this.formattedContainer,"mouseover",this.onVisuMouseOver,this,true);A.addListener(this.formattedContainer,"mouseout",this.onVisuMouseOut,this,true);A.addListener(this.okButton,"click",this.onOkEditor,this,true);A.addListener(this.cancelLink,"click",this.onCancelEditor,this,true);if(this.editorField.el){A.addListener(this.editorField.el,"keyup",this.onKeyUp,this,true);A.addListener(this.editorField.el,"keydown",this.onKeyDown,this,true)}},onKeyUp:function(E){if(E.keyCode==13){this.onOkEditor(E)}if(E.keyCode==27){this.onCancelEditor(E)}},onKeyDown:function(E){if(E.keyCode==9){this.onOkEditor(E)}},onOkEditor:function(G){A.stopEvent(G);var F=this.editorField.getValue();this.setValue(F);this.editorContainer.style.display="none";this.formattedContainer.style.display="";var E=this;setTimeout(function(){E.updatedEvt.fire(F)},50)},onCancelEditor:function(E){A.stopEvent(E);this.editorContainer.style.display="none";this.formattedContainer.style.display=""},openEditor:function(){var E=this.getValue();this.editorContainer.style.display="";this.formattedContainer.style.display="none";if(!D.isUndefined(E)){this.editorField.setValue(E)}this.editorField.focus();if(this.editorField.el&&D.isFunction(this.editorField.el.setSelectionRange)&&(!!E&&!!E.length)){this.editorField.el.setSelectionRange(0,E.length)}},getValue:function(){var E=(this.editorContainer.style.display=="");return E?this.editorField.getValue():this.value},setValue:function(F,E){this.value=F;if(D.isUndefined(F)||F==""){inputEx.renderVisu(this.options.visu,inputEx.messages.emptyInPlaceEdit,this.formattedContainer)}else{inputEx.renderVisu(this.options.visu,this.value,this.formattedContainer)}if(this.editorContainer.style.display==""){this.editorField.setValue(F)}inputEx.InPlaceEdit.superclass.setValue.call(this,F,E)},close:function(){this.editorContainer.style.display="none";this.formattedContainer.style.display=""}});inputEx.messages.emptyInPlaceEdit="(click to edit)";inputEx.messages.cancelEditor="cancel";inputEx.messages.okEditor="Ok";inputEx.registerType("inplaceedit",inputEx.InPlaceEdit,[{type:"type",inputParams:{label:"Editor",name:"editorField"}}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Event;inputEx.IntegerField=function(C){inputEx.IntegerField.superclass.constructor.call(this,C)};YAHOO.lang.extend(inputEx.IntegerField,inputEx.StringField,{setOptions:function(C){inputEx.IntegerField.superclass.setOptions.call(this,C);this.options.negative=B.isUndefined(C.negative)?false:C.negative;this.options.min=B.isUndefined(C.min)?(this.options.negative?-Infinity:0):parseInt(C.min,10);this.options.max=B.isUndefined(C.max)?Infinity:parseInt(C.max,10)},getValue:function(){if((this.options.typeInvite&&this.el.value==this.options.typeInvite)||this.el.value==""){return""}return parseInt(this.el.value,10)},validate:function(){var C=this.getValue();if(C===""){return !this.options.required}if(isNaN(C)){return false}return !!this.el.value.match(new RegExp(this.options.negative?"^[+-]?[0-9]*$":"^\\+?[0-9]*$"))&&C>=this.options.min&&C<=this.options.max}});inputEx.registerType("integer",inputEx.IntegerField,[{type:"boolean",inputParams:{label:"Accept negative",name:"negative",value:false}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.ListField=function(D){this.subFields=[];inputEx.ListField.superclass.constructor.call(this,D)};C.extend(inputEx.ListField,inputEx.Field,{setOptions:function(D){inputEx.ListField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:"inputEx-Field inputEx-ListField";this.options.sortable=C.isUndefined(D.sortable)?false:D.sortable;this.options.elementType=D.elementType||{type:"string"};this.options.useButtons=C.isUndefined(D.useButtons)?false:D.useButtons;this.options.unique=C.isUndefined(D.unique)?false:D.unique;this.options.listAddLabel=D.listAddLabel||inputEx.messages.listAddLink;this.options.listRemoveLabel=D.listRemoveLabel||inputEx.messages.listRemoveLink;this.options.maxItems=D.maxItems;this.options.minItems=D.minItems},renderComponent:function(){if(this.options.useButtons){this.addButton=inputEx.cn("img",{src:inputEx.spacerUrl,className:"inputEx-ListField-addButton"});this.fieldContainer.appendChild(this.addButton)}this.fieldContainer.appendChild(inputEx.cn("span",null,{marginLeft:"4px"},this.options.listLabel));this.childContainer=inputEx.cn("div",{className:"inputEx-ListField-childContainer"});this.fieldContainer.appendChild(this.childContainer);if(!this.options.useButtons){this.addButton=inputEx.cn("a",{className:"inputEx-List-link"},null,this.options.listAddLabel);this.fieldContainer.appendChild(this.addButton)}},initEvents:function(){A.addListener(this.addButton,"click",this.onAddButton,this,true)},validate:function(){var F=true;var J={};var D=this.subFields.length;if(C.isNumber(this.options.minItems)&&Dthis.options.maxItems){F=false}for(var G=0;G0){for(F=0;F=this.options.maxItems){return }var D=this.addElement();D.focus();this.fireUpdatedEvt()},renderSubField:function(K){var G=inputEx.cn("div"),E;if(this.options.useButtons){E=inputEx.cn("img",{src:inputEx.spacerUrl,className:"inputEx-ListField-delButton"});A.addListener(E,"click",this.onDelete,this,true);G.appendChild(E)}var J=C.merge({},this.options.elementType);if(!J.inputParams){J.inputParams={}}if(!C.isUndefined(K)){J.inputParams.value=K}var H=inputEx(J);var F=H.getEl();B.setStyle(F,"margin-left","4px");B.setStyle(F,"float","left");G.appendChild(F);H.updatedEvt.subscribe(this.onChange,this,true);if(this.options.sortable){var I=inputEx.cn("div",{className:"inputEx-ListField-Arrow inputEx-ListField-ArrowUp"});A.addListener(I,"click",this.onArrowUp,this,true);var D=inputEx.cn("div",{className:"inputEx-ListField-Arrow inputEx-ListField-ArrowDown"});A.addListener(D,"click",this.onArrowDown,this,true);G.appendChild(I);G.appendChild(D)}if(!this.options.useButtons){E=inputEx.cn("a",{className:"inputEx-List-link"},null,this.options.listRemoveLabel);A.addListener(E,"click",this.onDelete,this,true);G.appendChild(E)}G.appendChild(inputEx.cn("div",null,{clear:"both"}));this.childContainer.appendChild(G);return H},onArrowUp:function(J){var G=A.getTarget(J).parentNode;var E=null;var F=-1;for(var H=1;H=this.options.min&&C<=this.options.max}});inputEx.registerType("number",inputEx.NumberField,[])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.PasswordField=function(C){inputEx.PasswordField.superclass.constructor.call(this,C)};inputEx.PasswordField.byId={};B.extend(inputEx.PasswordField,inputEx.StringField,{setOptions:function(C){inputEx.PasswordField.superclass.setOptions.call(this,C);this.options.className=C.className?C.className:"inputEx-Field inputEx-PasswordField";this.options.regexp=C.regexp||inputEx.regexps.password;this.options.strengthIndicator=YAHOO.lang.isUndefined(C.strengthIndicator)?false:C.strengthIndicator;this.options.capsLockWarning=YAHOO.lang.isUndefined(C.capsLockWarning)?false:C.capsLockWarning;inputEx.PasswordField.byId[C.id]=this;var D;if(C.confirm&&(D=inputEx.PasswordField.byId[C.confirm])){this.setConfirmationField(D)}},renderComponent:function(){this.wrapEl=inputEx.cn("div",{className:"inputEx-StringField-wrapper"});var C={};C.type="password";C.size=this.options.size;if(this.options.name){C.name=this.options.name}this.el=inputEx.cn("input",C);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl);if(this.options.capsLockWarning){this.capsLockWarning=inputEx.cn("div",{className:"capsLockWarning"},{display:"none"},inputEx.messages.capslockWarning);this.wrapEl.appendChild(this.capsLockWarning)}if(this.options.strengthIndicator){this.strengthEl=inputEx.cn("div",{className:"inputEx-Password-StrengthIndicator"},null,inputEx.messages.passwordStrength);this.strengthBlocks=[];for(var D=0;D<4;D++){this.strengthBlocks[D]=inputEx.cn("div",{className:"inputEx-Password-StrengthIndicatorBlock"});this.strengthEl.appendChild(this.strengthBlocks[D])}this.wrapEl.appendChild(this.strengthEl)}},setConfirmationField:function(C){this.options.confirmPasswordField=C;this.options.messages.invalid=inputEx.messages.invalidPasswordConfirmation;this.options.confirmPasswordField.options.confirmationPasswordField=this},validate:function(){if(this.options.confirmPasswordField){if(this.options.confirmPasswordField.getValue()!=this.getValue()){return false}}return inputEx.PasswordField.superclass.validate.call(this)},getStateString:function(C){if(C==inputEx.stateInvalid&&this.options.minLength&&this.el.value.length=65&&H<=90)&&!E)||((H>=97&&H<=122)&&E);this.setCapsLockWarning(C)}},onKeyUp:function(C){inputEx.PasswordField.superclass.onKeyUp.call(this,C);if(this.options.strengthIndicator){B.later(0,this,this.updateStrengthIndicator)}},setCapsLockWarning:function(C){this.capsLockWarning.style.display=C?"":"none"},updateStrengthIndicator:function(){var E=inputEx.PasswordField.getPasswordStrength(this.getValue());for(var D=0;D<4;D++){var C=(E>=D*25)&&(E>0);YAHOO.util.Dom.setStyle(this.strengthBlocks[D],"background-color",C?"#4AE817":"#FFFFFF")}}});inputEx.PasswordField.getPasswordStrength=function(J){var F=(J.length);if(F>7){F=7}var H=J.replace(/[0-9]/g,"");var I=(J.length-H.length);if(I>3){I=3}var C=J.replace(/\W/g,"");var E=(J.length-C.length);if(E>3){E=3}var D=J.replace(/[A-Z]/g,"");var K=(J.length-D.length);if(K>3){K=3}var G=((F*10)-20)+(I*10)+(E*20)+(K*10);if(G<0){G=0}if(G>100){G=100}return G};inputEx.messages.invalidPassword=["The password schould contain at least "," numbers or characters"];inputEx.messages.invalidPasswordConfirmation="Passwords are different !";inputEx.messages.capslockWarning="Warning: CapsLock is on";inputEx.messages.passwordStrength="Password Strength";inputEx.registerType("password",inputEx.PasswordField,[{type:"boolean",inputParams:{label:"Strength indicator",name:"strengthIndicator",value:false}},{type:"boolean",inputParams:{label:"CapsLock warning",name:"capsLockWarning",value:false}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.RadioField=function(D){inputEx.RadioField.superclass.constructor.call(this,D);if(YAHOO.env.ua.ie&&!C.isUndefined(this.options.value)){var E=this;setTimeout(function(){E.setValue(E.options.value,false)},0)}};C.extend(inputEx.RadioField,inputEx.Field,{setOptions:function(D){inputEx.RadioField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:"inputEx-Field inputEx-RadioField";if(C.isUndefined(D.allowAny)||D.allowAny===false){this.options.allowAny=false}else{this.options.allowAny={};if(C.isArray(D.allowAny.separators)){this.options.allowAny.separators=D.allowAny.separators}this.options.allowAny.validator=(C.isFunction(D.allowAny.validator))?D.allowAny.validator:function(E){return true};this.options.allowAny.value=(!C.isUndefined(D.allowAny.value))?D.allowAny.value:""}this.options.choices=D.choices;this.options.values=C.isArray(D.values)?D.values:D.choices},renderComponent:function(){var I,G;this.optionEls=[];for(var H=0;H")}else{this.radioAny=inputEx.cn("input",{type:"radio",name:this.options.name})}I.appendChild(this.radioAny);this.anyField=new inputEx.StringField({value:this.options.allowAny.value});B.setStyle(this.radioAny,"float","left");B.setStyle(this.anyField.getEl(),"float","left");this.anyField.disable();if(this.options.allowAny.separators){G=inputEx.cn("div",null,{margin:"3px"},this.options.allowAny.separators[0]||"");B.setStyle(G,"float","left");I.appendChild(G)}I.appendChild(this.anyField.getEl());if(this.options.allowAny.separators){G=inputEx.cn("div",null,{margin:"3px"},this.options.allowAny.separators[1]||"");B.setStyle(G,"float","left");I.appendChild(G)}this.fieldContainer.appendChild(I);this.optionEls.push(this.radioAny)}},initEvents:function(){A.addListener(this.optionEls,"change",this.onChange,this,true);A.addFocusListener(this.optionEls,this.onFocus,this,true);A.addBlurListener(this.optionEls,this.onBlur,this,true);if(YAHOO.env.ua.ie){A.addListener(this.optionEls,"click",function(){YAHOO.lang.later(10,this,this.fireUpdatedEvt)},this,true)}if(this.anyField){this.anyField.updatedEvt.subscribe(function(D){inputEx.RadioField.superclass.onChange.call(this,D)},this,true);A.addBlurListener(this.anyField.el,this.onBlur,this,true)}},onChange:function(D){if(this.radioAny){if(this.radioAny==A.getTarget(D)){this.anyField.enable();C.later(50,this.anyField,"focus")}else{this.anyField.disable()}}if(!YAHOO.env.ua.ie){inputEx.RadioField.superclass.onChange.call(this,D)}},getValue:function(){for(var D=0;D=0&&D.position<=C){C=parseInt(D.position,10)}else{if(B.isString(D.before)){for(E=0;E=0&&E.position<=G){D=parseInt(E.position,10)}else{if(B.isString(E.option)){for(F=0;Fthis.options.maxLength){return inputEx.messages.stringTooLong[0]+this.options.maxLength+inputEx.messages.stringTooLong[1]}}return inputEx.Textarea.superclass.getStateString.call(this,B)},insert:function(E){var D,C,B;if(document.selection){this.el.focus();D=document.selection.createRange();D.text=E}else{if(this.el.selectionStart||this.el.selectionStart=="0"){C=this.el.selectionStart;B=this.el.selectionEnd;this.el.value=this.el.value.substring(0,C)+E+this.el.value.substring(B,this.el.value.length)}else{this.el.value+=E}}}});inputEx.messages.stringTooLong=["This field should contain at most "," numbers or characters"];inputEx.registerType("text",inputEx.Textarea,[{type:"integer",inputParams:{label:"Rows",name:"rows",value:6}},{type:"integer",inputParams:{label:"Cols",name:"cols",value:23}}])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.TimeField=function(D){var H=[],F,C=[],E=[],G;for(F=0;F<24;F++){G="";if(F<10){G="0"}G+=F;H.push(G)}for(F=0;F<60;F++){G="";if(F<10){G="0"}G+=F;C.push(G);E.push(G)}D.fields=[{type:"select",inputParams:{selectOptions:H,selectValues:H}},{type:"select",inputParams:{selectOptions:C,selectValues:C}},{type:"select",inputParams:{selectOptions:E,selectValues:E}}];D.separators=D.separators||[false,":",":",false];inputEx.TimeField.superclass.constructor.call(this,D)};B.extend(inputEx.TimeField,inputEx.CombineField,{getValue:function(){var C=inputEx.TimeField.superclass.getValue.call(this);return C.join(":")},setValue:function(D,C){inputEx.TimeField.superclass.setValue.call(this,D.split(":"),C)}});inputEx.registerType("time",inputEx.TimeField)})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.DateTimeField=function(C){C.fields=[{type:"datepicker",inputParams:{}},{type:"time",inputParams:{}}];if(C.dateFormat){C.fields[0].inputParams.dateFormat=C.dateFormat}C.separators=C.separators||[false,"  ",false];inputEx.DateTimeField.superclass.constructor.call(this,C)};B.extend(inputEx.DateTimeField,inputEx.CombineField,{getValue:function(){var D=this.inputs[0].getValue();if(D==""){return null}var C=this.inputs[1].getValue().split(":");D.setHours(C[0]);D.setMinutes(C[1]);D.setSeconds(C[2]);return D},setValue:function(H,D){if(!B.isObject(H)){return }var F=H.getHours();var C=H.getMinutes();var E=H.getSeconds();var G=([(F<10?"0":"")+F,(C<10?"0":"")+C,(E<10?"0":"")+E]).join(":");inputEx.DateTimeField.superclass.setValue.call(this,[H,G],D)}});inputEx.registerType("datetime",inputEx.DateTimeField)})();(function(){inputEx.UneditableField=function(A){inputEx.UneditableField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.UneditableField,inputEx.Field,{setOptions:function(A){inputEx.UneditableField.superclass.setOptions.call(this,A);this.options.visu=A.visu},setValue:function(B,A){this.value=B;inputEx.renderVisu(this.options.visu,B,this.fieldContainer);inputEx.UneditableField.superclass.setValue.call(this,B,A)},getValue:function(){return this.value}});inputEx.registerType("uneditable",inputEx.UneditableField)})();(function(){var A=YAHOO.lang;inputEx.UrlField=function(B){inputEx.UrlField.superclass.constructor.call(this,B)};A.extend(inputEx.UrlField,inputEx.StringField,{setOptions:function(B){inputEx.UrlField.superclass.setOptions.call(this,B);this.options.className=B.className?B.className:"inputEx-Field inputEx-UrlField";this.options.messages.invalid=inputEx.messages.invalidUrl;this.options.favicon=A.isUndefined(B.favicon)?(("https:"==document.location.protocol)?false:true):B.favicon;this.options.size=B.size||50;this.options.regexp=inputEx.regexps.url},render:function(){inputEx.UrlField.superclass.render.call(this);this.el.size=this.options.size;if(!this.options.favicon){YAHOO.util.Dom.addClass(this.el,"nofavicon")}if(this.options.favicon){this.favicon=inputEx.cn("img",{src:inputEx.spacerUrl});this.fieldContainer.insertBefore(this.favicon,this.fieldContainer.childNodes[0]);YAHOO.util.Event.addListener(this.favicon,"click",function(){this.focus()},this,true)}},setClassFromState:function(){inputEx.UrlField.superclass.setClassFromState.call(this);if(this.options.favicon){this.updateFavicon((this.previousState==inputEx.stateValid)?this.getValue():null)}},updateFavicon:function(C){var B=C?C.match(/https?:\/\/[^\/]*/)+"/favicon.ico":inputEx.spacerUrl;if(B!=this.favicon.src){inputEx.sn(this.favicon,null,{visibility:"hidden"});this.favicon.src=B;if(this.timer){clearTimeout(this.timer)}var D=this;this.timer=setTimeout(function(){D.displayFavicon()},1000)}},displayFavicon:function(){inputEx.sn(this.favicon,null,{visibility:(this.favicon.naturalWidth!=0)?"visible":"hidden"})}});inputEx.messages.invalidUrl="Invalid URL, ex: http://www.test.com";inputEx.registerType("url",inputEx.UrlField,[{type:"boolean",inputParams:{label:"Display favicon",name:"favicon",value:true}}])})();(function(){var B=YAHOO.util.DragDropMgr,C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;inputEx.widget.DDListItem=function(E){inputEx.widget.DDListItem.superclass.constructor.call(this,E);this.setXConstraint(0,0);this.goingUp=false;this.lastY=0};YAHOO.extend(inputEx.widget.DDListItem,YAHOO.util.DDProxy,{startDrag:function(F,H){var E=this.getDragEl();var G=this.getEl();C.setStyle(G,"visibility","hidden");this._originalIndex=inputEx.indexOf(G,G.parentNode.childNodes);E.className=G.className;E.innerHTML=G.innerHTML},endDrag:function(F){C.setStyle(this.id,"visibility","");var G=this.getEl();var E=inputEx.indexOf(G,G.parentNode.childNodes);if(this._originalIndex!=E){this._list.onReordered(this._originalIndex,E)}},onDragDrop:function(I,J){if(B.interactionInfo.drop.length===1){var H=B.interactionInfo.point;var G=B.interactionInfo.sourceRegion;if(!G.intersect(H)){var E=C.get(J);if(E.nodeName.toLowerCase()!="li"){var F=B.getDDById(J);E.appendChild(this.getEl());F.isEmpty=false;B.refreshCache()}}}},onDrag:function(E){var F=A.getPageY(E);if(Fthis.lastY){this.goingUp=false}}this.lastY=F},onDragOver:function(I,J){var G=this.getEl();var F=C.get(J);if(F.nodeName.toLowerCase()=="li"){var E=G.parentNode;var H=F.parentNode;if(this.goingUp){H.insertBefore(G,F)}else{H.insertBefore(G,F.nextSibling)}B.refreshCache()}}});inputEx.widget.DDList=function(E){this.ul=inputEx.cn("ul");this.items=[];this.setOptions(E);this.itemRemovedEvt=new YAHOO.util.CustomEvent("itemRemoved",this);this.listReorderedEvt=new YAHOO.util.CustomEvent("listReordered",this);if(E.parentEl){if(D.isString(E.parentEl)){C.get(E.parentEl).appendChild(this.ul)}else{E.parentEl.appendChild(this.ul)}}};inputEx.widget.DDList.prototype={setOptions:function(E){this.options={};this.options.allowDelete=D.isUndefined(E.allowDelete)?true:E.allowDelete;if(E.id){this.ul.id=E.id}if(E.value){this.setValue(E.value)}},addItem:function(G){var E=inputEx.cn("li",{className:"inputEx-DDList-item"});E.appendChild(inputEx.cn("span",null,null,(typeof G=="object")?G.label:G));if(!!this.options.allowDelete){var H=inputEx.cn("a",null,null,"remove");E.appendChild(H);A.addListener(H,"click",function(K){var J=A.getTarget(K);var I=J.parentNode;this.removeItem(inputEx.indexOf(I,this.ul.childNodes))},this,true)}var F=new inputEx.widget.DDListItem(E);F._list=this;this.items.push((typeof G=="object")?G.value:G);this.ul.appendChild(E)},_removeItem:function(E){var F=this.items[E];this.ul.removeChild(this.ul.childNodes[E]);this.items[E]=null;this.items=inputEx.compactArray(this.items);return F},removeItem:function(E){var F=this._removeItem(E);this.itemRemovedEvt.fire(F)},onReordered:function(F,E){if(Fthis.options.maxValue){B=this.options.maxValue}var D=Math.floor(B-this.options.minValue)*100/this.options.maxValue;this.slider.setValue(D);inputEx.SliderField.superclass.setValue.call(this,E,C)},getValue:function(){var B=Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100);return B}});inputEx.registerType("slider",inputEx.SliderField,[{type:"integer",inputParams:{label:"Min. value",name:"minValue",value:0}},{type:"integer",inputParams:{label:"Max. value",name:"maxValue",value:100}}])})(); \ No newline at end of file +(function(){var A=YAHOO.lang;inputEx=function(B,D){var C=null,E;if(B.type){C=inputEx.getFieldClass(B.type);if(C===null){C=inputEx.StringField}}else{C=B.fieldClass?B.fieldClass:inputEx.StringField}if(A.isObject(B.inputParams)){E=new C(B.inputParams)}else{E=new C(B)}if(D){E.setParentField(D)}return E};A.augmentObject(inputEx,{VERSION:"0.5.0",spacerUrl:"images/space.gif",stateEmpty:"empty",stateRequired:"required",stateValid:"valid",stateInvalid:"invalid",messages:{required:"This field is required",invalid:"This field is invalid",valid:"This field is valid",defaultDateFormat:"m/d/Y",months:["January","February","March","April","May","June","July","August","September","October","November","December"]},widget:{},regexps:{email:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/i,password:/^[0-9a-zA-Z\x20-\x7E]*$/},typeClasses:{},registerType:function(C,E,B,F){if(!A.isString(C)){throw new Error("inputEx.registerType: first argument must be a string")}if(!A.isFunction(E)){throw new Error("inputEx.registerType: second argument must be a function")}this.typeClasses[C]=E;var D=[];if(A.isArray(B)){D=B}if(E.superclass&&!F&&A.isArray(E.superclass.constructor.groupOptions)){D=D.concat(E.superclass.constructor.groupOptions)}E.groupOptions=D},getFieldClass:function(B){return A.isFunction(this.typeClasses[B])?this.typeClasses[B]:null},getType:function(B){for(var C in this.typeClasses){if(this.typeClasses.hasOwnProperty(C)){if(this.typeClasses[C]==B){return C}}}return null},buildField:function(B){return inputEx(B)},sn:function(E,D,B){if(!E){return }var C;if(D){for(C in D){var G=D[C];if(A.isFunction(G)){continue}if(C=="className"){C="class";E.className=G}if(G!==E.getAttribute(C)){try{if(G===false){E.removeAttribute(C)}else{E.setAttribute(C,G)}}catch(F){}}}}if(B){for(C in B){if(A.isFunction(B[C])){continue}if(E.style[C]!=B[C]){E.style[C]=B[C]}}}},cn:function(B,F,C,H){if(B=="input"&&YAHOO.env.ua.ie){var E="<"+B;if(F!=="undefined"){for(var D in F){E+=" "+D+'="'+F[D]+'"'}}E+="/>";return document.createElement(E)}else{var G=document.createElement(B);this.sn(G,F,C);if(H){G.innerHTML=H}return G}},indexOf:function(E,B){var C=B.length,D;for(D=0;D=0)?D.length-1:0])}catch(E){alert(E)}}this.msgEl.innerHTML=F},show:function(){this.divEl.style.display=""},hide:function(){this.divEl.style.display="none"},clear:function(D){this.setValue(C.isUndefined(this.options.value)?"":this.options.value,D)},isEmpty:function(){return this.getValue()===""},setParentField:function(D){this.parentField=D},getParentField:function(){return this.parentField}};inputEx.Field.groupOptions=[{type:"string",label:"Label",name:"label",value:""},{type:"string",label:"Name",name:"name",value:""},{type:"string",label:"Description",name:"description",value:""},{type:"boolean",label:"Required?",name:"required",value:false},{type:"boolean",label:"Show messages",name:"showMsg",value:false}]})();(function(){var C=YAHOO.lang,B=YAHOO.util.Dom,A=YAHOO.util.Event;inputEx.Group=function(D){inputEx.Group.superclass.constructor.call(this,D);if(!this.options.value){this.runFieldsInteractions()}};C.extend(inputEx.Group,inputEx.Field,{setOptions:function(D){inputEx.Group.superclass.setOptions.call(this,D);this.options.className=D.className||"inputEx-Group";this.options.fields=D.fields;this.options.flatten=D.flatten;this.options.legend=D.legend||"";this.options.collapsible=C.isUndefined(D.collapsible)?false:D.collapsible;this.options.collapsed=C.isUndefined(D.collapsed)?false:D.collapsed;this.options.disabled=C.isUndefined(D.disabled)?false:D.disabled;this.inputs=[];this.inputsNames={}},render:function(){this.divEl=inputEx.cn("div",{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}this.renderFields(this.divEl);if(this.options.disabled){this.disable()}},renderFields:function(F){this.fieldset=inputEx.cn("fieldset");this.legend=inputEx.cn("legend",{className:"inputEx-Group-legend"});if(this.options.collapsible){var H=inputEx.cn("div",{className:"inputEx-Group-collapseImg"},null," ");this.legend.appendChild(H);inputEx.sn(this.fieldset,{className:"inputEx-Expanded"})}if(!C.isUndefined(this.options.legend)&&this.options.legend!==""){this.legend.appendChild(inputEx.cn("span",null,null," "+this.options.legend))}if(this.options.collapsible||(!C.isUndefined(this.options.legend)&&this.options.legend!=="")){this.fieldset.appendChild(this.legend)}for(var E=0;E0){this.inputs[0].focus()}},getFieldByName:function(D){if(!this.inputsNames.hasOwnProperty(D)){return null}return this.inputsNames[D]},onChange:function(E,F){var G=F[0];var D=F[1];this.runInteractions(D,G);this.fireUpdatedEvt()},runAction:function(D,F){var E=this.getFieldByName(D.name);if(YAHOO.lang.isFunction(E[D.action])){E[D.action].call(E)}else{if(YAHOO.lang.isFunction(D.action)){D.action.call(E,F)}else{throw new Error("action "+D.action+" is not a valid action for field "+D.name)}}},runInteractions:function(E,J){var G=inputEx.indexOf(E,this.inputs);var I=this.options.fields[G];if(YAHOO.lang.isUndefined(I.interactions)){return }var K=I.interactions;for(var H=0;H


    "+inputEx.messages.ajaxWait+"");this.divEl.appendChild(this.formMask);this.maskRendered=true},showMask:function(){this.renderMask();this.toggleSelectsInIE(false);this.formMask.style.display=""},hideMask:function(){this.toggleSelectsInIE(true);this.formMask.style.display="none"},toggleSelectsInIE:function(E){if(!!YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){var G=!!E?YAHOO.util.Dom.removeClass:YAHOO.util.Dom.addClass;var F=this;YAHOO.util.Dom.getElementsBy(function(){return true},"select",this.divEl,function(H){G.call(F,H,"inputEx-hidden")})}},enable:function(){inputEx.Form.superclass.enable.call(this);for(var E=0;E=this.options.minLength}return D},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false},focus:function(){if(!!this.el&&!C.isUndefined(this.el.focus)){this.el.focus()}},getStateString:function(D){if(D==inputEx.stateInvalid&&this.options.minLength&&this.el.value.length9999||C<1||C>31||G<1||G>12){return false}return(H!="Invalid Date")},isEmpty:function(){var C=inputEx.DateSplitField.superclass.getValue.call(this);return(C[this.monthIndex]==""&&C[this.yearIndex]==""&&C[this.dayIndex]=="")},initAutoTab:function(){var C=[48,49,50,51,52,53,54,55,56,57];var F=function(G){for(var H=0,I=C.length;H0){B.batch(G,function(I){if(B.hasClass(I.parentNode,"today")){F=I}});if(!F){F=G[0]}C.later(0,F,function(){try{F.focus()}catch(I){}})}};this.calendar.renderEvent.subscribe(D,this.calendar,true);this.oOverlay.beforeShowEvent.subscribe(this.beforeShowOverlay,this,true);this.beforeShowOverlay();this.calendar.selectEvent.subscribe(function(J,H,L){if(!!this.ignoreBeforeShowOverlayCall){return }this.oOverlay.hide();var G=H[0][0];var I=G[0],K=G[1],F=G[2];this.setValue(new Date(I,K-1,F))},this,true);this.button.unsubscribe("click",this.renderCalendar);this.calendarRendered=true},beforeShowOverlay:function(E){var D=this.getValue(true);if(!!this.calendar){if(!!D){this.ignoreBeforeShowOverlayCall=true;this.calendar.select(D);this.ignoreBeforeShowOverlayCall=false;this.calendar.cfg.setProperty("pagedate",(D.getMonth()+1)+"/"+D.getFullYear())}this.calendar.render()}},disable:function(){inputEx.DatePickerField.superclass.disable.call(this);this.button.set("disabled",true)},enable:function(){inputEx.DatePickerField.superclass.enable.call(this);this.button.set("disabled",false)}});inputEx.messages.defautCalendarOpts={navigator:true};inputEx.registerType("datepicker",inputEx.DatePickerField)})();(function(){inputEx.EmailField=function(A){inputEx.EmailField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.EmailField,inputEx.StringField,{setOptions:function(A){inputEx.EmailField.superclass.setOptions.call(this,A);this.options.messages.invalid=inputEx.messages.invalidEmail;this.options.regexp=inputEx.regexps.email},getValue:function(){var A;A=inputEx.EmailField.superclass.getValue.call(this);return inputEx.removeAccents(A.toLowerCase())}});inputEx.messages.invalidEmail="Invalid email, ex: sample@test.com";inputEx.registerType("email",inputEx.EmailField,[])})();(function(){inputEx.HiddenField=function(A){inputEx.HiddenField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.HiddenField,inputEx.Field,{render:function(){this.type=inputEx.HiddenField;this.divEl=inputEx.cn("div",null,{display:"none"});this.el=inputEx.cn("input",{type:"hidden"});if(this.options.name){this.el.name=this.options.name}this.divEl.appendChild(this.el)},setValue:function(B,A){this.el.value=B;inputEx.HiddenField.superclass.setValue.call(this,B,A)},getValue:function(){return this.el.value}});inputEx.registerType("hidden",inputEx.HiddenField)})();(function(){var D=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom,C="inputEx-InPlaceEdit-";inputEx.InPlaceEdit=function(E){inputEx.InPlaceEdit.superclass.constructor.call(this,E)};D.extend(inputEx.InPlaceEdit,inputEx.Field,{setOptions:function(E){inputEx.InPlaceEdit.superclass.setOptions.call(this,E);this.options.visu=E.visu;this.options.editorField=E.editorField;this.options.buttonTypes=E.buttonTypes||{ok:"submit",cancel:"link"};this.options.animColors=E.animColors||null},renderComponent:function(){this.renderVisuDiv();this.renderEditor()},renderEditor:function(){this.editorContainer=inputEx.cn("div",{className:C+"editor"},{display:"none"});this.editorField=inputEx(this.options.editorField,this);var E=this.editorField.getEl();this.editorContainer.appendChild(E);B.addClass(E,C+"editorDiv");this.okButton=new inputEx.widget.Button({type:this.options.buttonTypes.ok,parentEl:this.editorContainer,value:inputEx.messages.okEditor,className:"inputEx-Button "+C+"OkButton",onClick:{fn:this.onOkEditor,scope:this}});this.cancelLink=new inputEx.widget.Button({type:this.options.buttonTypes.cancel,parentEl:this.editorContainer,value:inputEx.messages.cancelEditor,className:"inputEx-Button "+C+"CancelLink",onClick:{fn:this.onCancelEditor,scope:this}});this.editorContainer.appendChild(inputEx.cn("div",null,{clear:"both"}));this.fieldContainer.appendChild(this.editorContainer)},onVisuMouseOver:function(E){if(this.colorAnim){this.colorAnim.stop(true)}inputEx.sn(this.formattedContainer,null,{backgroundColor:this.options.animColors.from})},onVisuMouseOut:function(E){if(this.colorAnim){this.colorAnim.stop(true)}this.colorAnim=new YAHOO.util.ColorAnim(this.formattedContainer,{backgroundColor:this.options.animColors},1);this.colorAnim.onComplete.subscribe(function(){B.setStyle(this.formattedContainer,"background-color","")},this,true);this.colorAnim.animate()},renderVisuDiv:function(){this.formattedContainer=inputEx.cn("div",{className:"inputEx-InPlaceEdit-visu"});if(D.isFunction(this.options.formatDom)){this.formattedContainer.appendChild(this.options.formatDom(this.options.value))}else{if(D.isFunction(this.options.formatValue)){this.formattedContainer.innerHTML=this.options.formatValue(this.options.value)}else{this.formattedContainer.innerHTML=D.isUndefined(this.options.value)?inputEx.messages.emptyInPlaceEdit:this.options.value}}this.fieldContainer.appendChild(this.formattedContainer)},initEvents:function(){A.addListener(this.formattedContainer,"click",this.openEditor,this,true);if(this.options.animColors){A.addListener(this.formattedContainer,"mouseover",this.onVisuMouseOver,this,true);A.addListener(this.formattedContainer,"mouseout",this.onVisuMouseOut,this,true)}if(this.editorField.el){A.addListener(this.editorField.el,"keyup",this.onKeyUp,this,true);A.addListener(this.editorField.el,"keydown",this.onKeyDown,this,true)}},onKeyUp:function(E){if(E.keyCode==13){this.onOkEditor(E)}if(E.keyCode==27){this.onCancelEditor(E)}},onKeyDown:function(E){if(E.keyCode==9){this.onOkEditor(E)}},onOkEditor:function(G){A.stopEvent(G);var F=this.editorField.getValue();this.setValue(F);this.editorContainer.style.display="none";this.formattedContainer.style.display="";var E=this;setTimeout(function(){E.updatedEvt.fire(F)},50)},onCancelEditor:function(E){A.stopEvent(E);this.editorContainer.style.display="none";this.formattedContainer.style.display=""},openEditor:function(){var E=this.getValue();this.editorContainer.style.display="";this.formattedContainer.style.display="none";if(!D.isUndefined(E)){this.editorField.setValue(E)}this.editorField.focus();if(this.editorField.el&&D.isFunction(this.editorField.el.setSelectionRange)&&(!!E&&!!E.length)){this.editorField.el.setSelectionRange(0,E.length)}},getValue:function(){var E=(this.editorContainer.style.display=="");return E?this.editorField.getValue():this.value},setValue:function(F,E){this.value=F;if(D.isUndefined(F)||F==""){inputEx.renderVisu(this.options.visu,inputEx.messages.emptyInPlaceEdit,this.formattedContainer)}else{inputEx.renderVisu(this.options.visu,this.value,this.formattedContainer)}if(this.editorContainer.style.display==""){this.editorField.setValue(F)}inputEx.InPlaceEdit.superclass.setValue.call(this,F,E)},close:function(){this.editorContainer.style.display="none";this.formattedContainer.style.display=""}});inputEx.messages.emptyInPlaceEdit="(click to edit)";inputEx.messages.cancelEditor="cancel";inputEx.messages.okEditor="Ok";inputEx.registerType("inplaceedit",inputEx.InPlaceEdit,[{type:"type",label:"Editor",name:"editorField"}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Event;inputEx.IntegerField=function(C){inputEx.IntegerField.superclass.constructor.call(this,C)};YAHOO.lang.extend(inputEx.IntegerField,inputEx.StringField,{setOptions:function(C){inputEx.IntegerField.superclass.setOptions.call(this,C);this.options.negative=B.isUndefined(C.negative)?false:C.negative;this.options.min=B.isUndefined(C.min)?(this.options.negative?-Infinity:0):parseInt(C.min,10);this.options.max=B.isUndefined(C.max)?Infinity:parseInt(C.max,10)},getValue:function(){if((this.options.typeInvite&&this.el.value==this.options.typeInvite)||this.el.value==""){return""}return parseInt(this.el.value,10)},validate:function(){var C=this.getValue();if(C===""){return !this.options.required}if(isNaN(C)){return false}return !!this.el.value.match(new RegExp(this.options.negative?"^[+-]?[0-9]*$":"^\\+?[0-9]*$"))&&C>=this.options.min&&C<=this.options.max}});inputEx.registerType("integer",inputEx.IntegerField,[{type:"boolean",label:"Accept negative",name:"negative",value:false}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.ListField=function(D){this.subFields=[];inputEx.ListField.superclass.constructor.call(this,D)};C.extend(inputEx.ListField,inputEx.Field,{setOptions:function(D){inputEx.ListField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:"inputEx-Field inputEx-ListField";this.options.sortable=C.isUndefined(D.sortable)?false:D.sortable;this.options.elementType=D.elementType||{type:"string"};this.options.useButtons=C.isUndefined(D.useButtons)?false:D.useButtons;this.options.unique=C.isUndefined(D.unique)?false:D.unique;this.options.listAddLabel=D.listAddLabel||inputEx.messages.listAddLink;this.options.listRemoveLabel=D.listRemoveLabel||inputEx.messages.listRemoveLink;this.options.maxItems=D.maxItems;this.options.minItems=D.minItems},renderComponent:function(){if(this.options.useButtons){this.addButton=inputEx.cn("img",{src:inputEx.spacerUrl,className:"inputEx-ListField-addButton"});this.fieldContainer.appendChild(this.addButton)}this.fieldContainer.appendChild(inputEx.cn("span",null,{marginLeft:"4px"},this.options.listLabel));this.childContainer=inputEx.cn("div",{className:"inputEx-ListField-childContainer"});this.fieldContainer.appendChild(this.childContainer);if(!this.options.useButtons){this.addButton=inputEx.cn("a",{className:"inputEx-List-link"},null,this.options.listAddLabel);this.fieldContainer.appendChild(this.addButton)}},initEvents:function(){A.addListener(this.addButton,"click",this.onAddButton,this,true)},validate:function(){var F=true;var J={};var D=this.subFields.length;if(C.isNumber(this.options.minItems)&&Dthis.options.maxItems){F=false}for(var G=0;G0){for(F=0;F=this.options.maxItems){return }var D=this.addElement();D.focus();this.fireUpdatedEvt()},renderSubField:function(K){var G=inputEx.cn("div"),E;if(this.options.useButtons){E=inputEx.cn("img",{src:inputEx.spacerUrl,className:"inputEx-ListField-delButton"});A.addListener(E,"click",this.onDelete,this,true);G.appendChild(E)}var J=C.merge({},this.options.elementType);if(C.isObject(J.inputParams)&&!C.isUndefined(K)){J.inputParams.value=K}else{if(!C.isUndefined(K)){J.value=K}}var H=inputEx(J,this);var F=H.getEl();B.setStyle(F,"margin-left","4px");B.setStyle(F,"float","left");G.appendChild(F);H.updatedEvt.subscribe(this.onChange,this,true);if(this.options.sortable){var I=inputEx.cn("div",{className:"inputEx-ListField-Arrow inputEx-ListField-ArrowUp"});A.addListener(I,"click",this.onArrowUp,this,true);var D=inputEx.cn("div",{className:"inputEx-ListField-Arrow inputEx-ListField-ArrowDown"});A.addListener(D,"click",this.onArrowDown,this,true);G.appendChild(I);G.appendChild(D)}if(!this.options.useButtons){E=inputEx.cn("a",{className:"inputEx-List-link"},null,this.options.listRemoveLabel);A.addListener(E,"click",this.onDelete,this,true);G.appendChild(E)}G.appendChild(inputEx.cn("div",null,{clear:"both"}));this.childContainer.appendChild(G);return H},onArrowUp:function(J){var G=A.getTarget(J).parentNode;var E=null;var F=-1;for(var H=1;H=this.options.min&&C<=this.options.max}});inputEx.registerType("number",inputEx.NumberField,[])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.PasswordField=function(C){inputEx.PasswordField.superclass.constructor.call(this,C)};inputEx.PasswordField.byId={};B.extend(inputEx.PasswordField,inputEx.StringField,{setOptions:function(C){inputEx.PasswordField.superclass.setOptions.call(this,C);this.options.className=C.className?C.className:"inputEx-Field inputEx-PasswordField";this.options.regexp=C.regexp||inputEx.regexps.password;this.options.strengthIndicator=YAHOO.lang.isUndefined(C.strengthIndicator)?false:C.strengthIndicator;this.options.capsLockWarning=YAHOO.lang.isUndefined(C.capsLockWarning)?false:C.capsLockWarning;inputEx.PasswordField.byId[C.id]=this;var D;if(C.confirm&&(D=inputEx.PasswordField.byId[C.confirm])){this.setConfirmationField(D)}},renderComponent:function(){this.wrapEl=inputEx.cn("div",{className:"inputEx-StringField-wrapper"});var C={};C.type="password";C.size=this.options.size;if(this.options.name){C.name=this.options.name}this.el=inputEx.cn("input",C);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl);if(this.options.capsLockWarning){this.capsLockWarning=inputEx.cn("div",{className:"capsLockWarning"},{display:"none"},inputEx.messages.capslockWarning);this.wrapEl.appendChild(this.capsLockWarning)}if(this.options.strengthIndicator){this.strengthEl=inputEx.cn("div",{className:"inputEx-Password-StrengthIndicator"},null,inputEx.messages.passwordStrength);this.strengthBlocks=[];for(var D=0;D<4;D++){this.strengthBlocks[D]=inputEx.cn("div",{className:"inputEx-Password-StrengthIndicatorBlock"});this.strengthEl.appendChild(this.strengthBlocks[D])}this.wrapEl.appendChild(this.strengthEl)}},setConfirmationField:function(C){this.options.confirmPasswordField=C;this.options.messages.invalid=inputEx.messages.invalidPasswordConfirmation;this.options.confirmPasswordField.options.confirmationPasswordField=this},validate:function(){if(this.options.confirmPasswordField){if(this.options.confirmPasswordField.getValue()!=this.getValue()){return false}}return inputEx.PasswordField.superclass.validate.call(this)},getStateString:function(C){if(C==inputEx.stateInvalid&&this.options.minLength&&this.el.value.length=65&&H<=90)&&!E)||((H>=97&&H<=122)&&E);this.setCapsLockWarning(C)}},onKeyUp:function(C){inputEx.PasswordField.superclass.onKeyUp.call(this,C);if(this.options.strengthIndicator){B.later(0,this,this.updateStrengthIndicator)}},setCapsLockWarning:function(C){this.capsLockWarning.style.display=C?"":"none"},updateStrengthIndicator:function(){var E=inputEx.PasswordField.getPasswordStrength(this.getValue());for(var D=0;D<4;D++){var C=(E>=D*25)&&(E>0);YAHOO.util.Dom.setStyle(this.strengthBlocks[D],"background-color",C?"#4AE817":"#FFFFFF")}}});inputEx.PasswordField.getPasswordStrength=function(J){var F=(J.length);if(F>7){F=7}var H=J.replace(/[0-9]/g,"");var I=(J.length-H.length);if(I>3){I=3}var C=J.replace(/\W/g,"");var E=(J.length-C.length);if(E>3){E=3}var D=J.replace(/[A-Z]/g,"");var K=(J.length-D.length);if(K>3){K=3}var G=((F*10)-20)+(I*10)+(E*20)+(K*10);if(G<0){G=0}if(G>100){G=100}return G};inputEx.messages.invalidPassword=["The password schould contain at least "," numbers or characters"];inputEx.messages.invalidPasswordConfirmation="Passwords are different !";inputEx.messages.capslockWarning="Warning: CapsLock is on";inputEx.messages.passwordStrength="Password Strength";inputEx.registerType("password",inputEx.PasswordField,[{type:"boolean",label:"Strength indicator",name:"strengthIndicator",value:false},{type:"boolean",label:"CapsLock warning",name:"capsLockWarning",value:false}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.RadioField=function(D){inputEx.RadioField.superclass.constructor.call(this,D);if(YAHOO.env.ua.ie&&!C.isUndefined(this.options.value)){var E=this;setTimeout(function(){E.setValue(E.options.value,false)},0)}};C.extend(inputEx.RadioField,inputEx.Field,{setOptions:function(D){inputEx.RadioField.superclass.setOptions.call(this,D);if(C.isUndefined(D.allowAny)||D.allowAny===false){this.options.allowAny=false}else{this.options.allowAny={};if(C.isArray(D.allowAny.separators)){this.options.allowAny.separators=D.allowAny.separators}this.options.allowAny.validator=(C.isFunction(D.allowAny.validator))?D.allowAny.validator:function(E){return true};this.options.allowAny.value=(!C.isUndefined(D.allowAny.value))?D.allowAny.value:""}this.options.choices=D.choices;this.options.values=C.isArray(D.values)?D.values:D.choices;this.options.display=D.display==="vertically"?"vertically":"inline";this.options.className=D.className?D.className:"inputEx-Field inputEx-RadioField";if(this.options.display==="vertically"){this.options.className+=" inputEx-RadioField-Vertically"}},renderComponent:function(){var I,G;this.optionEls=[];for(var H=0;H")}else{this.radioAny=inputEx.cn("input",{type:"radio",name:this.options.name})}I.appendChild(this.radioAny);this.anyField=new inputEx.StringField({value:this.options.allowAny.value});this.anyField.disable();B.setStyle(this.radioAny,"float","left");B.setStyle(this.anyField.getEl(),"float","left");if(YAHOO.env.ua.gecko>=1.91){B.setStyle(this.radioAny,"marginTop","0.2em")}if(this.options.allowAny.separators){G=inputEx.cn("div",null,{margin:"3px"},this.options.allowAny.separators[0]||"");B.setStyle(G,"float","left");I.appendChild(G)}I.appendChild(this.anyField.getEl());if(this.options.allowAny.separators){G=inputEx.cn("div",null,{margin:"3px"},this.options.allowAny.separators[1]||"");B.setStyle(G,"float","left");I.appendChild(G)}this.fieldContainer.appendChild(I);this.optionEls.push(this.radioAny)}},initEvents:function(){A.addListener(this.optionEls,"change",this.onChange,this,true);A.addFocusListener(this.optionEls,this.onFocus,this,true);A.addBlurListener(this.optionEls,this.onBlur,this,true);if(YAHOO.env.ua.ie){A.addListener(this.optionEls,"click",function(){YAHOO.lang.later(10,this,this.fireUpdatedEvt)},this,true)}if(this.anyField){this.anyField.updatedEvt.subscribe(function(D){inputEx.RadioField.superclass.onChange.call(this,D)},this,true);A.addBlurListener(this.anyField.el,this.onBlur,this,true)}},onChange:function(D){if(this.radioAny){if(this.radioAny==A.getTarget(D)){this.anyField.enable();C.later(50,this.anyField,"focus")}else{this.anyField.disable()}}if(!YAHOO.env.ua.ie){inputEx.RadioField.superclass.onChange.call(this,D)}},getValue:function(){for(var D=0;D][\s\S]*-->/gi,"");H=H.replace(/<\/?meta[^>]*>/gi,"");H=H.replace(/<\/?link[^>]*>/gi,"");H=H.replace(/ class=('|")?MsoNormal('|")?/gi,"");H=YAHOO.lang.trim(H);return H}},setValue:function(C,B){if(this.editor){var D=this.el.id+"_editor";if(!YAHOO.util.Dom.get(D)){this.el.value=C}else{this.editor.setEditorHTML(C)}}if(B!==false){this.fireUpdatedEvt()}},getValue:function(){var C;try{C=this.editor.saveHTML();return C}catch(B){return null}}});inputEx.registerType("html",inputEx.RTEField,[])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.SelectField=function(C){inputEx.SelectField.superclass.constructor.call(this,C)};B.extend(inputEx.SelectField,inputEx.Field,{setOptions:function(C){inputEx.SelectField.superclass.setOptions.call(this,C);this.options.multiple=B.isUndefined(C.multiple)?false:C.multiple;this.options.selectValues=[];this.options.selectOptions=[];for(var D=0,E=C.selectValues.length;D=0&&D.position<=C){C=parseInt(D.position,10)}else{if(B.isString(D.before)){for(E=0;E=0&&E.position<=G){D=parseInt(E.position,10)}else{if(B.isString(E.option)){for(F=0;Fthis.options.maxLength){return inputEx.messages.stringTooLong[0]+this.options.maxLength+inputEx.messages.stringTooLong[1]}}return inputEx.Textarea.superclass.getStateString.call(this,B)},insert:function(E){var D,C,B;if(document.selection){this.el.focus();D=document.selection.createRange();D.text=E}else{if(this.el.selectionStart||this.el.selectionStart=="0"){C=this.el.selectionStart;B=this.el.selectionEnd;this.el.value=this.el.value.substring(0,C)+E+this.el.value.substring(B,this.el.value.length)}else{this.el.value+=E}}}});inputEx.messages.stringTooLong=["This field should contain at most "," numbers or characters"];inputEx.registerType("text",inputEx.Textarea,[{type:"integer",label:"Rows",name:"rows",value:6},{type:"integer",label:"Cols",name:"cols",value:23}])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.TimeField=function(D){var H=[],F,C=[],E=[],G;for(F=0;F<24;F++){G="";if(F<10){G="0"}G+=F;H.push(G)}for(F=0;F<60;F++){G="";if(F<10){G="0"}G+=F;C.push(G);E.push(G)}D.fields=[{type:"select",selectOptions:H,selectValues:H},{type:"select",selectOptions:C,selectValues:C},{type:"select",selectOptions:E,selectValues:E}];D.separators=D.separators||[false,":",":",false];inputEx.TimeField.superclass.constructor.call(this,D)};B.extend(inputEx.TimeField,inputEx.CombineField,{getValue:function(){var C=inputEx.TimeField.superclass.getValue.call(this);return C.join(":")},setValue:function(D,C){inputEx.TimeField.superclass.setValue.call(this,D.split(":"),C)}});inputEx.registerType("time",inputEx.TimeField)})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.DateTimeField=function(C){C.fields=[{type:"datepicker"},{type:"time"}];if(C.dateFormat){C.fields[0].dateFormat=C.dateFormat}C.separators=C.separators||[false,"  ",false];inputEx.DateTimeField.superclass.constructor.call(this,C)};B.extend(inputEx.DateTimeField,inputEx.CombineField,{getValue:function(){var D=this.inputs[0].getValue();if(D==""){return null}var C=this.inputs[1].getValue().split(":");D.setHours(C[0]);D.setMinutes(C[1]);D.setSeconds(C[2]);return D},setValue:function(H,D){if(!B.isObject(H)){return }var F=H.getHours();var C=H.getMinutes();var E=H.getSeconds();var G=([(F<10?"0":"")+F,(C<10?"0":"")+C,(E<10?"0":"")+E]).join(":");inputEx.DateTimeField.superclass.setValue.call(this,[H,G],D)}});inputEx.registerType("datetime",inputEx.DateTimeField)})();(function(){inputEx.UneditableField=function(A){inputEx.UneditableField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.UneditableField,inputEx.Field,{setOptions:function(A){inputEx.UneditableField.superclass.setOptions.call(this,A);this.options.visu=A.visu},setValue:function(B,A){this.value=B;inputEx.renderVisu(this.options.visu,B,this.fieldContainer);inputEx.UneditableField.superclass.setValue.call(this,B,A)},getValue:function(){return this.value}});inputEx.registerType("uneditable",inputEx.UneditableField)})();(function(){var A=YAHOO.lang;inputEx.UrlField=function(B){inputEx.UrlField.superclass.constructor.call(this,B)};A.extend(inputEx.UrlField,inputEx.StringField,{setOptions:function(B){inputEx.UrlField.superclass.setOptions.call(this,B);this.options.className=B.className?B.className:"inputEx-Field inputEx-UrlField";this.options.messages.invalid=inputEx.messages.invalidUrl;this.options.favicon=A.isUndefined(B.favicon)?(("https:"==document.location.protocol)?false:true):B.favicon;this.options.size=B.size||50;this.options.regexp=inputEx.regexps.url},render:function(){inputEx.UrlField.superclass.render.call(this);this.el.size=this.options.size;if(!this.options.favicon){YAHOO.util.Dom.addClass(this.el,"nofavicon")}if(this.options.favicon){this.favicon=inputEx.cn("img",{src:inputEx.spacerUrl});this.fieldContainer.insertBefore(this.favicon,this.fieldContainer.childNodes[0]);YAHOO.util.Event.addListener(this.favicon,"click",function(){this.focus()},this,true)}},setClassFromState:function(){inputEx.UrlField.superclass.setClassFromState.call(this);if(this.options.favicon){this.updateFavicon((this.previousState==inputEx.stateValid)?this.getValue():null)}},updateFavicon:function(C){var B=C?C.match(/https?:\/\/[^\/]*/)+"/favicon.ico":inputEx.spacerUrl;if(B!=this.favicon.src){inputEx.sn(this.favicon,null,{visibility:"hidden"});this.favicon.src=B;if(this.timer){clearTimeout(this.timer)}var D=this;this.timer=setTimeout(function(){D.displayFavicon()},1000)}},displayFavicon:function(){inputEx.sn(this.favicon,null,{visibility:(this.favicon.naturalWidth!=0)?"visible":"hidden"})}});inputEx.messages.invalidUrl="Invalid URL, ex: http://www.test.com";inputEx.registerType("url",inputEx.UrlField,[{type:"boolean",label:"Display favicon",name:"favicon",value:true}])})();(function(){var B=YAHOO.util.DragDropMgr,C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;inputEx.widget.DDListItem=function(E){inputEx.widget.DDListItem.superclass.constructor.call(this,E);this.setXConstraint(0,0);this.goingUp=false;this.lastY=0};YAHOO.extend(inputEx.widget.DDListItem,YAHOO.util.DDProxy,{startDrag:function(F,H){var E=this.getDragEl();var G=this.getEl();C.setStyle(G,"visibility","hidden");this._originalIndex=inputEx.indexOf(G,G.parentNode.childNodes);E.className=G.className;E.innerHTML=G.innerHTML},endDrag:function(F){C.setStyle(this.id,"visibility","");var G=this.getEl();var E=inputEx.indexOf(G,G.parentNode.childNodes);if(this._originalIndex!=E){this._list.onReordered(this._originalIndex,E)}},onDragDrop:function(I,J){if(B.interactionInfo.drop.length===1){var H=B.interactionInfo.point;var G=B.interactionInfo.sourceRegion;if(!G.intersect(H)){var E=C.get(J);if(E.nodeName.toLowerCase()!="li"){var F=B.getDDById(J);E.appendChild(this.getEl());F.isEmpty=false;B.refreshCache()}}}},onDrag:function(E){var F=A.getPageY(E);if(Fthis.lastY){this.goingUp=false}}this.lastY=F},onDragOver:function(I,J){var G=this.getEl();var F=C.get(J);if(F.nodeName.toLowerCase()=="li"){var E=G.parentNode;var H=F.parentNode;if(this.goingUp){H.insertBefore(G,F)}else{H.insertBefore(G,F.nextSibling)}B.refreshCache()}}});inputEx.widget.DDList=function(E){this.ul=inputEx.cn("ul");this.items=[];this.setOptions(E);this.itemRemovedEvt=new YAHOO.util.CustomEvent("itemRemoved",this);this.listReorderedEvt=new YAHOO.util.CustomEvent("listReordered",this);if(E.parentEl){if(D.isString(E.parentEl)){C.get(E.parentEl).appendChild(this.ul)}else{E.parentEl.appendChild(this.ul)}}};inputEx.widget.DDList.prototype={setOptions:function(E){this.options={};this.options.allowDelete=D.isUndefined(E.allowDelete)?true:E.allowDelete;if(E.id){this.ul.id=E.id}if(E.value){this.setValue(E.value)}},addItem:function(G){var E=inputEx.cn("li",{className:"inputEx-DDList-item"});E.appendChild(inputEx.cn("span",null,null,(typeof G=="object")?G.label:G));if(!!this.options.allowDelete){var H=inputEx.cn("a",null,null,"remove");E.appendChild(H);A.addListener(H,"click",function(K){var J=A.getTarget(K);var I=J.parentNode;this.removeItem(inputEx.indexOf(I,this.ul.childNodes))},this,true)}var F=new inputEx.widget.DDListItem(E);F._list=this;this.items.push((typeof G=="object")?G.value:G);this.ul.appendChild(E)},_removeItem:function(E){var F=this.items[E];this.ul.removeChild(this.ul.childNodes[E]);this.items[E]=null;this.items=inputEx.compactArray(this.items);return F},removeItem:function(E){var F=this._removeItem(E);this.itemRemovedEvt.fire(F)},onReordered:function(F,E){if(Fthis.options.maxValue){B=this.options.maxValue}var D=Math.floor(B-this.options.minValue)*100/this.options.maxValue;this.slider.setValue(D);inputEx.SliderField.superclass.setValue.call(this,E,C)},getValue:function(){var B=Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100);return B}});inputEx.registerType("slider",inputEx.SliderField,[{type:"integer",label:"Min. value",name:"minValue",value:0},{type:"integer",label:"Max. value",name:"maxValue",value:100}])})(); \ No newline at end of file diff --git a/lib/inputex/build/inputex.js b/lib/inputex/build/inputex.js index b66a0ef1..c95200fd 100644 --- a/lib/inputex/build/inputex.js +++ b/lib/inputex/build/inputex.js @@ -1,6 +1,6 @@ /* Distributed under the MIT License : -Visit http://javascript.neyric.com/inputex for more informations +Visit http://neyric.github.com/inputex for more informations Copyright (c) 2007-2010, Eric Abouaf @@ -34,19 +34,21 @@ THE SOFTWARE. /** * The inputEx method lets you create a field from the JSON definition: *
    - *    inputEx({type: 'string', inputParams: { name: 'company', label: 'Your company'} })
    + *    inputEx({type: 'string', name: 'company', label: 'Your company' })
      * 
    - * Build a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, inputParams: {} }
    - * The inputParams property is the object that will be passed as the options parameter to the field class constructor.
    + * Build a field from an object like: { type: 'color' or fieldClass: inputEx.ColorField, ... }
    * If the neither type or fieldClass are found, it uses inputEx.StringField * * @class inputEx * @static * @param {Object} fieldOptions + * @param {inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField} (optional) parentField The parent field instance * @return {inputEx.Field} Created field instance */ -inputEx = function(fieldOptions) { - var fieldClass = null; +inputEx = function(fieldOptions, parentField) { + var fieldClass = null, + inputInstance; + if(fieldOptions.type) { fieldClass = inputEx.getFieldClass(fieldOptions.type); if(fieldClass === null) fieldClass = inputEx.StringField; @@ -56,7 +58,20 @@ inputEx = function(fieldOptions) { } // Instanciate the field - var inputInstance = new fieldClass(fieldOptions.inputParams); + + // Retro-compatibility with deprecated inputParams Object + if (lang.isObject(fieldOptions.inputParams)) { + inputInstance = new fieldClass(fieldOptions.inputParams); + + // New prefered way to instanciate a field + } else { + inputInstance = new fieldClass(fieldOptions); + } + + // If the parentField argument is provided + if(parentField) { + inputInstance.setParentField(parentField); + } // Add the flatten attribute if present in the params /*if(fieldOptions.flatten) { @@ -68,7 +83,7 @@ inputEx = function(fieldOptions) { lang.augmentObject(inputEx, { - VERSION: "0.4.0", + VERSION: "0.5.0", /** * Url to the spacer image. This url schould be changed according to your project directories @@ -460,7 +475,9 @@ inputEx.JsonSchema = { inputExToSchema: function(inputExJson) { var t = inputExJson.type || "string", - ip = inputExJson.inputParams || {}; + // inputParams is here for retro-compatibility : TODO -> remove + // -> ip = inputExJson || {}; + ip = (lang.isObject(inputExJson.inputParams) ? inputExJson.inputParams : inputExJson) || {}; if(t == "group") { var ret = { @@ -472,7 +489,9 @@ inputEx.JsonSchema = { for(var i = 0 ; i < ip.fields.length ; i++) { var field = ip.fields[i]; - var fieldName = field.inputParams.name; + // inputParams is here for retro-compatibility : TODO -> remove + // -> var fieldName = field.name; + var fieldName = lang.isObject(field.inputParams) ? field.inputParams.name : field.name; ret.properties[fieldName] = inputEx.JsonSchema.inputExToSchema(field); } @@ -600,7 +619,7 @@ inputEx.JsonSchema.Builder = function(opts) { this.schemaToParamMap = options.schemaToParamMap || { 'title':'label', 'description':'description', - '_inputex':null // null value means copy child key/value pairs into inputParams directly + '_inputex':null // null value means copy child key/value pairs into field options directly }; /** @@ -609,7 +628,7 @@ inputEx.JsonSchema.Builder = function(opts) { this.referenceResolver = options.referenceResolver || null; /** - * options to be applied to inputParams unless already specified + * options to be applied unless already specified * @property defaultOptions */ this.defaultOptions = options.defaultOptions || {}; @@ -636,9 +655,9 @@ inputEx.JsonSchema.Builder.prototype = { */ schemaToInputEx:function(p, propertyName) { - var fieldDef = {inputParams: { label: propertyName, name: propertyName} }; + var fieldDef = { label: propertyName, name: propertyName }; var schemaMap = this.schemaToParamMap; - var referencedSchema = p["$ref"]; + var referencedSchema = p["$ref"]; var key; if(referencedSchema){ @@ -665,7 +684,7 @@ inputEx.JsonSchema.Builder.prototype = { } if(!p.optional) { - fieldDef.inputParams.required = true; + fieldDef.required = true; } for(key in schemaMap) { @@ -674,17 +693,17 @@ inputEx.JsonSchema.Builder.prototype = { var v = p[key]; if(!lang.isUndefined(v)) { if(paramName === null) { - // copy / merge values from v directly into inputParams + // copy / merge values from v directly into options if(lang.isObject(v)) { - // v must be an object, copy key/value pairs into inputParams + // v must be an object, copy key/value pairs into options for(var vkey in v) { if(v.hasOwnProperty(vkey)) { - fieldDef.inputParams[vkey] = v[vkey]; + fieldDef[vkey] = v[vkey]; } } } } else { - fieldDef.inputParams[paramName] = v; + fieldDef[paramName] = v; } } } @@ -711,30 +730,30 @@ inputEx.JsonSchema.Builder.prototype = { // default value if( !lang.isUndefined(p["default"]) ) { - fieldDef.inputParams.value = p["default"]; + fieldDef.value = p["default"]; } if(type == "array" ) { fieldDef.type = "list"; if(lang.isObject(p.items) && !lang.isArray(p.items)) { // when items is an object, it's a schema that describes each item in the list - fieldDef.inputParams.elementType = this.schemaToInputEx(p.items, propertyName); + fieldDef.elementType = this.schemaToInputEx(p.items, propertyName); } - if(p.minItems) { fieldDef.inputParams.minItems = p.minItems; } - if(p.maxItems) { fieldDef.inputParams.maxItems = p.maxItems; } + if(p.minItems) { fieldDef.minItems = p.minItems; } + if(p.maxItems) { fieldDef.maxItems = p.maxItems; } } else if(type == "object" ) { fieldDef.type = "group"; - if(p.title && lang.isUndefined(fieldDef.inputParams.legend)) { - fieldDef.inputParams.legend = p.title; + if(p.title && lang.isUndefined(fieldDef.legend)) { + fieldDef.legend = p.title; } - //fieldDef.inputParams = this.schemaToInputEx(p, propertyName); - //fieldDef.inputParams = this._parseSchemaProperty(p, propertyName); + //fieldDef = this.schemaToInputEx(p, propertyName); + //fieldDef = this._parseSchemaProperty(p, propertyName); var fields = []; if(propertyName) { - fieldDef.inputParams.name = propertyName; + fieldDef.name = propertyName; } for(key in p.properties) { @@ -743,43 +762,43 @@ inputEx.JsonSchema.Builder.prototype = { } } - fieldDef.inputParams.fields = fields; + fieldDef.fields = fields; } else if(type == "string" && (p["enum"] || p["options"]) ) { fieldDef.type = "select"; if(p.options) { - fieldDef.inputParams.selectOptions = []; - fieldDef.inputParams.selectValues = []; + fieldDef.selectOptions = []; + fieldDef.selectValues = []; for(var i = 0 ; i < p.options.length ; i++) { var o = p.options[i]; - fieldDef.inputParams.selectOptions[i] = o.label; - fieldDef.inputParams.selectValues[i] = o.value; + fieldDef.selectOptions[i] = o.label; + fieldDef.selectValues[i] = o.value; } } else { - fieldDef.inputParams.selectValues = p["enum"]; + fieldDef.selectValues = p["enum"]; } } else if(type == "string") { - if(!lang.isUndefined(p.pattern) && lang.isUndefined(fieldDef.inputParams.regexp)) { + if(!lang.isUndefined(p.pattern) && lang.isUndefined(fieldDef.regexp)) { if(lang.isString(p.pattern)) { - fieldDef.inputParams.regexp = new RegExp(p.pattern); + fieldDef.regexp = new RegExp(p.pattern); } else { - fieldDef.inputParams.regexp = p.pattern; + fieldDef.regexp = p.pattern; } } - if(!lang.isUndefined(p.maxLength) && lang.isUndefined(fieldDef.inputParams.maxLength)) { - fieldDef.inputParams.maxLength = p.maxLength; + if(!lang.isUndefined(p.maxLength) && lang.isUndefined(fieldDef.maxLength)) { + fieldDef.maxLength = p.maxLength; } - if(!lang.isUndefined(p.minLength) && lang.isUndefined(fieldDef.inputParams.minLength)) { - fieldDef.inputParams.minLength = p.minLength; + if(!lang.isUndefined(p.minLength) && lang.isUndefined(fieldDef.minLength)) { + fieldDef.minLength = p.minLength; } - if(!lang.isUndefined(p.readonly) && lang.isUndefined(fieldDef.inputParams.readonly)) { - fieldDef.inputParams.readonly = p.readonly; + if(!lang.isUndefined(p.readonly) && lang.isUndefined(fieldDef.readonly)) { + fieldDef.readonly = p.readonly; } // According to http://groups.google.com/group/json-schema/web/json-schema-possible-formats @@ -788,7 +807,7 @@ inputEx.JsonSchema.Builder.prototype = { fieldDef.type = "html"; } else if(p.format == "date") { fieldDef.type = "date"; - fieldDef.inputParams.tooltipIcon = true; + fieldDef.tooltipIcon = true; } else if(p.format == 'url') { fieldDef.type = 'url'; } else if(p.format == 'email') { @@ -812,8 +831,8 @@ inputEx.JsonSchema.Builder.prototype = { // Add the defaultOptions for(var kk in this.defaultOptions) { - if(this.defaultOptions.hasOwnProperty(kk) && lang.isUndefined(fieldDef.inputParams[kk])) { - fieldDef.inputParams[kk] = this.defaultOptions[kk]; + if(this.defaultOptions.hasOwnProperty(kk) && lang.isUndefined(fieldDef[kk])) { + fieldDef[kk] = this.defaultOptions[kk]; } } return fieldDef; @@ -832,8 +851,8 @@ inputEx.JsonSchema.Builder.prototype = { // Set the default value of each property to the instance value for(var i = 0 ; i < formDef.fields.length ; i++) { - var fieldName = formDef.fields[i].inputParams.name; - formDef.fields[i].inputParams.value = instanceObject[fieldName]; + var fieldName = formDef.fields[i].name; + formDef.fields[i].value = instanceObject[fieldName]; } return formDef; @@ -901,7 +920,7 @@ inputEx.Field.prototype = { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { @@ -1152,13 +1171,14 @@ inputEx.Field.prototype = { // Unsubscribe all listeners on the updatedEvt this.updatedEvt.unsubscribeAll(); + // Purge element (remove listeners on el and childNodes recursively) + util.Event.purgeElement(el, true); + // Remove from DOM if(Dom.inDocument(el)) { el.parentNode.removeChild(el); } - // recursively purge element - util.Event.purgeElement(el, true); }, /** @@ -1204,16 +1224,33 @@ inputEx.Field.prototype = { */ isEmpty: function() { return this.getValue() === ''; - } + }, + + /** + * Set the parentField. + * Generally use by composable fields (ie. Group,Form,ListField,CombineField,...} + * @param {inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField} parentField The parent field instance + */ + setParentField: function(parentField) { + this.parentField = parentField; + }, + + /** + * Return the parent field instance + * @return {inputEx.Group|inputEx.Form|inputEx.ListField|inputEx.CombineField} + */ + getParentField: function() { + return this.parentField; + } }; inputEx.Field.groupOptions = [ - { type: "string", inputParams:{label: "Label", name: "label", value: ''} }, - { type: "string", inputParams:{label: "Name", name: "name", value: ''} }, - { type: "string", inputParams: {label: "Description",name: "description", value: ''} }, - { type: "boolean", inputParams: {label: "Required?",name: "required", value: false} }, - { type: "boolean", inputParams: {label: "Show messages",name: "showMsg", value: false} } + { type: "string", label: "Label", name: "label", value: '' }, + { type: "string", label: "Name", name: "name", value: '' }, + { type: "string", label: "Description",name: "description", value: '' }, + { type: "boolean", label: "Required?",name: "required", value: false }, + { type: "boolean", label: "Show messages",name: "showMsg", value: false } ]; })();(function() { @@ -1227,7 +1264,7 @@ inputEx.Field.groupOptions = [ * @constructor * @param {Object} options The following options are added for Groups and subclasses: *
      - *
    • fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, inputParams: {inputparams object} }
    • + *
    • fields: Array of input fields declared like { label: 'Enter the value:' , type: 'text' or fieldClass: inputEx.Field, optional: true/false, ... }
    • *
    • legend: The legend for the fieldset (default is an empty string)
    • *
    • collapsible: Boolean to make the group collapsible (default is false)
    • *
    • collapsed: If collapsible only, will be collapsed at creation (default is false)
    • @@ -1246,29 +1283,20 @@ lang.extend(inputEx.Group, inputEx.Field, { /** * Adds some options: legend, collapsible, fields... - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { - - this.options = {}; - + + inputEx.Group.superclass.setOptions.call(this, options); + this.options.className = options.className || 'inputEx-Group'; this.options.fields = options.fields; - this.options.id = options.id; - - this.options.name = options.name; - - this.options.value = options.value; - this.options.flatten = options.flatten; this.options.legend = options.legend || ''; - // leave this for compatibility reasons - this.inputConfigs = options.fields; - this.options.collapsible = lang.isUndefined(options.collapsible) ? false : options.collapsible; this.options.collapsed = lang.isUndefined(options.collapsed) ? false : options.collapsed; @@ -1292,7 +1320,7 @@ lang.extend(inputEx.Group, inputEx.Field, { this.divEl.id = this.options.id; } - this.renderFields(this.divEl); + this.renderFields(this.divEl); if(this.options.disabled) { this.disable(); @@ -1316,7 +1344,7 @@ lang.extend(inputEx.Group, inputEx.Field, { } if(!lang.isUndefined(this.options.legend) && this.options.legend !== ''){ - this.legend.appendChild( document.createTextNode(" "+this.options.legend) ); + this.legend.appendChild( inputEx.cn("span", null, null, " "+this.options.legend) ); } if( this.options.collapsible || (!lang.isUndefined(this.options.legend) && this.options.legend !== '') ) { @@ -1353,7 +1381,7 @@ lang.extend(inputEx.Group, inputEx.Field, { renderField: function(fieldOptions) { // Instanciate the field - var fieldInstance = inputEx(fieldOptions); + var fieldInstance = inputEx(fieldOptions,this); this.inputs.push(fieldInstance); @@ -1412,6 +1440,38 @@ lang.extend(inputEx.Group, inputEx.Field, { } return response; }, + + /** + * Alternative method to validate for advanced error handling + * @returns {Object} with all Forms's fields state, error message + * and validate containing a boolean for the global Form validation + */ + getFieldsStates: function() { + var input, inputName, state, message, + returnedObj = { fields:{}, validate:true }; + + // Loop on all the sub fields + for (var i = 0 ; i < this.inputs.length ; i++) { + + input = this.inputs[i]; + inputName = input.options.name; + state = input.getState(); + message = input.getStateString(state); + + returnedObj.fields[inputName] = {}; + returnedObj.fields[inputName].valid = true; + returnedObj.fields[inputName].message = message; + + // check if subfield validates + if( state == inputEx.stateRequired || state == inputEx.stateInvalid ) { + returnedObj.fields[inputName].valid = false; + returnedObj.validate = false; + } + + } + + return returnedObj; + }, /** * Enable all fields in the group @@ -1623,7 +1683,26 @@ lang.extend(inputEx.Group, inputEx.Field, { } } } - } + }, + + + /** + * Purge all event listeners and remove the component from the dom + */ + destroy: function() { + + var i, length, field; + + // Recursively destroy inputs + for (i = 0, length = this.inputs.length ; i < length ; i++) { + field = this.inputs[i]; + field.destroy(); + } + + // Destroy group itself + inputEx.Group.superclass.destroy.call(this); + + } }); @@ -1631,16 +1710,190 @@ lang.extend(inputEx.Group, inputEx.Field, { // Register this class as "group" type inputEx.registerType("group", inputEx.Group, [ - { type: "string", inputParams:{label: "Name", name: "name", value: ''} }, - { type: 'string', inputParams: { label: 'Legend', name:'legend'}}, - { type: 'boolean', inputParams: {label: 'Collapsible', name:'collapsible', value: false}}, - { type: 'boolean', inputParams: {label: 'Collapsed', name:'collapsed', value: false}}, - { type: 'list', inputParams:{ label: 'Fields', name: 'fields', elementType: {type: 'type' } } } + { type: "string", label: "Name", name: "name", value: '' }, + { type: 'string', label: 'Legend', name:'legend'}, + { type: 'boolean', label: 'Collapsible', name:'collapsible', value: false}, + { type: 'boolean', label: 'Collapsed', name:'collapsed', value: false}, + { type: 'list', label: 'Fields', name: 'fields', elementType: {type: 'type' } } ], true); })();(function () { - var util = YAHOO.util, lang = YAHOO.lang, Event = YAHOO.util.Event, Dom = util.Dom; + var util = YAHOO.util, lang = YAHOO.lang, Event = util.Event, Dom = util.Dom; + +/** + * Create a button + * @class inputEx.widget.Button + * @constructor + * @param {Object} options The following options are available for Button : + *
        + *
      + */ + +inputEx.widget.Button = function(options) { + + this.setOptions(options || {}); + + if (!!this.options.parentEl) { + this.render(this.options.parentEl); + } + +}; + + +lang.augmentObject(inputEx.widget.Button.prototype,{ + + + setOptions: function(options) { + + this.options = {}; + this.options.id = lang.isString(options.id) ? options.id : Dom.generateId(); + this.options.className = options.className || "inputEx-Button"; + this.options.parentEl = lang.isString(options.parentEl) ? Dom.get(options.parentEl) : options.parentEl; + + // default type === "submit" + this.options.type = (options.type === "link" || options.type === "submit-link") ? options.type : "submit"; + + // value is the text displayed inside the button ( convention...) + this.options.value = options.value; + + this.options.disabled = !!options.disabled; + + if (lang.isFunction(options.onClick)) { + this.options.onClick = {fn: options.onClick, scope:this}; + + } else if (lang.isObject(options.onClick)) { + this.options.onClick = {fn: options.onClick.fn, scope: options.onClick.scope || this}; + } + + }, + + + render: function(parentEl) { + + var innerSpan; + + if (this.options.type === "link" || this.options.type === "submit-link") { + + this.el = inputEx.cn('a', {className: this.options.className, id:this.options.id, href:"#"}); + Dom.addClass(this.el,this.options.type === "link" ? "inputEx-Button-Link" : "inputEx-Button-Submit-Link"); + + innerSpan = inputEx.cn('span', null, null, this.options.value); + + this.el.appendChild(innerSpan); + + // default type is "submit" input + } else { + + this.el = inputEx.cn('input', {type: "submit", value: this.options.value, className: this.options.className, id:this.options.id}); + Dom.addClass(this.el,"inputEx-Button-Submit"); + } + + parentEl.appendChild(this.el); + + if (this.options.disabled) { + this.disable(); + } + + this.initEvents(); + + return this.el; + }, + + + initEvents: function() { + + this.clickEvent = new util.CustomEvent("click"); + this.submitEvent = new util.CustomEvent("submit"); + + + Event.addListener(this.el,"click",function(e) { + + var fireSubmitEvent; + + // stop click event, so : + // + // 1. buttons of 'link' or 'submit-link' type don't link to any url + // 2. buttons of 'submit' type () don't fire a 'submit' event + Event.stopEvent(e); + + // button disabled : don't fire clickEvent, and stop here + if (this.disabled) { + fireSubmitEvent = false; + + // button enabled : fire clickEvent + } else { + // submit event will be fired if not prevented by clickEvent + fireSubmitEvent = this.clickEvent.fire(); + } + + // link buttons should NOT fire a submit event + if (this.options.type === "link") { + fireSubmitEvent = false; + } + + if (fireSubmitEvent) { + this.submitEvent.fire(); + } + + },this,true); + + // Subscribe onClick handler + if (this.options.onClick) { + this.clickEvent.subscribe(this.options.onClick.fn,this.options.onClick.scope,true); + } + + }, + + + disable: function() { + + this.disabled = true; + + Dom.addClass(this.el,"inputEx-Button-disabled"); + + if (this.options.type === "submit") { + this.el.disabled = true; + } + }, + + + enable: function() { + + this.disabled = false; + + Dom.removeClass(this.el,"inputEx-Button-disabled"); + + if (this.options.type === "submit") { + this.el.disabled = false; + } + }, + + + /** + * Purge all event listeners and remove the component from the dom + */ + destroy: function() { + + // Unsubscribe all listeners to click and submit events + this.clickEvent.unsubscribeAll(); + this.submitEvent.unsubscribeAll(); + + // Purge element (remove listeners on el and childNodes recursively) + util.Event.purgeElement(this.el, true); + + // Remove from DOM + if(Dom.inDocument(this.el)) { + this.el.parentNode.removeChild(this.el); + } + + } + + +}); + +})();(function () { + var util = YAHOO.util, lang = YAHOO.lang, Event = util.Event, Dom = util.Dom; /** * Create a group of fields within a FORM tag and adds buttons @@ -1662,7 +1915,7 @@ lang.extend(inputEx.Form, inputEx.Group, { /** * Adds buttons and set ajax default parameters - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.Form.superclass.setOptions.call(this, options); @@ -1675,7 +1928,7 @@ lang.extend(inputEx.Form, inputEx.Group, { this.options.method = options.method; this.options.className = options.className || 'inputEx-Group'; - this.options.autocomplete = lang.isUndefined(options.autocomplete) ? true : options.autocomplete; + this.options.autocomplete = (options.autocomplete === false || options.autocomplete === "off") ? false : true; this.options.enctype = options.enctype; @@ -1738,25 +1991,30 @@ lang.extend(inputEx.Form, inputEx.Group, { * Render the buttons */ renderButtons: function() { - + + var buttonConf, button, i, buttonsNb = this.options.buttons.length; + this.buttonDiv = inputEx.cn('div', {className: 'inputEx-Form-buttonBar'}); - var button, buttonEl; - for(var i = 0 ; i < this.options.buttons.length ; i++ ) { - button = this.options.buttons[i]; - - // Throw Error if button is undefined - if(!button) { - throw new Error("inputEx.Form: One of the provided button is undefined ! (check trailing comma)"); - } - - buttonEl = inputEx.cn('input', {type: button.type, value: button.value, name: button.name}); - if( button.onClick ) { buttonEl.onclick = button.onClick; } - this.buttons.push(buttonEl); - this.buttonDiv.appendChild(buttonEl); - } - - this.form.appendChild(this.buttonDiv); + for(i = 0 ; i < buttonsNb ; i++ ) { + buttonConf = this.options.buttons[i]; + + // Throw Error if button is undefined + if(!buttonConf) { + throw new Error("inputEx.Form: One of the provided button is undefined ! (check trailing comma)"); + } + + button = new inputEx.widget.Button(buttonConf); + button.render(this.buttonDiv); + + this.buttons.push(button); + + } + + // useful for link buttons re-styling (float required on 's ... ) + this.buttonDiv.appendChild(inputEx.cn('div',null,{clear:'both'})); + + this.form.appendChild(this.buttonDiv); }, @@ -1764,10 +2022,44 @@ lang.extend(inputEx.Form, inputEx.Group, { * Init the events */ initEvents: function() { + + var i, length; + inputEx.Form.superclass.initEvents.call(this); - - // Handle the submit event - Event.addListener(this.form, 'submit', this.options.onSubmit || this.onSubmit,this,true); + + + // Custom event to normalize form submits + this.submitEvent = new util.CustomEvent("submit"); + + + // Two ways to trigger the form submitEvent firing + // + // + // 1. catch a 'submit' event on form (say a user pressed in a field) + // + Event.addListener(this.form, 'submit', function(e) { + + // always stop event + Event.stopEvent(e); + + // replace with custom event + this.submitEvent.fire(); + + },this,true); + + + // + // 2. click on a 'submit' or 'submit-link' button + // + for(i=0, length=this.buttons.length; i - *
    • datasource: the datasource
    • - *
    • autoComp: autocompleter options
    • + *
    • datasource: the datasource
    • + *
    • autoComp: autocompleter options
    • *
    • returnValue: function to format the returned value (optional)
    • *
    */ inputEx.AutoComplete = function(options) { inputEx.AutoComplete.superclass.constructor.call(this, options); + }; lang.extend(inputEx.AutoComplete, inputEx.StringField, { /** * Adds autocomplete options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.AutoComplete.superclass.setOptions.call(this, options); - + // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-AutoComplete'; @@ -2416,6 +2743,8 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { this.options.datasource = options.datasource; this.options.autoComp = options.autoComp; this.options.returnValue = options.returnValue; + this.options.generateRequest = options.generateRequest; + this.options.datasourceParameters = options.datasourceParameters; }, /** @@ -2425,11 +2754,10 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { *
  • listener to autocompleter textboxBlurEvent added in buildAutocomplete method
  • * */ - initEvents: function() { - inputEx.AutoComplete.superclass.initEvents.call(this); - - // remove standard blur listener - Event.removeBlurListener(this.el, this.onBlur); + initEvents: function() { + inputEx.AutoComplete.superclass.initEvents.call(this); + + // remove standard blur listener }, /** @@ -2448,7 +2776,7 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { if(this.options.size) attributes.size = this.options.size; if(this.options.readonly) attributes.readonly = 'readonly'; if(this.options.maxLength) attributes.maxLength = this.options.maxLength; - + // Create the node this.el = inputEx.cn('input', attributes); @@ -2480,10 +2808,22 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { if(!this._nElementsReady) { this._nElementsReady = 0; } this._nElementsReady++; if(this._nElementsReady != 2) return; + + if(!lang.isUndefined(this.options.datasourceParameters)) + { + for (param in this.options.datasourceParameters) + { + this.options.datasource[param] = this.options.datasourceParameters[param]; + } + } + // Instantiate AutoComplete this.oAutoComp = new YAHOO.widget.AutoComplete(this.el.id, this.listEl.id, this.options.datasource, this.options.autoComp); - + if(!lang.isUndefined(this.options.generateRequest)) + { + this.oAutoComp.generateRequest = this.options.generateRequest; + } // subscribe to the itemSelect event this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler, this, true); @@ -2500,24 +2840,31 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { * @param {} aArgs */ itemSelectHandler: function(sType, aArgs) { - var aData = aArgs[2]; - this.setValue( this.options.returnValue ? this.options.returnValue(aData) : aData[0] ); + var aData = aArgs[2]; + this.setValue( this.options.returnValue ? this.options.returnValue(aData) : aData[0] ); }, - + + onBlur: function(e){ + if (this.hiddenEl.value != this.el.value && this.el.value != this.options.typeInvite) this.el.value = this.hiddenEl.value; + if(this.el.value == '' && this.options.typeInvite) { + Dom.addClass(this.divEl, "inputEx-typeInvite"); + if (this.el.value == '') this.el.value = this.options.typeInvite; + } +}, /** * onChange event handler * @param {Event} e The original 'change' event */ - onChange: function(e) { - this.setClassFromState(); - - // Clear the field when no value + onChange: function(e) { + this.setClassFromState(); + // Clear the field when no value + if (this.hiddenEl.value != this.el.value) this.hiddenEl.value = this.el.value; lang.later(50, this, function() { if(this.el.value == "") { this.setValue(""); } }); - }, + }, /** * Set the value @@ -2525,17 +2872,16 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(value, sendUpdatedEvt) { - this.hiddenEl.value = value || ""; - + this.el.value = value || ""; // "inherited" from inputex.Field : // (can't inherit of inputex.StringField because would set this.el.value...) // - // set corresponding style - this.setClassFromState(); - - if(sendUpdatedEvt !== false) { - // fire update event + // set corresponding style + this.setClassFromState(); + + if(sendUpdatedEvt !== false) { + // fire update event this.fireUpdatedEvt(); } }, @@ -2576,7 +2922,7 @@ lang.extend(inputEx.CheckBox, inputEx.Field, { /** * Adds the CheckBox specific options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.CheckBox.superclass.setOptions.call(this, options); @@ -2607,6 +2953,7 @@ lang.extend(inputEx.CheckBox, inputEx.Field, { this.fieldContainer.appendChild(this.rightLabelEl); // Keep state of checkbox in a hidden field (format : this.checkedValue or this.uncheckedValue) + // This is useful for non-javascript form submit (it allows custom checked/unchecked values to be submitted) this.hiddenEl = inputEx.cn('input', {type: 'hidden', name: this.options.name || '', value: this.uncheckedValue}); this.fieldContainer.appendChild(this.hiddenEl); }, @@ -2615,7 +2962,6 @@ lang.extend(inputEx.CheckBox, inputEx.Field, { * Clear the previous events and listen for the "change" event */ initEvents: function() { - Event.addListener(this.el, "change", this.onChange, this, true); // Awful Hack to work in IE6 and below (the checkbox doesn't fire the change event) // It seems IE 8 removed this behavior from IE7 so it only works with IE 7 ?? @@ -2623,7 +2969,9 @@ lang.extend(inputEx.CheckBox, inputEx.Field, { Event.addListener(this.el, "click", function() { this.fireUpdatedEvt(); }, this, true); }*/ if( YAHOO.env.ua.ie ) { - Event.addListener(this.el, "click", function() { YAHOO.lang.later(10,this,this.fireUpdatedEvt); }, this, true); + Event.addListener(this.el, "click", function(e) { YAHOO.lang.later(10,this,function(){this.onChange(e);}); }, this, true); + } else { + Event.addListener(this.el, "change", this.onChange, this, true); } Event.addFocusListener(this.el, this.onFocus, this, true); @@ -2637,10 +2985,7 @@ lang.extend(inputEx.CheckBox, inputEx.Field, { onChange: function(e) { this.hiddenEl.value = this.el.checked ? this.checkedValue : this.uncheckedValue; - // In IE the fireUpdatedEvent is sent by the click ! We need to send it only once ! - if( !YAHOO.env.ua.ie ) { - inputEx.CheckBox.superclass.onChange.call(this,e); - } + inputEx.CheckBox.superclass.onChange.call(this,e); }, /** @@ -2657,19 +3002,36 @@ lang.extend(inputEx.CheckBox, inputEx.Field, { * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(value, sendUpdatedEvt) { - if (value===this.checkedValue) { - this.hiddenEl.value = value; - this.el.setAttribute("checked","checked"); - this.el.setAttribute("defaultChecked","checked"); // for IE6 + if (value===this.checkedValue || (typeof(value) == 'string' && typeof(this.checkedValue) == 'boolean' && + value === String(this.checkedValue))) { + this.hiddenEl.value = this.checkedValue; + + // check checkbox (all browsers) + this.el.checked = true; + + // hacks for IE6, because input is not operational at init, + // so "this.el.checked = true" would work for default values ! + // (but still work for later setValue calls) + if (YAHOO.env.ua.ie === 6) { + this.el.setAttribute("defaultChecked","checked"); // for IE6 + } } - else { + else { // DEBUG : /*if (value!==this.uncheckedValue && lang.isObject(console) && lang.isFunction(console.log) ) { console.log("inputEx.CheckBox: value is *"+value+"*, schould be in ["+this.checkedValue+","+this.uncheckedValue+"]"); }*/ - this.hiddenEl.value = value; - this.el.removeAttribute("checked"); - this.el.removeAttribute("defaultChecked"); // for IE6 + this.hiddenEl.value = this.uncheckedValue; + + // uncheck checkbox (all browsers) + this.el.checked = false; + + // hacks for IE6, because input is not operational at init, + // so "this.el.checked = false" would work for default values ! + // (but still work for later setValue calls) + if (YAHOO.env.ua.ie === 6) { + this.el.removeAttribute("defaultChecked"); // for IE6 + } } // Call Field.setValue to set class and fire updated event @@ -2694,7 +3056,7 @@ lang.extend(inputEx.CheckBox, inputEx.Field, { // Register this class as "boolean" type inputEx.registerType("boolean", inputEx.CheckBox, [ - {type: 'string', inputParams: {label: 'Right Label', name: 'rightLabel'} } + {type: 'string', label: 'Right Label', name: 'rightLabel'} ]); })();(function() { @@ -2725,7 +3087,7 @@ lang.extend(inputEx.ColorField, inputEx.Field, { /** * Adds the 'inputEx-ColorField' default className - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.ColorField.superclass.setOptions.call(this, options); @@ -2994,7 +3356,7 @@ inputEx.DateField = function(options) { lang.extend(inputEx.DateField, inputEx.StringField, { /** * Adds the 'inputEx-DateField' default className - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.DateField.superclass.setOptions.call(this, options); @@ -3112,7 +3474,7 @@ inputEx.DateField.formatDate = function(d,format) { // Register this class as "date" type inputEx.registerType("date", inputEx.DateField, [ - {type: 'select', inputParams: {label: 'Date format', name: 'dateFormat', selectOptions: ["m/d/Y", "d/m/Y"], selectValues: ["m/d/Y", "d/m/Y"] } } + {type: 'select', label: 'Date format', name: 'dateFormat', selectOptions: ["m/d/Y", "d/m/Y"], selectValues: ["m/d/Y", "d/m/Y"] } ]); })();(function() { @@ -3136,13 +3498,13 @@ inputEx.DateSplitField = function(options) { options.fields = []; for(var i = 0 ; i < 3 ; i++) { if(i == this.dayIndex) { - options.fields.push({type: 'integer', inputParams: { typeInvite: inputEx.messages.dayTypeInvite, size: 2} }); + options.fields.push({type: 'integer', typeInvite: inputEx.messages.dayTypeInvite, size: 2 }); } else if(i == this.yearIndex) { - options.fields.push({type: 'integer', inputParams: { typeInvite: inputEx.messages.yearTypeInvite, size: 4} }); + options.fields.push({type: 'integer', typeInvite: inputEx.messages.yearTypeInvite, size: 4 }); } else { - options.fields.push({type: 'integer', inputParams: {typeInvite: inputEx.messages.monthTypeInvite, size: 2} }); + options.fields.push({type: 'integer', typeInvite: inputEx.messages.monthTypeInvite, size: 2 }); } } @@ -3286,14 +3648,15 @@ inputEx.DatePickerField = function(options) { lang.extend(inputEx.DatePickerField, inputEx.DateField, { /** * Set the default date picker CSS classes - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.DatePickerField.superclass.setOptions.call(this, options); - // Overwrite options + // Overwrite default options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField'; - this.options.readonly = true; + + this.options.readonly = YAHOO.lang.isUndefined(options.readonly) ? true : options.readonly; // Added options this.options.calendar = options.calendar || inputEx.messages.defautCalendarOpts; @@ -3321,16 +3684,18 @@ lang.extend(inputEx.DatePickerField, inputEx.DateField, { // HACK: Set position absolute to the overlay Dom.setStyle(this.oOverlay.body.parentNode, "position", "absolute"); - - Event.addListener(this.el,'click',function(){ - // calendar may not have been rendered yet - this.renderCalendar(); + // Subscribe the click handler on the field only if readonly + if(this.options.readonly) { + Event.addListener(this.el,'click',function(){ + // calendar may not have been rendered yet + this.renderCalendar(); - if (!this.oOverlay.justHidden) { - this.button._showMenu(); - } - },this,true); - + if (!this.oOverlay.justHidden) { + this.button._showMenu(); + } + },this,true); + } + this.oOverlay.hideEvent.subscribe(function() { this.oOverlay.justHidden = true; YAHOO.lang.later(250,this,function(){this.oOverlay.justHidden=false;}); @@ -3433,8 +3798,11 @@ lang.extend(inputEx.DatePickerField, inputEx.DateField, { this.calendarRendered = true; }, - // Select the right date and display the right page on calendar, when the field has a value - beforeShowOverlay: function() { + /** + * Select the right date and display the right page on calendar, when the field has a value + */ + beforeShowOverlay: function(e) { + var date = this.getValue(true); if (!!this.calendar) { @@ -3449,7 +3817,23 @@ lang.extend(inputEx.DatePickerField, inputEx.DateField, { this.calendar.render(); // refresh calendar } - } + }, + + /** + * Disable the field + */ + disable: function() { + inputEx.DatePickerField.superclass.disable.call(this); + this.button.set('disabled', true); + }, + + /** + * Enable the field + */ + enable: function() { + inputEx.DatePickerField.superclass.enable.call(this); + this.button.set('disabled', false); + } }); @@ -3474,7 +3858,7 @@ YAHOO.lang.extend(inputEx.EmailField, inputEx.StringField, { /** * Set the email regexp and invalid message - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.EmailField.superclass.setOptions.call(this, options); @@ -3488,7 +3872,12 @@ YAHOO.lang.extend(inputEx.EmailField, inputEx.StringField, { * @return {String} The email string */ getValue: function() { - return inputEx.removeAccents(this.el.value.toLowerCase()); + + var value; + + value = inputEx.EmailField.superclass.getValue.call(this); + + return inputEx.removeAccents(value.toLowerCase()); } }); @@ -3574,14 +3963,18 @@ inputEx.InPlaceEdit = function(options) { lang.extend(inputEx.InPlaceEdit, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.InPlaceEdit.superclass.setOptions.call(this, options); - this.options.animColors = options.animColors || {from: '#ffff99' , to: '#ffffff'}; this.options.visu = options.visu; + this.options.editorField = options.editorField; + + this.options.buttonTypes = options.buttonTypes || {ok:"submit",cancel:"link"}; + + this.options.animColors = options.animColors || null; }, /** @@ -3600,24 +3993,31 @@ lang.extend(inputEx.InPlaceEdit, inputEx.Field, { this.editorContainer = inputEx.cn('div', {className: CSS_PREFIX+'editor'}, {display: 'none'}); // Render the editor field - this.editorField = inputEx(this.options.editorField); + this.editorField = inputEx(this.options.editorField,this); var editorFieldEl = this.editorField.getEl(); this.editorContainer.appendChild( editorFieldEl ); Dom.addClass( editorFieldEl , CSS_PREFIX+'editorDiv'); - this.okButton = inputEx.cn('a', {className: CSS_PREFIX+'OkButton'}, null, inputEx.messages.okEditor); - this.okButton.href = ""; // IE required (here, not in the cn fct) - this.editorContainer.appendChild(this.okButton); - - this.cancelLink = inputEx.cn('a', {className: CSS_PREFIX+'CancelLink'}, null, inputEx.messages.cancelEditor); - this.cancelLink.href = ""; // IE required (here, not in the cn fct) - this.editorContainer.appendChild(this.cancelLink); + this.okButton = new inputEx.widget.Button({ + type: this.options.buttonTypes.ok, + parentEl: this.editorContainer, + value: inputEx.messages.okEditor, + className: "inputEx-Button "+CSS_PREFIX+'OkButton', + onClick: {fn: this.onOkEditor, scope:this} + }); + + this.cancelLink = new inputEx.widget.Button({ + type: this.options.buttonTypes.cancel, + parentEl: this.editorContainer, + value: inputEx.messages.cancelEditor, + className: "inputEx-Button "+CSS_PREFIX+'CancelLink', + onClick: {fn: this.onCancelEditor, scope:this} + }); // Line breaker () this.editorContainer.appendChild( inputEx.cn('div',null, {clear: 'both'}) ); - //this.divEl.appendChild(this.editorContainer); this.fieldContainer.appendChild(this.editorContainer); }, @@ -3644,7 +4044,7 @@ lang.extend(inputEx.InPlaceEdit, inputEx.Field, { } this.colorAnim = new YAHOO.util.ColorAnim(this.formattedContainer, {backgroundColor: this.options.animColors}, 1); this.colorAnim.onComplete.subscribe(function() { Dom.setStyle(this.formattedContainer, 'background-color', ''); }, this, true); - this.colorAnim.animate(); + this.colorAnim.animate(); }, /** @@ -3673,14 +4073,12 @@ lang.extend(inputEx.InPlaceEdit, inputEx.Field, { initEvents: function() { Event.addListener(this.formattedContainer, "click", this.openEditor, this, true); - // For color animation - Event.addListener(this.formattedContainer, 'mouseover', this.onVisuMouseOver, this, true); - Event.addListener(this.formattedContainer, 'mouseout', this.onVisuMouseOut, this, true); - - // Editor: - Event.addListener(this.okButton, 'click', this.onOkEditor, this, true); - Event.addListener(this.cancelLink, 'click', this.onCancelEditor, this, true); - + // For color animation (if specified) + if (this.options.animColors) { + Event.addListener(this.formattedContainer, 'mouseover', this.onVisuMouseOver, this, true); + Event.addListener(this.formattedContainer, 'mouseout', this.onVisuMouseOut, this, true); + } + if(this.editorField.el) { // Register some listeners Event.addListener(this.editorField.el, "keyup", this.onKeyUp, this, true); @@ -3812,7 +4210,7 @@ inputEx.messages.okEditor = "Ok"; // Register this class as "inplaceedit" type inputEx.registerType("inplaceedit", inputEx.InPlaceEdit, [ - { type:'type', inputParams: {label: 'Editor', name: 'editorField'} } + { type:'type', label: 'Editor', name: 'editorField'} ]); })();(function() { @@ -3878,8 +4276,8 @@ YAHOO.lang.extend(inputEx.IntegerField, inputEx.StringField, { // Register this class as "integer" type inputEx.registerType("integer", inputEx.IntegerField, [ - //{ type: 'integer', inputParams: {label: 'Radix', name: 'radix', value: 10}}, - {type: 'boolean', inputParams: {label: 'Accept negative', name: 'negative', value: false} } + //{ type: 'integer', label: 'Radix', name: 'radix', value: 10}, + {type: 'boolean', label: 'Accept negative', name: 'negative', value: false } ]); })();(function() { @@ -3916,7 +4314,7 @@ lang.extend(inputEx.ListField,inputEx.Field, { /** * Set the ListField classname - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.ListField.superclass.setOptions.call(this, options); @@ -4107,10 +4505,17 @@ lang.extend(inputEx.ListField,inputEx.Field, { // Instantiate the new subField var opts = lang.merge({}, this.options.elementType); - if(!opts.inputParams) opts.inputParams = {}; - if(!lang.isUndefined(value)) opts.inputParams.value = value; - var el = inputEx(opts); + // Retro-compatibility with deprecated inputParams Object : TODO -> remove + if(lang.isObject(opts.inputParams) && !lang.isUndefined(value)) { + opts.inputParams.value = value; + + // New prefered way to set options of a field + } else if (!lang.isUndefined(value)) { + opts.value = value; + } + + var el = inputEx(opts,this); var subFieldEl = el.getEl(); Dom.setStyle(subFieldEl, 'margin-left', '4px'); @@ -4286,8 +4691,8 @@ lang.extend(inputEx.ListField,inputEx.Field, { // Register this class as "list" type inputEx.registerType("list", inputEx.ListField, [ - { type: 'string', inputParams: {label: 'List label', name: 'listLabel', value: ''}}, - { type: 'type', inputParams: {label: 'List element type', required: true, name: 'elementType'} } + { type: 'string', label: 'List label', name: 'listLabel', value: ''}, + { type: 'type', label: 'List element type', required: true, name: 'elementType' } ]); @@ -4385,7 +4790,7 @@ lang.extend(inputEx.PasswordField, inputEx.StringField, { /** * Add the password regexp, strengthIndicator, capsLockWarning - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.PasswordField.superclass.setOptions.call(this, options); @@ -4615,8 +5020,8 @@ inputEx.messages.passwordStrength = "Password Strength"; // Register this class as "password" type inputEx.registerType("password", inputEx.PasswordField, [ - {type: 'boolean', inputParams: {label: 'Strength indicator', name: 'strengthIndicator', value: false} }, - {type: 'boolean', inputParams: {label: 'CapsLock warning', name: 'capsLockWarning', value: false} } + {type: 'boolean', label: 'Strength indicator', name: 'strengthIndicator', value: false }, + {type: 'boolean', label: 'CapsLock warning', name: 'capsLockWarning', value: false } ]); })();(function() { @@ -4652,12 +5057,11 @@ lang.extend(inputEx.RadioField, inputEx.Field, { /** * Adds the Radio button specific options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.RadioField.superclass.setOptions.call(this, options); - - this.options.className = options.className ? options.className : 'inputEx-Field inputEx-RadioField'; + if (lang.isUndefined(options.allowAny) || options.allowAny === false ) { this.options.allowAny = false; } else { @@ -4670,6 +5074,14 @@ lang.extend(inputEx.RadioField, inputEx.Field, { this.options.choices = options.choices; // values == choices if not provided this.options.values = lang.isArray(options.values) ? options.values : options.choices; + + this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline" + + this.options.className = options.className ? options.className : 'inputEx-Field inputEx-RadioField'; + if (this.options.display === "vertically") { + this.options.className += ' inputEx-RadioField-Vertically'; + } + }, /** @@ -4711,11 +5123,14 @@ lang.extend(inputEx.RadioField, inputEx.Field, { this.radioAny = inputEx.cn('input', { type: 'radio', name: this.options.name }); } div.appendChild(this.radioAny); - + this.anyField = new inputEx.StringField({value:this.options.allowAny.value}); + this.anyField.disable(); + Dom.setStyle(this.radioAny, "float","left"); Dom.setStyle(this.anyField.getEl(), "float","left"); - this.anyField.disable(); + /* Hack for firefox 3.5+ */ + if (YAHOO.env.ua.gecko >= 1.91) { Dom.setStyle(this.radioAny, "marginTop","0.2em"); } if (this.options.allowAny.separators) { sep = inputEx.cn("div",null,{margin:"3px"},this.options.allowAny.separators[0] || ''); @@ -4881,14 +5296,32 @@ lang.extend(inputEx.RadioField, inputEx.Field, { } return true; + }, + + /** + * Disable the field + */ + disable: function() { + for(var i = 0 ; i < this.optionEls.length; i++) { + this.optionEls[i].disabled = true; + } + }, + + /** + * Enable the field + */ + enable: function() { + for(var i = 0 ; i < this.optionEls.length; i++) { + this.optionEls[i].disabled = false; + } } }); // Register this class as "radio" type inputEx.registerType("radio", inputEx.RadioField, [ - {type: 'list', inputParams: {label: 'Options', name: 'choices', elementType: {type: 'string'} } }, - {type: 'boolean', inputParams: {label: 'Allow custom value', name: 'allowAny'}, value: false } + {type: 'list', label: 'Options', name: 'choices', elementType: {type: 'string'} }, + {type: 'boolean', label: 'Allow custom value', name: 'allowAny', value: false } ]); })();(function() { @@ -4903,7 +5336,7 @@ inputEx.registerType("radio", inputEx.RadioField, [ * @param {Object} options Added options: *
      *
    • opts: the options to be added when calling the RTE constructor (see YUI RTE)
    • - *
    • type: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.
    • + *
    • editorType: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.
    • *
    */ inputEx.RTEField = function(options) { @@ -4912,13 +5345,13 @@ inputEx.RTEField = function(options) { lang.extend(inputEx.RTEField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.RTEField.superclass.setOptions.call(this, options); this.options.opts = options.opts || {}; - this.options.type = options.type; + this.options.editorType = options.editorType; }, /** @@ -4929,7 +5362,7 @@ lang.extend(inputEx.RTEField, inputEx.Field, { var id = "inputEx-RTEField-"+inputEx.RTEfieldsNumber; var attributes = {id:id}; - if(this.options.name) attributes.name = this.options.name; + if(this.options.name) { attributes.name = this.options.name; } this.el = inputEx.cn('textarea', attributes); @@ -4940,7 +5373,8 @@ lang.extend(inputEx.RTEField, inputEx.Field, { var _def = { height: '300px', width: '580px', - dompath: true + dompath: true, + filterWord:true // get rid of the MS word junk }; //The options object var o = this.options.opts; @@ -4950,8 +5384,8 @@ lang.extend(inputEx.RTEField, inputEx.Field, { _def[i] = o[i]; } } - //Check if options.type is present and set to simple, if it is use SimpleEditor instead of Editor - var editorType = ((this.options.type && (this.options.type == 'simple')) ? YAHOO.widget.SimpleEditor : YAHOO.widget.Editor); + //Check if options.editorType is present and set to simple, if it is use SimpleEditor instead of Editor + var editorType = ((this.options.editorType && (this.options.editorType == 'simple')) ? YAHOO.widget.SimpleEditor : YAHOO.widget.Editor); //If this fails then the code is not loaded on the page if (editorType) { @@ -4960,6 +5394,32 @@ lang.extend(inputEx.RTEField, inputEx.Field, { } else { alert('Editor is not on the page'); } + + + /** + * Filters out msword html comments, classes, and other junk + * (complementary with YAHOO.widget.SimpleEditor.prototype.filter_msword, when filterWord option is true) + * @param {String} value The html string + * @return {String} The html string + */ + this.editor.filter_msword = function(html) { + + html = editorType.prototype.filter_msword.call(this,html); + + // if we don't filter ms word junk + if (!this.get('filterWord')) { + return html; + } + + html = html.replace( //gi, ''); // strip (meta-)comments + html = html.replace( /<\/?meta[^>]*>/gi, ''); // strip meta tags + html = html.replace( /<\/?link[^>]*>/gi, ''); // strip link tags + html = html.replace( / class=('|")?MsoNormal('|")?/gi, ''); // strip MS office class + html = YAHOO.lang.trim(html); // trim spaces + + return html; + }; + }, /** @@ -4992,13 +5452,19 @@ lang.extend(inputEx.RTEField, inputEx.Field, { * @return {String} the html string */ getValue: function() { + + var html; + try { - this.editor.saveHTML(); - return this.el.value; + // trigger HTML cleaning (strip MS word or internal junk) + // + save to hidden textarea (required for classic HTML 'submit') + html = this.editor.saveHTML(); + return html; } catch(ex) { return null; } } + }); // Register this class as "html" type @@ -5026,7 +5492,7 @@ inputEx.SelectField = function(options) { lang.extend(inputEx.SelectField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.SelectField.superclass.setOptions.call(this,options); @@ -5225,8 +5691,8 @@ lang.extend(inputEx.SelectField, inputEx.Field, { // Register this class as "select" type inputEx.registerType("select", inputEx.SelectField, [ - { type: 'list', inputParams: {name: 'selectValues', label: 'Values', elementType: {type: 'string'}, required: true } }, - { type: 'list', inputParams: {name: 'selectOptions', label: 'Options', elementType: {type: 'string'} } } + { type: 'list', name: 'selectValues', label: 'Values', elementType: {type: 'string'}, required: true }, + { type: 'list', name: 'selectOptions', label: 'Options', elementType: {type: 'string'} } ]); })();(function() { @@ -5251,7 +5717,7 @@ YAHOO.lang.extend(inputEx.Textarea, inputEx.StringField, { /** * Set the specific options (rows and cols) - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.Textarea.superclass.setOptions.call(this, options); @@ -5345,8 +5811,8 @@ inputEx.messages.stringTooLong = ["This field should contain at most "," numbers // Register this class as "text" type inputEx.registerType("text", inputEx.Textarea, [ - { type: 'integer', inputParams: {label: 'Rows', name: 'rows', value: 6} }, - { type: 'integer', inputParams: {label: 'Cols', name: 'cols', value: 23} } + { type: 'integer', label: 'Rows', name: 'rows', value: 6 }, + { type: 'integer', label: 'Cols', name: 'cols', value: 23 } ]); })();(function() { @@ -5367,9 +5833,9 @@ inputEx.TimeField = function(options) { for(i = 0 ; i < 24 ; i++) { s="";if(i<10){s="0";} s+= i;h.push(s);} for(i = 0 ; i < 60 ; i++) { s="";if(i<10){s="0";} s+= i;m.push(s);secs.push(s);} options.fields = [ - {type: 'select', inputParams: {selectOptions: h, selectValues: h} }, - {type: 'select', inputParams: {selectOptions: m, selectValues: m} }, - {type: 'select', inputParams: {selectOptions: secs, selectValues: secs} } + {type: 'select', selectOptions: h, selectValues: h }, + {type: 'select', selectOptions: m, selectValues: m }, + {type: 'select', selectOptions: secs, selectValues: secs } ]; options.separators = options.separators || [false,":",":",false]; inputEx.TimeField.superclass.constructor.call(this,options); @@ -5414,11 +5880,11 @@ inputEx.registerType("time", inputEx.TimeField); */ inputEx.DateTimeField = function(options) { options.fields = [ - {type: 'datepicker', inputParams: {}}, - {type: 'time', inputParams: {}} + {type: 'datepicker'}, + {type: 'time'} ]; if(options.dateFormat) { - options.fields[0].inputParams.dateFormat = options.dateFormat; + options.fields[0].dateFormat = options.dateFormat; } options.separators = options.separators || [false, "  ", false]; inputEx.DateTimeField.superclass.constructor.call(this,options); @@ -5481,7 +5947,7 @@ YAHOO.lang.extend(inputEx.UneditableField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.UneditableField.superclass.setOptions.call(this,options); @@ -5536,7 +6002,7 @@ lang.extend(inputEx.UrlField, inputEx.StringField, { /** * Adds the invalid Url message - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.UrlField.superclass.setOptions.call(this, options); @@ -5613,7 +6079,7 @@ inputEx.messages.invalidUrl = "Invalid URL, ex: http://www.test.com"; // Register this class as "url" type inputEx.registerType("url", inputEx.UrlField, [ - { type: 'boolean', inputParams: {label: 'Display favicon', name:'favicon', value: true}} + { type: 'boolean', label: 'Display favicon', name:'favicon', value: true} ]); })();(function() { @@ -5971,15 +6437,10 @@ YAHOO.lang.extend(inputEx.MultiSelectField, inputEx.SelectField,{ * Add an item to the list when the select changed */ onAddNewItem: function() { - if(this.el.selectedIndex != 0) { + if(this.el.selectedIndex !== 0) { // Add the value to the ddlist - if(this.options.selectOptions) { - this.ddlist.addItem({value: this.options.selectValues[this.el.selectedIndex], label: this.options.selectOptions[this.el.selectedIndex]}); - } - else { - this.ddlist.addItem(this.options.selectValues[this.el.selectedIndex]); - } + this.ddlist.addItem({value: this.options.selectValues[this.el.selectedIndex], label: this.options.selectOptions[this.el.selectedIndex]}); // mark option disabled this.el.childNodes[this.el.selectedIndex].disabled = true; @@ -5998,17 +6459,28 @@ YAHOO.lang.extend(inputEx.MultiSelectField, inputEx.SelectField,{ */ setValue: function(value, sendUpdatedEvt) { - this.ddlist.setValue(value); + var i, length, index, label, ddlistValue = []; + + if (!YAHOO.lang.isArray(value)) { return; } // Re-enable all options - for(var i = 0 ; i < this.el.childNodes.length ; i++) { + for(i = 0, length=this.el.childNodes.length ; i < length ; i++) { this.el.childNodes[i].disabled = false; } - // disable selected options - for(i = 0 ; i < value.length ; i++) { - var index = inputEx.indexOf(value[i], this.options.selectValues); + + // disable selected options and fill ddlist value + for(i = 0, length=value.length ; i < length ; i++) { + + index = inputEx.indexOf(value[i], this.options.selectValues); + label = this.options.selectOptions[index]; + ddlistValue.push({value: value[i], label: label}); + this.el.childNodes[index].disabled = true; } + + // set ddlist value + this.ddlist.setValue(ddlistValue); + if(sendUpdatedEvt !== false) { // fire update event @@ -6040,24 +6512,25 @@ inputEx.registerType("multiselect", inputEx.MultiSelectField); * @extends inputEx.StringField * @param {Object} options Added options for Autocompleter *
      - *
    • datasource: the datasource
    • - *
    • autoComp: autocompleter options
    • + *
    • datasource: the datasource
    • + *
    • autoComp: autocompleter options
    • *
    • returnValue: function to format the returned value (optional)
    • *
    */ inputEx.AutoComplete = function(options) { inputEx.AutoComplete.superclass.constructor.call(this, options); + }; lang.extend(inputEx.AutoComplete, inputEx.StringField, { /** * Adds autocomplete options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.AutoComplete.superclass.setOptions.call(this, options); - + // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-AutoComplete'; @@ -6065,6 +6538,8 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { this.options.datasource = options.datasource; this.options.autoComp = options.autoComp; this.options.returnValue = options.returnValue; + this.options.generateRequest = options.generateRequest; + this.options.datasourceParameters = options.datasourceParameters; }, /** @@ -6074,11 +6549,10 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { *
  • listener to autocompleter textboxBlurEvent added in buildAutocomplete method
  • * */ - initEvents: function() { - inputEx.AutoComplete.superclass.initEvents.call(this); - - // remove standard blur listener - Event.removeBlurListener(this.el, this.onBlur); + initEvents: function() { + inputEx.AutoComplete.superclass.initEvents.call(this); + + // remove standard blur listener }, /** @@ -6097,7 +6571,7 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { if(this.options.size) attributes.size = this.options.size; if(this.options.readonly) attributes.readonly = 'readonly'; if(this.options.maxLength) attributes.maxLength = this.options.maxLength; - + // Create the node this.el = inputEx.cn('input', attributes); @@ -6129,10 +6603,22 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { if(!this._nElementsReady) { this._nElementsReady = 0; } this._nElementsReady++; if(this._nElementsReady != 2) return; + + if(!lang.isUndefined(this.options.datasourceParameters)) + { + for (param in this.options.datasourceParameters) + { + this.options.datasource[param] = this.options.datasourceParameters[param]; + } + } + // Instantiate AutoComplete this.oAutoComp = new YAHOO.widget.AutoComplete(this.el.id, this.listEl.id, this.options.datasource, this.options.autoComp); - + if(!lang.isUndefined(this.options.generateRequest)) + { + this.oAutoComp.generateRequest = this.options.generateRequest; + } // subscribe to the itemSelect event this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler, this, true); @@ -6149,24 +6635,31 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { * @param {} aArgs */ itemSelectHandler: function(sType, aArgs) { - var aData = aArgs[2]; - this.setValue( this.options.returnValue ? this.options.returnValue(aData) : aData[0] ); + var aData = aArgs[2]; + this.setValue( this.options.returnValue ? this.options.returnValue(aData) : aData[0] ); }, - + + onBlur: function(e){ + if (this.hiddenEl.value != this.el.value && this.el.value != this.options.typeInvite) this.el.value = this.hiddenEl.value; + if(this.el.value == '' && this.options.typeInvite) { + Dom.addClass(this.divEl, "inputEx-typeInvite"); + if (this.el.value == '') this.el.value = this.options.typeInvite; + } +}, /** * onChange event handler * @param {Event} e The original 'change' event */ - onChange: function(e) { - this.setClassFromState(); - - // Clear the field when no value + onChange: function(e) { + this.setClassFromState(); + // Clear the field when no value + if (this.hiddenEl.value != this.el.value) this.hiddenEl.value = this.el.value; lang.later(50, this, function() { if(this.el.value == "") { this.setValue(""); } }); - }, + }, /** * Set the value @@ -6174,17 +6667,16 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, { * @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) */ setValue: function(value, sendUpdatedEvt) { - this.hiddenEl.value = value || ""; - + this.el.value = value || ""; // "inherited" from inputex.Field : // (can't inherit of inputex.StringField because would set this.el.value...) // - // set corresponding style - this.setClassFromState(); - - if(sendUpdatedEvt !== false) { - // fire update event + // set corresponding style + this.setClassFromState(); + + if(sendUpdatedEvt !== false) { + // fire update event this.fireUpdatedEvt(); } }, @@ -6337,7 +6829,7 @@ YAHOO.lang.extend(inputEx.UneditableField, inputEx.Field, { /** * Set the default values of the options - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.UneditableField.superclass.setOptions.call(this,options); @@ -6387,7 +6879,7 @@ inputEx.SliderField = function(options) { YAHOO.lang.extend(inputEx.SliderField, inputEx.Field, { /** * Set the classname to 'inputEx-SliderField' - * @param {Object} options Options object (inputEx inputParams) as passed to the constructor + * @param {Object} options Options object as passed to the constructor */ setOptions: function(options) { inputEx.SliderField.superclass.setOptions.call(this, options); @@ -6470,8 +6962,8 @@ YAHOO.lang.extend(inputEx.SliderField, inputEx.Field, { // Register this class as "slider" type inputEx.registerType("slider", inputEx.SliderField, [ - { type: 'integer', inputParams: {label: 'Min. value', name: 'minValue', value: 0} }, - { type: 'integer', inputParams: {label: 'Max. value', name: 'maxValue', value: 100} } + { type: 'integer', label: 'Min. value', name: 'minValue', value: 0 }, + { type: 'integer', label: 'Max. value', name: 'maxValue', value: 100 } ]); })(); diff --git a/lib/inputex/css/inputEx.css b/lib/inputex/css/inputEx.css index c33256fb..dee94fb8 100644 --- a/lib/inputex/css/inputEx.css +++ b/lib/inputex/css/inputEx.css @@ -146,14 +146,12 @@ div.inputEx-Group fieldset.inputEx-Collapsed div.inputEx-fieldWrapper { * inputEx.Form */ -label.inputExForm-checkbox-rightLabel { - margin-left: 4px; -} - div.inputEx-Form-buttonBar { margin: 3px 0 0 137px; } +.inputEx-Button { margin:0 4px 0 0; } + div.inputEx-Form-Mask { height:275px; left:0pt; @@ -254,33 +252,15 @@ a.inputEx-List-link:hover { /** * inputEx.InPlaceEdit */ -div.inputEx-InPlaceEdit-visu { - cursor: pointer; - padding: 3px; -} +div.inputEx-InPlaceEdit-visu { cursor: pointer; padding: 3px; } -div.inputEx-InPlaceEdit-visu:hover { - background-color: #ffff99; +.inputEx-InPlaceEdit-editor .inputEx-InPlaceEdit-editorDiv { + float: left; + margin-bottom:0; /* remove 0.2em bottom margin because no need to cumulate field and editor-field margins */ } -.inputEx-InPlaceEdit-editorDiv { - float: left; -} +.inputEx-InPlaceEdit-OkButton { margin-left: 5px; } -a.inputEx-InPlaceEdit-OkButton { - margin-top: 3px; - margin-left: 5px; - float: left; - font-size: 120%; - text-decoration: none; -} - -a.inputEx-InPlaceEdit-CancelLink { - margin-left:5px; - margin-top:5px; - float: left; - text-decoration: none; -} /** * inputEx.AutoComplete @@ -319,7 +299,7 @@ div.inputEx-PickerField, div.inputEx-PickerField input { div.inputEx-PickerField { background: none; - padding-left: inherit; + padding-left: 0; } div.inputEx-PickerField .yui-menu-button button { @@ -483,20 +463,39 @@ div.inputEx-Password-StrengthIndicator div.inputEx-Password-StrengthIndicatorBlo /** * Checkbox */ -div.inputEx-CheckBox input { - float: left; - margin: 2px 0 4px 0; -} + +/* Common css */ +div.inputEx-CheckBox { padding-top:0.2em; } +div.inputEx-CheckBox input { margin-right: 0.2em; } +label.inputExForm-checkbox-rightLabel { cursor:pointer; } -label.inputEx-CheckBox-rightLabel { - margin: 3px; -} +/* Awful hack to target IE < 8 */ +div.inputEx-CheckBox { *padding-top:0; } + +/* Awful hack to target webkit */ +@media screen and (-webkit-min-device-pixel-ratio:0) { div.inputEx-CheckBox input {position:relative; top:1px;} } + + +/** + * Radio Field + */ +label.inputEx-RadioField-rightLabel { cursor: pointer; } + +div.inputEx-RadioField-choice { float: left; margin-right: 10px; margin-top:0.2em; } + +/* Awful hack to target IE < 8 */ +div.inputEx-RadioField-choice { *margin-top:0; } + +/* Awful hack to target IE > 7 and modern browsers */ +html>/**/body div.inputEx-RadioField-choice input { position:relative; top:0.2em; margin-right:0.2em; } +html>/**/body div.inputEx-RadioField-choice input, x:-moz-any-link, x:default { top:0; } /* Re-fix for firefox 3.0+ */ + +/* Vertical display */ +.inputEx-RadioField-Vertically .inputEx-RadioField-choice { float: none; } /** * CombineField */ -div.inputEx-CombineField { -} div.inputEx-CombineField-separator { float: left; @@ -532,19 +531,6 @@ div.inputEx-CombineField-separator { } -/** - * Radio Field - */ -label.inputEx-RadioField-rightLabel { - cursor: pointer; - margin: 3px; -} - -div.inputEx-RadioField-choice { - float: left; - margin-left: 10px; -} - /** * inputEx.TypeField */ diff --git a/lib/inputex/examples/TaskManager/index.html b/lib/inputex/examples/TaskManager/index.html index 12dfaa59..0754a4c1 100644 --- a/lib/inputex/examples/TaskManager/index.html +++ b/lib/inputex/examples/TaskManager/index.html @@ -36,12 +36,12 @@
    About TaskManager
    - This application is an example for the inputEx Library.
    + This application is an example for the inputEx Library.

    Click on a task to expand it and edit its properties.
    Right click on a task to add a subtask or delete it.

    - This example won't work offline. (it requires PHP) + This example won't save anything, but the code contains an example to save via Ajax.
    diff --git a/lib/inputex/examples/TaskManager/js/TaskManager.js b/lib/inputex/examples/TaskManager/js/TaskManager.js index 5f683344..663428b8 100644 --- a/lib/inputex/examples/TaskManager/js/TaskManager.js +++ b/lib/inputex/examples/TaskManager/js/TaskManager.js @@ -38,11 +38,11 @@ var TaskManager = { * Create the Task Details Form */ buildForm: function() { - this.oTaskDetailsForm = new inputEx.Group({parentEl: 'taskInformation', fields: [ - {inputParams: {label: 'Description', name: 'description'} }, - {type: 'date', inputParams: {label: 'Due date', name: 'duedate' } }, - {inputParams: {label: 'Tags', name: 'tags' } }, - {type:'text', inputParams: {label: 'Comments', name:'comments'}} + this.oTaskDetailsForm = new inputEx.Group({parentEl: 'taskInformation', fields: [ + {label: 'Description', name: 'description'}, + {type: 'date', label: 'Due date', name: 'duedate'}, + {label: 'Tags', name: 'tags'}, + {type:'text', label: 'Comments', name:'comments'} ] }); }, @@ -89,22 +89,28 @@ var TaskManager = { var json = YAHOO.lang.JSON.stringify(value); YAHOO.util.Dom.get('saveStatus').innerHTML = "saving..."; - YAHOO.util.Connect.asyncRequest('POST', 'store.php', { + + alert("send the following json to your server :"+json); + + // Exemple of a real world application : + /*YAHOO.util.Connect.asyncRequest('POST', 'store.php', { success: function(o) { - var d = new Date(); - YAHOO.util.Dom.get('saveStatus').innerHTML = "saved at "+d.getHours()+":"+d.getMinutes()+":"+d.getSeconds(); + }, failure: function(o) { YAHOO.util.Dom.get('saveStatus').innerHTML = "error !"; } - }, "data="+json); + }, "data="+json);*/ + + var d = new Date(); + YAHOO.util.Dom.get('saveStatus').innerHTML = "saved at "+d.getHours()+":"+d.getMinutes()+":"+d.getSeconds(); }, /** * Ajax request to retreive the data */ queryData: function() { - YAHOO.util.Connect.asyncRequest('GET', 'store.php', { + YAHOO.util.Connect.asyncRequest('GET', 'store.json', { success: function(o) { var childNodes = YAHOO.lang.JSON.parse(o.responseText); this.populateTree(childNodes); diff --git a/lib/inputex/examples/TaskManager/store.json b/lib/inputex/examples/TaskManager/store.json index a05ba115..2edb4b6b 100644 --- a/lib/inputex/examples/TaskManager/store.json +++ b/lib/inputex/examples/TaskManager/store.json @@ -1 +1 @@ -[{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Learn how to use inputEx\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":true,\"children\":[{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Check the TaskManager example\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":true,\"children\":[],\"label\":\"Check the TaskManager example\"},{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Download inputEx\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":false,\"children\":[],\"label\":\"Download inputEx\"},{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Read the Documentation\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":false,\"children\":[],\"label\":\"Read the Documentation\"}],\"label\":\"Learn how to use inputEx\"},{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Personal\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":true,\"children\":[{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Gift for Lucie\'s birthday\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":true,\"children\":[],\"label\":\"Gift for Lucie\'s birthday\"},{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Blog\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":true,\"children\":[{\"_taskDetails\":{\"comments\":\"\",\"description\":\"Articles\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":true,\"children\":[{\"_taskDetails\":{\"comments\":\"\",\"description\":\"inputEx 0.1.0 release\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":true,\"children\":[],\"label\":\"inputEx 0.1.0 release\"},{\"_taskDetails\":{\"comments\":\"\",\"description\":\"dFly annoucement\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":false,\"children\":[],\"label\":\"dFly annoucement\"}],\"label\":\"Articles\"}],\"label\":\"Blog\"},{\"_taskDetails\":{\"comments\":\"Machin truc\",\"description\":\"Test\",\"duedate\":\"\",\"tags\":\"\"},\"checked\":false,\"children\":[],\"label\":\"Test\"}],\"label\":\"Personal\"}] \ No newline at end of file +[{"_taskDetails":{"comments":"","description":"Learn how to use inputEx","duedate":"","tags":""},"checked":true,"children":[{"_taskDetails":{"comments":"","description":"Check the TaskManager example","duedate":"","tags":""},"checked":true,"children":[],"label":"Check the TaskManager example"},{"_taskDetails":{"comments":"","description":"Download inputEx","duedate":"","tags":""},"checked":false,"children":[],"label":"Download inputEx"},{"_taskDetails":{"comments":"","description":"Read the Documentation","duedate":"","tags":""},"checked":false,"children":[],"label":"Read the Documentation"}],"label":"Learn how to use inputEx"},{"_taskDetails":{"comments":"","description":"Personal","duedate":"","tags":""},"checked":true,"children":[{"_taskDetails":{"comments":"","description":"Gift for Lucie's birthday","duedate":"","tags":""},"checked":true,"children":[],"label":"Gift for Lucie's birthday"},{"_taskDetails":{"comments":"","description":"Blog","duedate":"","tags":""},"checked":true,"children":[{"_taskDetails":{"comments":"","description":"Articles","duedate":"","tags":""},"checked":true,"children":[{"_taskDetails":{"comments":"","description":"inputEx 0.1.0 release","duedate":"","tags":""},"checked":true,"children":[],"label":"inputEx 0.1.0 release"},{"_taskDetails":{"comments":"","description":"dFly annoucement","duedate":"","tags":""},"checked":false,"children":[],"label":"dFly annoucement"}],"label":"Articles"}],"label":"Blog"},{"_taskDetails":{"comments":"Machin truc","description":"Test","duedate":"","tags":""},"checked":false,"children":[],"label":"Test"}],"label":"Personal"}] \ No newline at end of file diff --git a/lib/inputex/examples/TaskManager/store.php b/lib/inputex/examples/TaskManager/store.php deleted file mode 100644 index c8e4a8b1..00000000 --- a/lib/inputex/examples/TaskManager/store.php +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/lib/inputex/examples/assets/images/button_left.png b/lib/inputex/examples/assets/images/button_left.png new file mode 100644 index 0000000000000000000000000000000000000000..356ca01e27a1984ccf52f459ed7d1c382a1e98e0 GIT binary patch literal 847 zcmV-V1F-ywP)a_qK;ccddyofXer6BtPdyJ?e}#G01AypBN>KgGpt>{diAe6*S9WTT<`W%-2s3@d`MYTwp;m7lT|RQ8D>wmQYIw#E0UGQ5dadpnCjgWS&%tLnUF!sZa^V?- zCje9r&jF`w0ia@d8hHXh#qiwoPFnz|7M@Pq0zlP~r_;6oP%%86wgmtqPXPF;;rV=b zPe%Y?ikcPxfbawW;Ryi3699xK00>V2U`lxUfF}TyloY`^2+v-xry~GRGCX@BP51ZS z?(WA%($E$Fm>iz@aC0y8_g}wz@#=MQeC33;0Knw%><_}T`||0FM~|NzyS2R?V)g|9 zObpN6@ZZ0WUp`!1TUh_$Z1Ur|3t9sJzu7{d}AZDPXD@c^Ymp z#{d2C_`wy@IN|=dX(vrHNtx%3PE%#sCNAsnn~KX-YJJDO_LTX}(z985{_#24P5$rc z;+WSAhxB;X`Odm;%(IQh^?uwsj$7X_M^DFYJSrQ+9a| z>&ra*!nB`FW!B}ZANS$gZohB6Y*qI6Df5kKdJx0;oe-Wqs1*UalvO*N+1v_?tDO*& z4WqgaBUNwvT5vb(Dm>oLQ9savK^j7ssC84I9qG`W@>q58)}6NlrGM3 zs1`uA^@80NuvMu;^J-ywZVB!WR#0*A zA*wxuj!%t^LTAqi!aC79p)&G}8|vy#BtSQUt=EAzh$}=aAQ-vvtCsVude4N3i+o+H-_Hk*o zFHRy1OM0DF-RzlJ+1S~HTK)*TU&62yDSdJL64g)B7hZ -

    inputEx - Autocomplete Usage

    +

    inputEx - Autocomplete Usage

    -

    Basic Autocomplete creation

    +

    Basic Autocomplete creation

    Use the following code to create a basic inputEx Autocomplete.

    @@ -37,24 +37,22 @@ // Autocompleter var field = inputEx({ type: "autocomplete", - inputParams: { - parentEl: 'container1', - label: 'Search US state', - datasource: new YAHOO.widget.DS_JSFunction( getStates), // see http://developer.yahoo.com/yui/examples/autocomplete/assets/js/states_jsfunction.js for getState function - - // Format the hidden value (value returned by the form) - returnValue: function(oResultItem) { - return oResultItem[1]; - }, - autoComp: { - forceSelection: true, - minQueryLength: 2, - maxResultsDisplayed: 50, - formatResult: function(oResultItem, sQuery) { - var sMarkup = oResultItem[0] + " (" + oResultItem[1] + ")"; - return sMarkup; - } - } + parentEl: 'container1', + label: 'Search US state', + datasource: new YAHOO.widget.DS_JSFunction( getStates), // see http://developer.yahoo.com/yui/examples/autocomplete/assets/js/states_jsfunction.js for getState function + + // Format the hidden value (value returned by the form) + returnValue: function(oResultItem) { + return oResultItem[1]; + }, + autoComp: { + forceSelection: true, + minQueryLength: 2, + maxResultsDisplayed: 50, + formatResult: function(oResultItem, sQuery) { + var sMarkup = oResultItem[0] + " (" + oResultItem[1] + ")"; + return sMarkup; + } } }); @@ -80,7 +78,7 @@
    -

    Delicious Autocompleter

    +

    Delicious Autocompleter

    Uses the del.icio.us json API to search within posts

    @@ -93,48 +91,45 @@ // Delicious DataSource using a JSFunction // Delicious.posts is set by the http://feeds.delicious.com/feeds/json/neyric?count=100 script included in the page - - var deliciousDS = new YAHOO.widget.DS_JSFunction( function (sQuery) { - if (!sQuery || sQuery.length == 0) { - return false; - } - var query = sQuery.toLowerCase(); - var aResults = []; - for(var i = 0 ; i != Delicious.posts.length-1 ; i++) { - var desc = Delicious.posts[i].d.toLowerCase(); - if( desc.indexOf(query) != -1) { - aResults.push([Delicious.posts[i].d, Delicious.posts[i]]); - } - } - return aResults; - }); - deliciousDS.maxCacheEntries = 100; - var deliciousAC = inputEx({ type: "autocomplete", - inputParams: { - label: 'Search my delicious bookmarks', - description: 'Try "javascript" or "rails"', - parentEl: 'container2', - name: 'chosen_url', - datasource: deliciousDS, - // Format the hidden value (value returned by the form) - returnValue: function(oResultItem) { - var post = oResultItem[1]; - return post.u; - }, - // Autocompleter options - autoComp: { - forceSelection: true, - minQueryLength: 2, - maxResultsDisplayed: 50, - formatResult: function(oResultItem, sQuery) { - var post = oResultItem[1]; - // NOTE: we use String.fromCharCode(60) and String.fromCharCode(62) for tags because otherwise our example is broken - return String.fromCharCode(60)+'a href="'+post.u+'"'+String.fromCharCode(62)+'visit'+String.fromCharCode(60)+'/a'+String.fromCharCode(62)+' '+String.fromCharCode(60)+'span target="_new"'+String.fromCharCode(62)+post.d+String.fromCharCode(60)+'/span'+String.fromCharCode(62); - } + label: 'Search my delicious bookmarks', + description: 'Try "javascript" or "rails"', + parentEl: 'container2', + name: 'chosen_url', + datasource: new YAHOO.widget.DS_JSFunction( function (sQuery) { + if (!sQuery || sQuery.length == 0) { + return false; + } + var query = sQuery.toLowerCase(); + var aResults = []; + for(var i = 0 ; i != Delicious.posts.length-1 ; i++) { + var desc = Delicious.posts[i].d.toLowerCase(); + if( desc.indexOf(query) != -1) { + aResults.push([Delicious.posts[i].d, Delicious.posts[i]]); + } } + return aResults; + }), + datasourceParameters: { + maxCacheEntries: 100 + }, + // Format the hidden value (value returned by the form) + returnValue: function(oResultItem) { + var post = oResultItem[1]; + return post.u; + }, + // Autocompleter options + autoComp: { + forceSelection: true, + minQueryLength: 2, + maxResultsDisplayed: 50, + formatResult: function(oResultItem, sQuery) { + var post = oResultItem[1]; + // NOTE: we use String.fromCharCode(60) and String.fromCharCode(62) for tags because otherwise our example is broken + return String.fromCharCode(60)+'a href="'+post.u+'"'+String.fromCharCode(62)+'visit'+String.fromCharCode(60)+'/a'+String.fromCharCode(62)+' '+String.fromCharCode(60)+'span target="_new"'+String.fromCharCode(62)+post.d+String.fromCharCode(60)+'/span'+String.fromCharCode(62); + } } }); var button = inputEx.cn('button', null, null, 'GetValue'); @@ -149,6 +144,67 @@
    + +
    + +

    YUI JSON autocomplete

    + +

    Uses the Yahoo search API within posts

    + +
    + +
    + +
    + +
    + + @@ -171,6 +227,5 @@ - \ No newline at end of file diff --git a/lib/inputex/examples/checkbox.html b/lib/inputex/examples/checkbox.html index da8e878e..d97bdcae 100644 --- a/lib/inputex/examples/checkbox.html +++ b/lib/inputex/examples/checkbox.html @@ -20,12 +20,12 @@ -

    inputEx - CheckBox Usage

    +

    inputEx - CheckBox Usage

    -

    Basic CheckBox creation

    +

    Basic CheckBox creation

    Use the following code to create a basic inputEx CheckBox.

    @@ -38,7 +38,7 @@
    -

    With a label

    +

    With a label

    Add the label

    @@ -51,7 +51,7 @@
    -

    Default returned values

    +

    Default returned values

    In its simplest form, the CheckBox returns true if checked, false otherwise.

    @@ -68,16 +68,22 @@
    -

    Changing the returned values

    +

    Changing the returned values

    You can return different values if needed.

    @@ -86,7 +92,7 @@
    -

    Updated event

    +

    Updated event

    How to listen to the updated event :

    @@ -96,7 +102,7 @@ var logDiv = inputEx.cn('div', null, null, "Log :"); el.appendChild(logDiv); field.updatedEvt.subscribe(function() { - logDiv.innerHTML += "Updated at "+(new Date()); + logDiv.innerHTML += "Updated at "+(new Date())+" with value : "+field.getValue(); logDiv.appendChild(inputEx.cn('br')); }); @@ -107,7 +113,7 @@
    -

    Disabling checkboxes

    +

    Disabling checkboxes

    How to enable/disable a checkbox :

    diff --git a/lib/inputex/examples/color_field.html b/lib/inputex/examples/color_field.html index e977c53f..d9973f7e 100644 --- a/lib/inputex/examples/color_field.html +++ b/lib/inputex/examples/color_field.html @@ -20,11 +20,11 @@ -

    inputEx - ColorField Usage

    +

    inputEx - ColorField Usage

    -

    Basic ColorField creation

    +

    Basic ColorField creation

    Use the following code to create a basic inputEx ColorField.

    @@ -37,7 +37,7 @@
    -

    Updated event

    +

    Updated event

    How to listen to the updated event :

    @@ -56,7 +56,7 @@
    -

    Setting the color

    +

    Setting the color

    The usual 'value' parameter:

    diff --git a/lib/inputex/examples/colorpicker_field.html b/lib/inputex/examples/colorpicker_field.html index f7d8938d..ef898687 100644 --- a/lib/inputex/examples/colorpicker_field.html +++ b/lib/inputex/examples/colorpicker_field.html @@ -20,14 +20,14 @@ -

    inputEx - ColorPickerField Usage

    +

    inputEx - ColorPickerField Usage

    This field is a wrapper around the YUI ColorPicker widget.

    -

    Basic ColorPickerField creation

    +

    Basic ColorPickerField creation

    Use the following code to create a basic inputEx ColorPickerField.

    @@ -41,7 +41,7 @@
    -

    Smaller ColorPickerField

    +

    Smaller ColorPickerField

    Use the following code to create a ColorPickerField without controls

    diff --git a/lib/inputex/examples/combine_field.html b/lib/inputex/examples/combine_field.html index 4626f2db..9232c811 100644 --- a/lib/inputex/examples/combine_field.html +++ b/lib/inputex/examples/combine_field.html @@ -24,12 +24,12 @@ -

    inputEx - CombineField Usage

    +

    inputEx - CombineField Usage

    -

    Basic CombineField creation

    +

    Basic CombineField creation

    @@ -39,8 +39,8 @@ label: 'Your name', description: 'Please enter your name', fields: [ - { inputParams: {name: 'firstname', typeInvite: 'firstname'} }, - { inputParams: {name: 'lastname', typeInvite: 'lastname'} } + { name: 'firstname', typeInvite: 'firstname' }, + { name: 'lastname', typeInvite: 'lastname' } ], separators: [false,"   ",false], required:true @@ -71,7 +71,7 @@
    -

    Basic CombineField creation

    +

    Basic CombineField creation

    @@ -80,8 +80,8 @@ parentEl: 'container2', label:'Select Datetime :', fields: [ - {type: 'date', inputParams: {name: 'date', typeInvite: 'mm/dd/YYYY'} }, - {type: 'time', inputParams: {name: 'time'} } + {type: 'date', name: 'date', typeInvite: 'mm/dd/YYYY' }, + {type: 'time', name: 'time' } ], separators: [false," ",false] }); diff --git a/lib/inputex/examples/css/demo.css b/lib/inputex/examples/css/demo.css index f2fb35bc..5e477c61 100644 --- a/lib/inputex/examples/css/demo.css +++ b/lib/inputex/examples/css/demo.css @@ -1,34 +1,8 @@ +h1 { font-size: 16pt; margin: 20px; } - -p.demoTitle { - font-size: 16pt; - margin: 20px; -} - - -div.exampleDiv { - margin: 20px; -} - -div.exampleDiv p { - font-size: 12pt; -} - -div.exampleDiv p.title { - font-size: 14pt; - font-weight: bold; -} - -div.exampleDiv div.demoContainer { - margin: 20px; - padding: 15px; - border: 1px solid #9999ff; - background-color: #ddddff; -} - - -div.exampleDiv div.codeContainer { -margin: 20px; - /*width: 80%;*/ -} \ No newline at end of file +div.exampleDiv { margin: 20px; } +div.exampleDiv p { font-size: 12pt;} +div.exampleDiv h2 { font-size: 14pt; font-weight: bold; } +div.exampleDiv div.demoContainer { margin: 20px; padding: 15px; border: 1px solid #9999ff; background-color: #ddddff; } +div.exampleDiv div.codeContainer { margin: 20px; } \ No newline at end of file diff --git a/lib/inputex/examples/datatable.html b/lib/inputex/examples/datatable.html index 87af553b..2ba935de 100644 --- a/lib/inputex/examples/datatable.html +++ b/lib/inputex/examples/datatable.html @@ -21,11 +21,11 @@ -

    inputEx - DataTable Usage

    +

    inputEx - DataTable Usage

    -

    Dialog Editor

    +

    Dialog Editor

    @@ -44,12 +44,12 @@ myDataSource.responseSchema = { fields: ["id","date","quantity","amount","title", "category"] }; var myFields = [ - {type: 'hidden', inputParams: {label: 'Id', name: 'id'} }, - {type: 'date', inputParams: {label: 'Date', name: 'date'} }, - {type: 'integer', inputParams: {label: 'Quantity', name: 'quantity'} }, - {type: 'number', inputParams: {label: 'Amount', name: 'amount'} }, - {type: 'string', inputParams: {label: 'Title', name: 'title', required: true, showMsg: true} }, - {type: 'select', inputParams: {label: 'Category', name: 'category', selectValues: ['SF', 'Novel', 'Philosophy']} } + {type: 'hidden', label: 'Id', name: 'id' }, + {type: 'date', label: 'Date', name: 'date' }, + {type: 'integer', label: 'Quantity', name: 'quantity' }, + {type: 'number', label: 'Amount', name: 'amount'}, + {type: 'string', label: 'Title', name: 'title', required: true, showMsg: true }, + {type: 'select', label: 'Category', name: 'category', selectValues: ['SF', 'Novel', 'Philosophy'] } ]; @@ -67,7 +67,7 @@
    -

    Show/Hide columns

    +

    Show/Hide columns

    @@ -96,7 +96,7 @@
    -

    Listening to the Custom Events

    +

    Listening to the Custom Events

    @@ -135,6 +135,7 @@ + diff --git a/lib/inputex/examples/date_field.html b/lib/inputex/examples/date_field.html index b5c368fd..797719c1 100644 --- a/lib/inputex/examples/date_field.html +++ b/lib/inputex/examples/date_field.html @@ -20,12 +20,12 @@ -

    inputEx - DateField Usage

    +

    inputEx - DateField Usage

    -

    Basic DateField creation

    +

    Basic DateField creation

    Use the following code to create a basic inputEx DateField.

    @@ -38,7 +38,7 @@
    -

    Change date format

    +

    Change date format

    Set the formatDate to your localized date format ! Here is the french format :

    @@ -51,7 +51,7 @@
    -

    Updated event and return value

    +

    Updated event and return value

    The DateField returns a javascript Date object instance :

    @@ -77,7 +77,7 @@
    -

    Use a string input/output formatting

    +

    Use a string input/output formatting

    The setValue/getValue methods will parse/format the dates to the valueFormat option.

    diff --git a/lib/inputex/examples/datepicker_field.html b/lib/inputex/examples/datepicker_field.html index 73c5c5c2..7d51f5ef 100644 --- a/lib/inputex/examples/datepicker_field.html +++ b/lib/inputex/examples/datepicker_field.html @@ -20,12 +20,12 @@ -

    inputEx - DatePickerField Usage

    +

    inputEx - DatePickerField Usage

    -

    Basic DatePickerField creation

    +

    Basic DatePickerField creation

    Use the following code to create a basic inputEx DatePickerField.

    @@ -38,7 +38,7 @@
    -

    Change DatePickerField date format

    +

    Change DatePickerField date format

    Use the following code to select another date format

    @@ -51,7 +51,7 @@
    -

    DatePickerField Updated event

    +

    DatePickerField Updated event

    Listening for the updatedEvt

    @@ -70,7 +70,7 @@
    -

    Use a string input/output formatting

    +

    Use a string input/output formatting

    The setValue/getValue methods will parse/format the dates to the valueFormat option.

    @@ -85,6 +85,45 @@
    + +
    +

    Disable DatePicker

    +

    Disable method

    +
    +
    + +
    +
    + + + + +
    +

    Disable readonly option

    +

    If you want to let users enter the date manually

    +
    +
    + +
    +
    + + + diff --git a/lib/inputex/examples/dateselectmonth_field.html b/lib/inputex/examples/dateselectmonth_field.html index 6868a297..1d6a6265 100644 --- a/lib/inputex/examples/dateselectmonth_field.html +++ b/lib/inputex/examples/dateselectmonth_field.html @@ -21,11 +21,11 @@ -

    inputEx - DateSelectMonthField Usage

    +

    inputEx - DateSelectMonthField Usage

    -

    Basic DateSelectMonthField creation

    +

    Basic DateSelectMonthField creation

    Use the following code to create a basic inputEx DateSelectMonthField.

    diff --git a/lib/inputex/examples/datesplit_field.html b/lib/inputex/examples/datesplit_field.html index bbe346eb..ac1a00eb 100644 --- a/lib/inputex/examples/datesplit_field.html +++ b/lib/inputex/examples/datesplit_field.html @@ -24,12 +24,12 @@ -

    inputEx - DateSplitField Usage

    +

    inputEx - DateSplitField Usage

    -

    Basic DateSplitField creation

    +

    Basic DateSplitField creation

    Use the following code to create a basic inputEx DateSplitField.

    diff --git a/lib/inputex/examples/datetime_field.html b/lib/inputex/examples/datetime_field.html index edd2dfaa..09ecec9f 100644 --- a/lib/inputex/examples/datetime_field.html +++ b/lib/inputex/examples/datetime_field.html @@ -20,12 +20,12 @@ -

    inputEx - DateTimeField Usage

    +

    inputEx - DateTimeField Usage

    -

    Basic DateTimeField creation

    +

    Basic DateTimeField creation

    Use the following code to create a basic inputEx DateTimeField.

    @@ -43,7 +43,7 @@
    -

    Date format

    +

    Date format

    Change the date format

    diff --git a/lib/inputex/examples/ddlist_widget.html b/lib/inputex/examples/ddlist_widget.html index b256da46..e6056249 100644 --- a/lib/inputex/examples/ddlist_widget.html +++ b/lib/inputex/examples/ddlist_widget.html @@ -28,7 +28,7 @@ -

    inputEx - DDList Widget Usage

    +

    inputEx - DDList Widget Usage

    @@ -46,7 +46,7 @@
    -

    Basic DDList Widget creation

    +

    Basic DDList Widget creation

    Use the following code to create a basic inputEx DDList Widget

    @@ -63,7 +63,7 @@
    -

    Returned value

    +

    Returned value

    The returned value is an array

    @@ -86,7 +86,7 @@
    -

    Change returned value

    +

    Change returned value

    By providing an object containing label and value attributes

    @@ -110,7 +110,7 @@
    -

    Numbered list

    +

    Numbered list

    Display the item # by changing CSS style only :

    @@ -128,7 +128,7 @@
    -

    itemRemoved Event

    +

    itemRemoved Event

    Use the following code to listen for the itemRemoved Event:

    @@ -148,7 +148,7 @@
    -

    listReordered Event

    +

    listReordered Event

    Use the following code to listen for the listReordered Event:

    @@ -169,7 +169,7 @@
    -

    Styling

    +

    Styling

    Let's style the list !

    @@ -188,7 +188,7 @@
    -

    Options

    +

    Options

    Same list without "remove" link

    diff --git a/lib/inputex/examples/dialog_widget.html b/lib/inputex/examples/dialog_widget.html index e83c9e8f..1caac6ad 100644 --- a/lib/inputex/examples/dialog_widget.html +++ b/lib/inputex/examples/dialog_widget.html @@ -16,12 +16,12 @@ -

    inputEx - Dialog Widget Usage

    +

    inputEx - Dialog Widget Usage

    -

    Basic Dialog creation

    +

    Basic Dialog creation

    Use the following code to create a basic inputEx Dialog. Note the scope hack with "Example1" to define the buttons callbacks.

    @@ -39,21 +39,20 @@ Example1 = {}; var formConfig = { type: 'form', - inputParams: { - fields: [ - {type: 'select', inputParams: {label: 'Title', name: 'title', selectValues: ['Mr','Mrs','Mme'] } }, - {inputParams: {label: 'Firstname', name: 'firstname', required: true, value:'Jacques' } }, - {inputParams: {label: 'Lastname', name: 'lastname', value:'Dupont' } }, - {type:'email', inputParams: {label: 'Email', name: 'email'}}, - {type:'url', inputParams: {label: 'Website',name:'website'}} - ], - buttons: [ - {type: 'button', value: 'Send', onClick: function() { - alert(YAHOO.lang.JSON.stringify(Example1.myPanel.getForm().getValue())); - }}, - {type: 'button', value: 'Cancel', onClick: function() { Example1.myPanel.hide(); } } - ] - } + fields: [ + {type: 'select', label: 'Title', name: 'title', selectValues: ['Mr','Mrs','Mme'] }, + {label: 'Firstname', name: 'firstname', required: true, value:'Jacques' }, + {label: 'Lastname', name: 'lastname', value:'Dupont' } }, + {type:'email', label: 'Email', name: 'email'}, + {type:'url', label: 'Website',name:'website'} + ], + buttons: [ + {type: 'submit', value: 'Send', onClick: function() { + alert(YAHOO.lang.JSON.stringify(Example1.myPanel.getForm().getValue())); + return false; // prevent form submit + }}, + {type: 'link', value: 'Cancel', onClick: function() { Example1.myPanel.hide(); } } + ] } Example1.myPanel = new inputEx.widget.Dialog({ inputExDef: formConfig, @@ -69,7 +68,7 @@
    -

    Change dialog properties

    +

    Change dialog properties

    Access the YUI panel properties with the "panelConfig" object. Example with a modal dialog. (See the YUI panel documentation for more informations.)

    @@ -83,20 +82,19 @@ Example2.myPanel = new inputEx.widget.Dialog({ inputExDef: { type: 'form', - inputParams: { - fields: [ - {type:'string', inputParams: {label: 'Name', name: 'firstname', required: true } }, - {type:'email', inputParams: {label: 'Email', name: 'email', description: 'Won\'t be displayed...'}}, - {type:'url', inputParams: {label: 'Website',name:'website', typeInvite: '(optional)'}}, - {type:'text', inputParams: {label: 'Your comment',name:'comments'}} - ], - buttons: [ - {type: 'button', value: 'Send', onClick: function() { - alert(YAHOO.lang.JSON.stringify(Example2.myPanel.getForm().getValue())); - }}, - {type: 'button', value: 'Cancel', onClick: function() { Example2.myPanel.hide(); } } - ] - } + fields: [ + {type:'string', label: 'Name', name: 'firstname', required: true }, + {type:'email', label: 'Email', name: 'email', description: 'Won\'t be displayed...'}, + {type:'url', label: 'Website',name:'website', typeInvite: '(optional)'}, + {type:'text', label: 'Your comment',name:'comments'} + ], + buttons: [ + {type: 'submit', value: 'Send', onClick: function() { + alert(YAHOO.lang.JSON.stringify(Example2.myPanel.getForm().getValue())); + return false; + }}, + {type: 'link', value: 'Cancel', onClick: function() { Example2.myPanel.hide(); } } + ] }, title: 'Please post a comment !', panelConfig: { @@ -131,21 +129,20 @@ Example1 = {}; var formConfig = { type: 'form', - inputParams: { - fields: [ - {type: 'select', inputParams: {label: 'Title', name: 'title', selectValues: ['Mr','Mrs','Mme'] } }, - {inputParams: {label: 'Firstname', name: 'firstname', required: true, value:'Jacques' } }, - {inputParams: {label: 'Lastname', name: 'lastname', value:'Dupont' } }, - {type:'email', inputParams: {label: 'Email', name: 'email'}}, - {type:'url', inputParams: {label: 'Website',name:'website'}} - ], - buttons: [ - {type: 'button', value: 'Send', onClick: function() { - alert(YAHOO.lang.JSON.stringify(Example1.myPanel.getForm().getValue())); - }}, - {type: 'button', value: 'Cancel', onClick: function() { Example1.myPanel.hide(); } } - ] - } + fields: [ + {type: 'select', label: 'Title', name: 'title', selectValues: ['Mr','Mrs','Mme'] }, + {label: 'Firstname', name: 'firstname', required: true, value:'Jacques' }, + {label: 'Lastname', name: 'lastname', value:'Dupont' }, + {type:'email', label: 'Email', name: 'email'}, + {type:'url', label: 'Website',name:'website'} + ], + buttons: [ + {type: 'submit', value: 'Send', onClick: function() { + alert(YAHOO.lang.JSON.stringify(Example1.myPanel.getForm().getValue())); + return false; // prevent form submit + }}, + {type: 'link', value: 'Cancel', onClick: function() { Example1.myPanel.hide(); } } + ] }; Example1.myPanel = new inputEx.widget.Dialog({ inputExDef: formConfig, @@ -157,20 +154,19 @@ Example2.myPanel = new inputEx.widget.Dialog({ inputExDef: { type: 'form', - inputParams: { - fields: [ - {type:'string', inputParams: {label: 'Name', name: 'firstname', required: true } }, - {type:'email', inputParams: {label: 'Email', name: 'email', description: 'Won\'t be displayed...'}}, - {type:'url', inputParams: {label: 'Website',name:'website', typeInvite: '(optional)'}}, - {type:'text', inputParams: {label: 'Your comment',name:'comments'}} - ], - buttons: [ - {type: 'button', value: 'Send', onClick: function() { - alert(YAHOO.lang.JSON.stringify(Example2.myPanel.getForm().getValue())); - }}, - {type: 'button', value: 'Cancel', onClick: function() { Example2.myPanel.hide(); } } - ] - } + fields: [ + {type:'string', label: 'Name', name: 'firstname', required: true }, + {type:'email', label: 'Email', name: 'email', description: 'Won\'t be displayed...'}, + {type:'url', label: 'Website',name:'website', typeInvite: '(optional)'}, + {type:'text', label: 'Your comment',name:'comments'} + ], + buttons: [ + {type: 'submit', value: 'Send', onClick: function() { + alert(YAHOO.lang.JSON.stringify(Example2.myPanel.getForm().getValue())); + return false; // prevent form submit + }}, + {type: 'link', value: 'Cancel', onClick: function() { Example2.myPanel.hide(); } } + ] }, title: 'Please post a comment !', panelConfig: { diff --git a/lib/inputex/examples/dsselect_field.html b/lib/inputex/examples/dsselect_field.html index ebc83cdd..009b4fbb 100644 --- a/lib/inputex/examples/dsselect_field.html +++ b/lib/inputex/examples/dsselect_field.html @@ -20,13 +20,13 @@ -

    inputEx - DSSelectField Usage

    +

    inputEx - DSSelectField Usage

    -

    Using a DataSource

    +

    Using a DataSource

    How to populate the selectField using a YUI datasource (from local data, XHR, JSONP, function, ...):

    @@ -49,7 +49,7 @@
    -

    Updated event

    +

    Updated event

    How to listen to the updated event :

    @@ -77,7 +77,7 @@
    -

    Set Value

    +

    Set Value

    How to set the value :

    diff --git a/lib/inputex/examples/dtInPlaceEdit.html b/lib/inputex/examples/dtInPlaceEdit.html index aaefedcc..5f314165 100644 --- a/lib/inputex/examples/dtInPlaceEdit.html +++ b/lib/inputex/examples/dtInPlaceEdit.html @@ -22,11 +22,11 @@ -

    inputEx - dtInPlaceEdit Usage

    +

    inputEx - dtInPlaceEdit Usage

    -

    InPlaceEditing

    +

    InPlaceEditing

    Use the following code to create a basic inputEx DataTable

    @@ -44,12 +44,12 @@ myDataSource.responseSchema = { fields: ["id","date","quantity","amount","title", "category"] }; var myFields = [ - {type: 'hidden', inputParams: {label: 'Id', name: 'id'} }, - {type: 'date', inputParams: {label: 'Date', name: 'date', showMsg: true} }, - {type: 'integer', inputParams: {label: 'Quantity', name: 'quantity'} }, - {type: 'number', inputParams: {label: 'Amount', name: 'amount'} }, - {type: 'string', inputParams: {label: 'Title', name: 'title'} }, - {type: 'select', inputParams: {label: 'Category', name: 'category', selectValues: ['SF', 'Novel', 'Philosophy']}} + {type: 'hidden', label: 'Id', name: 'id' }, + {type: 'date', label: 'Date', name: 'date', showMsg: true}, + {type: 'integer', label: 'Quantity', name: 'quantity'}, + {type: 'number', label: 'Amount', name: 'amount'}, + {type: 'string', label: 'Title', name: 'title'}, + {type: 'select', label: 'Category', name: 'category', selectValues: ['SF', 'Novel', 'Philosophy']} ]; new inputEx.widget.dtInPlaceEdit({ @@ -66,7 +66,7 @@
    -

    InPlaceEditing Advanced

    +

    InPlaceEditing Advanced

    Use the following code to create a basic inputEx DataTable

    @@ -82,13 +82,13 @@ myDataSource.responseSchema = { fields: ["id","date","quantity","amount","title", "category","color"] }; var myFields = [ - {type: 'hidden', inputParams: {label: 'Id', name: 'id'} }, - {type: 'date', inputParams: {label: 'Date', name: 'date'} }, - {type: 'integer', inputParams: {label: 'Quantity', name: 'quantity', size:4} }, - {type: 'number', inputParams: {label: 'Amount', name: 'amount', size:4, showMsg:true, required:true} }, - {type: 'string', inputParams: {label: 'Title', name: 'title', required:true} }, - {type: 'select', inputParams: {label: 'Category', name: 'category', selectValues: ['SF', 'Novel', 'Philosophy']}}, - {type: 'color', inputParams: {label: 'Couleur', name: 'color'} } + {type: 'hidden', label: 'Id', name: 'id' }, + {type: 'date', label: 'Date', name: 'date' }, + {type: 'integer', label: 'Quantity', name: 'quantity', size:4 }, + {type: 'number', label: 'Amount', name: 'amount', size:4, showMsg:true, required:true }, + {type: 'string', label: 'Title', name: 'title', required:true }, + {type: 'select', label: 'Category', name: 'category', selectValues: ['SF', 'Novel', 'Philosophy']}, + {type: 'color', label: 'Couleur', name: 'color' } ]; var myDatatable = new inputEx.widget.dtInPlaceEdit({ @@ -161,7 +161,7 @@
    -

    Add with a dialog

    +

    Add with a dialog

    Use the following code to add items through a dialog

    @@ -245,6 +245,7 @@ + diff --git a/lib/inputex/examples/email_field.html b/lib/inputex/examples/email_field.html index 72694c28..98760dc6 100644 --- a/lib/inputex/examples/email_field.html +++ b/lib/inputex/examples/email_field.html @@ -20,13 +20,13 @@ -

    inputEx - EmailField Usage

    +

    inputEx - EmailField Usage

    -

    Basic EmailField creation

    +

    Basic EmailField creation

    Use the following code to create a basic inputEx EmailField.

    diff --git a/lib/inputex/examples/file_field.html b/lib/inputex/examples/file_field.html index ed13dd7e..00e61ddb 100644 --- a/lib/inputex/examples/file_field.html +++ b/lib/inputex/examples/file_field.html @@ -20,13 +20,13 @@ -

    inputEx - FileField Usage

    +

    inputEx - FileField Usage

    -

    File upload

    +

    File upload

    To create a file upload form, you must use the "file" field within a form with the enctype attribute set to 'multipart/form-data'.

    @@ -36,17 +36,15 @@
    @@ -61,6 +59,7 @@ + diff --git a/lib/inputex/examples/form.html b/lib/inputex/examples/form.html index 090b2e24..b28eed47 100644 --- a/lib/inputex/examples/form.html +++ b/lib/inputex/examples/form.html @@ -24,88 +24,98 @@ -

    inputEx - Form Usage

    +

    inputEx - Form Usage

    -

    Basic Form creation

    -

    Use the following code to create a basic inputEx Form.

    -
    -
    - -
    +

    Basic Form creation

    +

    Use the following code to create a basic inputEx Form.

    +
    +
    + +
    -

    Multi-group Form

    -

    Use the following code to create a Form with multiple Groups (fieldsets).

    -
    -
    +

    Multi-group Form

    +

    Use the following code to create a Form with multiple Groups (fieldsets).

    +
    +
    + new inputEx.Form( { + fields: [ + { + type:'group', + legend:'group 1', + name:'group1', + fields:[ + {type: 'select', label: 'Title', name: 'title', selectValues: ['Mr','Mrs','Mme'] }, + {label: 'Firstname', name: 'firstname', required: true, value:'Jacques' }, + {label: 'Lastname', name: 'lastname', value:'Dupont' } + ] + }, + { + type:'group', + legend:'group 2', + name:'group2', + fields:[ + {type:'email', label: 'Email', name: 'email'}, + {type:'url', label: 'Website',name:'website'} + ] + } + ], + buttons: [{type: 'submit', value: 'Change'}], + parentEl: 'container2' + }); +
    -

    Send in json with ajax

    - -

    How to send the form data using Ajax

    - -
    - -
    - -
    +

    Send in json with ajax

    + +

    How to send the form data using Ajax

    + +
    + +
    + +
    @@ -113,65 +123,241 @@
    -

    Send with ajax using url encoded parameters

    -

    How to send the form data using Ajax

    -
    -
    - -
    +

    Send with ajax using url encoded parameters

    +

    How to send the form data using Ajax

    +
    +
    + +
    -

    Send with ajax using url encoded parameters wrapped in an object

    -

    Use wrapObject

    -
    -
    - -
    +

    Send with ajax using url encoded parameters wrapped in an object

    +

    Use wrapObject

    +
    +
    + +
    +
    + + + +
    +

    Setting and getting form value

    +

    Use the following code to set or get the value from javascript

    +
    +
    + +
    +
    + + +
    +

    Different button types

    +

    Use the following code to create submit buttons, or "link" buttons.

    +
    +
    + +
    +

    You can use 3 types of inputEx form buttons : +

      +
    • submit : a (<input type="submit" />)-tag is created. A handler is automatically added on 'click' to submit the form only if it validates (no invalid fields, or no empty required fields).
    • +
    • submit-link : same as 'submit' type, but with a different markup (<a><span>Submit</span></a>) to render as 'link'. The same handler as with 'submit' type is added on link.
    • +
    • link : same markup as 'submit-link' but with no handler to submit the form. You must add your own 'onClick' function to trigger a specific action. The default link behavior is disabled, so you don't have to do it yourself in the onClick handler.
    • +
    +

    +
    +

    "link" and "submit-link" buttons are also useful because : +

      +
    • they allow to differenciate strong actions (like a "submit"), and weak actions (like a form "reset")
    • +
    • they are easier to style (see : styling buttons example)
    • +
    +

    +
    + + + +
    +

    Destroy a form

    +

    Remove DOM nodes, remove event listeners, free memory...

    +
    +
    + +
    @@ -187,6 +373,7 @@ + diff --git a/lib/inputex/examples/google-charts.html b/lib/inputex/examples/google-charts.html index 49a1492d..beeb6e82 100644 --- a/lib/inputex/examples/google-charts.html +++ b/lib/inputex/examples/google-charts.html @@ -54,10 +54,10 @@
    -

    inputExChart

    +

    inputExChart

    Enter the desired configuration and click the 'Update' button.
    - This application is an example for the inputEx Library.
    + This application is an example for the inputEx Library.

    @@ -137,20 +137,21 @@ form = new inputEx.Form({ parentEl: 'htmlFormContainer', fields: [ - { inputParams: {label: 'Title', name: 'title', value: 'My Graph'} }, - { type: 'integer', inputParams: {label: 'Width', name: 'width', value: 320} }, - { type: 'integer', inputParams: {label: 'Height', name: 'height', value: 240} }, - { type: 'list', inputParams: {label: 'Labels', name: 'labels', value:['Q1','Q2','Q3','Q4']}}, - { type: 'list', inputParams: {label: 'Colors',name: 'colors', elementType: {type: 'color', inputParams:{} }, value: ['#ff0000','#00ff00','#0000ff','#ffff00'] }}, - { type: 'list', inputParams: { - label: 'Series', - name: 'series', - elementType: { - type: 'list', - inputParams: { type: 'integer', inputParams: {} } - }, - value: [[10,20,30,40],[40,30,20,10],[15,15,15,15],[0,10,25,50]] - }} + { label: 'Title', name: 'title', value: 'My Graph' }, + { type: 'integer', label: 'Width', name: 'width', value: 320 }, + { type: 'integer', label: 'Height', name: 'height', value: 240 }, + { type: 'list', label: 'Labels', name: 'labels', value:['Q1','Q2','Q3','Q4']}, + { type: 'list', label: 'Colors',name: 'colors', elementType: {type: 'color' }, value: ['#ff0000','#00ff00','#0000ff','#ffff00'] }, + { + type: 'list', + label: 'Series', + name: 'series', + elementType: { + type: 'list', + elementType: {type:'integer'} + }, + value: [[10,20,30,40],[40,30,20,10],[15,15,15,15],[0,10,25,50]] + } ] }); diff --git a/lib/inputex/examples/group.html b/lib/inputex/examples/group.html index cde55ee3..e18842e5 100644 --- a/lib/inputex/examples/group.html +++ b/lib/inputex/examples/group.html @@ -21,23 +21,26 @@ -

    inputEx - Group Usage

    +

    inputEx - Group Usage

    -

    Basic Group creation

    +

    Basic Group creation

    Use the following code to create a basic inputEx group.

    @@ -47,7 +50,7 @@
    -

    Composition

    +

    Composition

    The inputEx.Group class inherits from inputEx.Field

    @@ -55,9 +58,7 @@ new inputEx.ListField({ elementType: { type: 'group', - inputParams: { - fields: contactFormFields - } + fields: contactFormFields }, parentEl: 'container2' }); @@ -68,7 +69,7 @@
    -

    Updated event

    +

    Updated event

    How to listen to the updated event :

    @@ -88,10 +89,14 @@ title: 'Mme', firstname: 'Eric', lastname: 'Abouaf', - happy: false, + happy: "y", email: 'something@email.com', - website: 'http://javascript.neyric.com/inputex' + website: 'http://neyric.github.com/inputex', + yellow: true }); + // when you don't pass all values, default values are applied + // to missing fields (e.g. : 'blue' and 'red' fields) + }); el.appendChild(setValueButton); @@ -102,7 +107,7 @@
    -

    Collapsible

    +

    Collapsible

    Collapsible

    @@ -116,32 +121,30 @@
    -

    Composition

    +

    Composition

    Composition

    @@ -201,7 +204,7 @@
    -

    Flatten output value for a sub-group

    +

    Flatten output value for a sub-group

    The parent group will then flatten the sub-group value within its value.

    In this example, we return {firstname: ..., lastname: ..., title:... } instead of { MySubForm: {firstname: ..., lastname: ...}, title:... }.

    @@ -210,20 +213,18 @@ var flattenGroup = new inputEx.Group({ parentEl: 'container7', legend: 'Flatten demo', - inputParams: {name: "MyForm"}, + name: "MyForm", fields: [ { type: 'group', - inputParams: { - name: "MySubForm", - flatten: true, - fields: [ - {inputParams: {label: 'Firstname', name: 'firstname' }}, - {inputParams: {label: 'Lastname', name: 'lastname',description: "Firstname and Lastname are within the same sub-group" }} - ] - } + name: "MySubForm", + flatten: true, + fields: [ + { label: 'Firstname', name: 'firstname' }, + { label: 'Lastname', name: 'lastname', description: "Firstname and Lastname are within the same sub-group" } + ] }, - { inputParams: {label: 'Title', name: 'title' } } + { label: 'Title', name: 'title' } ] }); flattenGroup.updatedEvt.subscribe(function(e,params) { @@ -239,7 +240,7 @@
    -

    Set error messages

    +

    Set error messages

    Use the setErrors method on Group or Form instances to set error messages. The field will show the message only if the showMsg option is enabled on this field.

    This feature is helpful for Ajax forms with server-side validation.

    @@ -247,11 +248,11 @@
    @@ -38,7 +38,7 @@
    -

    Complex group example

    +

    Complex group example

    Combine InPlaceEdit and groups

    @@ -47,17 +47,15 @@ parentEl: 'container2', editorField:{ type:'group', - inputParams: { - fields: [ - { inputParams: {label: 'Firstname',name: 'firstname' } }, - { inputParams: {label: 'Lastname', name: 'lastname' } }, - { type:'url', inputParams: {label: 'Photo', name:'picUrl', favicon: false} } - ] - } + fields: [ + { label: 'Firstname',name: 'firstname' }, + { label: 'Lastname', name: 'lastname' }, + { type:'url', label: 'Photo', name:'picUrl', favicon: false } + ] }, visu: {visuType: 'func', func: function(val) { if( YAHOO.lang.isUndefined(val) ) return inputEx.messages.emptyInPlaceEdit; - return '
    '+val.firstname+' '+val.lastname+''; + return '
    '+val.firstname+' '+val.lastname+''; }}, value: { firstname: 'Lena', @@ -73,12 +71,12 @@
    -

    Getting the value

    +

    Getting the value

    When the editor is opened, getValue return the editor value.

    @@ -140,6 +134,7 @@ + diff --git a/lib/inputex/examples/inputExHTML/ObjectField.js b/lib/inputex/examples/inputExHTML/ObjectField.js index f6d601dd..17cfe362 100644 --- a/lib/inputex/examples/inputExHTML/ObjectField.js +++ b/lib/inputex/examples/inputExHTML/ObjectField.js @@ -1,7 +1,5 @@ (function() { - var inputEx = inputEx; - /** * @class list of PairField where where the returned value is converted to an object * @extends inputEx.ListField @@ -11,12 +9,10 @@ inputEx.ObjectField = function(options) { options.elementType = { type: 'combine', - inputParams: { - fields: [ - {type: 'string', inputParams: {size: 10} }, - {type:'string', inputParams: {size: 10} } - ] - } + fields: [ + {type: 'string', size: 10 }, + {type:'string', size: 10 } + ] }; inputEx.ObjectField.superclass.constructor.call(this, options); }; diff --git a/lib/inputex/examples/inputExHTML/index.html b/lib/inputex/examples/inputExHTML/index.html index 220fc47f..337d4773 100644 --- a/lib/inputex/examples/inputExHTML/index.html +++ b/lib/inputex/examples/inputExHTML/index.html @@ -14,7 +14,7 @@
    @@ -84,7 +73,7 @@
    -

    Test more options

    +

    Test more options

    Values different from choices, required field, etc...

    @@ -121,7 +110,7 @@
    -

    Advanced allowAny option

    +

    Advanced allowAny option

    The "allowAny" option adds a radio associated to a StringField to let the user enter any value.

    @@ -166,6 +155,31 @@
    + + +
    +

    Disable RadioField

    +

    Disable method

    +
    +
    + +
    +
    + + diff --git a/lib/inputex/examples/rpc/example.html b/lib/inputex/examples/rpc/example.html index 5bbe5e2c..dbbe5e23 100644 --- a/lib/inputex/examples/rpc/example.html +++ b/lib/inputex/examples/rpc/example.html @@ -51,6 +51,7 @@ + diff --git a/lib/inputex/examples/rpc/flickr.html b/lib/inputex/examples/rpc/flickr.html index a9947ec2..64495804 100644 --- a/lib/inputex/examples/rpc/flickr.html +++ b/lib/inputex/examples/rpc/flickr.html @@ -28,7 +28,7 @@
    -

    YUI-RPC example with flickr

    +

    YUI-RPC example with flickr

    This example uses the Flickr SMD to generate the form using inputEx.RPC.generateServiceForm.

    The request is handled by YUI-RPC (using jsonp), which callbacks to our simple viewing method.

    @@ -74,6 +74,7 @@ + diff --git a/lib/inputex/examples/rte_field.html b/lib/inputex/examples/rte_field.html index 425ff6b0..fb878144 100644 --- a/lib/inputex/examples/rte_field.html +++ b/lib/inputex/examples/rte_field.html @@ -20,12 +20,12 @@ -

    inputEx - RTEField Usage

    +

    inputEx - RTEField Usage

    -

    Basic RTEField creation

    +

    Basic RTEField creation

    Use the following code to create a basic inputEx RTEField.

    @@ -38,7 +38,7 @@
    -

    RTEField setValue/getValue

    +

    RTEField setValue/getValue

    Test for setValue/getValue using the RTEField.

    @@ -63,12 +63,12 @@
    -

    Using the SimpleEditor

    +

    Using the SimpleEditor

    Use the following code to create a SimpleEditor widget

    diff --git a/lib/inputex/examples/select_field.html b/lib/inputex/examples/select_field.html index 4a5a8c9e..cc4633e5 100644 --- a/lib/inputex/examples/select_field.html +++ b/lib/inputex/examples/select_field.html @@ -20,12 +20,12 @@ -

    inputEx - SelectField Usage

    +

    inputEx - SelectField Usage

    -

    Basic SelectField creation

    +

    Basic SelectField creation

    Use the following code to create a basic inputEx SelectField.

    @@ -38,7 +38,7 @@
    -

    Updated event

    +

    Updated event

    How to listen to the updated event :

    @@ -69,7 +69,7 @@
    -

    addOption

    +

    addOption

    Add options dynamically

    @@ -112,7 +112,7 @@
    -

    removeOption

    +

    removeOption

    Remove options dynamically

    diff --git a/lib/inputex/examples/serialize_field.html b/lib/inputex/examples/serialize_field.html new file mode 100644 index 00000000..f58b08c9 --- /dev/null +++ b/lib/inputex/examples/serialize_field.html @@ -0,0 +1,148 @@ + + + + + inputEx - SerializeField Usage + + + + + + + + + + + + + + + + + + + +

    inputEx - SerializeField Usage

    + + + +
    +

    Basic SerializeField creation

    +

    +
    +
    + +
    +
    + + + + +
    +

    XML serialization

    +

    There is an issue because ObjTree needs only 1 root element :

    +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/inputex/examples/slider_field.html b/lib/inputex/examples/slider_field.html index 89738af1..ae92533e 100644 --- a/lib/inputex/examples/slider_field.html +++ b/lib/inputex/examples/slider_field.html @@ -18,13 +18,13 @@ -

    inputEx - SliderField Usage

    +

    inputEx - SliderField Usage

    -

    Basic SliderField creation

    +

    Basic SliderField creation

    A simple SliderField instance

    @@ -42,7 +42,7 @@
    -

    Updated Event

    +

    Updated Event

    The updated event

    @@ -68,7 +68,7 @@
    -

    Boundaries

    +

    Boundaries

    WARNING: this feature does NOT work (click the button)

    diff --git a/lib/inputex/examples/string_field.html b/lib/inputex/examples/string_field.html index 1fe29b2c..1bd2c09f 100644 --- a/lib/inputex/examples/string_field.html +++ b/lib/inputex/examples/string_field.html @@ -24,12 +24,12 @@ -

    inputEx - StringField Usage

    +

    inputEx - StringField Usage

    -

    Basic StringField creation

    +

    Basic StringField creation

    Use the following code to create a basic inputEx field.

    @@ -42,7 +42,7 @@
    -

    With a default value

    +

    With a default value

    You can set a default value by specifying the 'value' property in the options object.

    @@ -55,7 +55,7 @@
    -

    Changing the size

    +

    Changing the size

    You can set the size of the input.

    @@ -68,7 +68,7 @@
    -

    Maximum and minimum length

    +

    Maximum and minimum length

    You can add a maximum/minimum length on string fields :

    @@ -81,7 +81,7 @@
    -

    Required

    +

    Required

    If the 'required' property is set, the 'validate' method will return false if the field is empty. In a form, the 'validate' method will be called on each field and will return false if at least one field doesn't validate.

    @@ -94,7 +94,7 @@
    -

    Regular Expression 1

    +

    Regular Expression 1

    Here is an example on how to check the value with a regular expression. (It is better to use the IntegerField, but this is a simple example.)

    @@ -108,7 +108,7 @@
    -

    Regular Expression 2

    +

    Regular Expression 2

    The basic Field class can use regular expressions to validate the field content. Here is an example with this wonderful email regular expression (note that there is an Email Field class).

    @@ -122,7 +122,7 @@
    -

    Enabling/Disabling inputs

    +

    Enabling/Disabling inputs

    You can call the methods 'disable' or 'enable' to set the state of the field.

    @@ -136,7 +136,7 @@
    -

    Updated event

    +

    Updated event

    How to listen to the updated event :

    @@ -157,7 +157,7 @@
    -

    Type invitation

    +

    Type invitation

    Display a text when the field is empty.

    @@ -171,8 +171,8 @@
    -

    Multiple options

    -

    Check multiple options config : typeInvite, required, minLength  --  Test setValue and getValue methods

    +

    Various options

    +

    Config with various options : typeInvite, required, minLength, trim  --  Test setValue and getValue methods

    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +

    CSS Credits : http://www.jankoatwarpspeed.com/post/2008/04/30/make-fancy-buttons-using-css-sliding-doors-technique.aspx

    +
    + + + \ No newline at end of file diff --git a/lib/inputex/examples/styling_description.html b/lib/inputex/examples/styling_description.html index 700036e2..b7af201b 100644 --- a/lib/inputex/examples/styling_description.html +++ b/lib/inputex/examples/styling_description.html @@ -19,11 +19,11 @@ -

    inputEx - Styling descriptions

    +

    inputEx - Styling descriptions

    -

    Styling the field descriptions

    +

    Styling the field descriptions

    You can style the description to appear when the field is focused :