From 021e043e397a9d6acae4bbe06e3b4495226d92d9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 30 Jul 2021 15:45:14 +0800 Subject: [PATCH] sync --- docs/src/Roo_bootstrap_CardImage.js.html | 33 - docs/src/Roo_bootstrap_CardUploader.js.html | 386 -- docs/src/Roo_bootstrap_CheckBox.js.html | 729 ---- docs/src/Roo_bootstrap_ComboBox.js.html | 3100 ----------------- docs/src/Roo_bootstrap_DateField.js.html | 1144 ------ docs/src/Roo_bootstrap_DateSplitField.js.html | 432 --- docs/src/Roo_bootstrap_FieldLabel.js.html | 210 -- docs/src/Roo_bootstrap_Form.js.html | 796 ----- docs/src/Roo_bootstrap_HtmlEditor.js.html | 435 --- docs/src/Roo_bootstrap_Input.js.html | 1108 ------ docs/src/Roo_bootstrap_Markdown.js.html | 96 - docs/src/Roo_bootstrap_Menu.js.html | 482 --- docs/src/Roo_bootstrap_MenuItem.js.html | 132 - docs/src/Roo_bootstrap_MenuMgr.js.html | 199 -- docs/src/Roo_bootstrap_MenuSeparator.js.html | 39 - docs/src/Roo_bootstrap_MoneyField.js.html | 722 ---- docs/src/Roo_bootstrap_MonthField.js.html | 393 --- docs/src/Roo_bootstrap_NavGroup.js.html | 299 -- docs/src/Roo_bootstrap_NavHeaderbar.js.html | 187 - docs/src/Roo_bootstrap_NavItem.js.html | 378 -- docs/src/Roo_bootstrap_NavProgressBar.js.html | 252 -- .../src/Roo_bootstrap_NavProgressItem.js.html | 152 - docs/src/Roo_bootstrap_NavSidebar.js.html | 46 - docs/src/Roo_bootstrap_NavSidebarItem.js.html | 227 -- docs/src/Roo_bootstrap_NavSimplebar.js.html | 128 - docs/src/Roo_bootstrap_Navbar.js.html | 171 - docs/src/Roo_bootstrap_NumberField.js.html | 256 -- docs/src/Roo_bootstrap_PhoneInput.js.html | 562 --- docs/src/Roo_bootstrap_PhoneInputData.js.html | 1260 ------- docs/src/Roo_bootstrap_Radio.js.html | 80 - docs/src/Roo_bootstrap_RadioSet.js.html | 345 -- docs/src/Roo_bootstrap_SecurePass.js.html | 354 -- ...strap_Table_AbstractSelectionModel.js.html | 6 - ..._bootstrap_Table_RowSelectionModel.js.html | 499 --- docs/src/Roo_bootstrap_TextArea.js.html | 370 -- docs/src/Roo_bootstrap_TimeField.js.html | 517 --- docs/src/Roo_bootstrap_TriggerField.js.html | 606 ---- ...otstrap_htmleditor_ToolbarStandard.js.html | 288 -- .../Roo_bootstrap_layout_layout-ns.js.html | 1 - .../src/Roo_bootstrap_menu_depricated.js.html | 6 - docs/src/Roo_bootstrap_nav_depricated.js.html | 13 - docs/src/Roo_bootstrap_panel_panel-ns.js.html | 1 - docs/symbols/Roo.bootstrap.CardImage.json | 25 - docs/symbols/Roo.bootstrap.CardUploader.json | 1494 -------- docs/symbols/Roo.bootstrap.CheckBox.json | 2008 ----------- docs/symbols/Roo.bootstrap.ComboBox.json | 2790 --------------- docs/symbols/Roo.bootstrap.DateField.json | 2010 ----------- .../symbols/Roo.bootstrap.DateSplitField.json | 1305 ------- docs/symbols/Roo.bootstrap.FieldLabel.json | 1276 ------- docs/symbols/Roo.bootstrap.Form.json | 1622 --------- docs/symbols/Roo.bootstrap.HtmlEditor.json | 2167 ------------ docs/symbols/Roo.bootstrap.Input.json | 1890 ---------- docs/symbols/Roo.bootstrap.Markdown.json | 1898 ---------- docs/symbols/Roo.bootstrap.Menu.json | 1302 ------- docs/symbols/Roo.bootstrap.MenuItem.json | 1148 ------ docs/symbols/Roo.bootstrap.MenuMgr.json | 66 - docs/symbols/Roo.bootstrap.MenuSeparator.json | 1080 ------ docs/symbols/Roo.bootstrap.MoneyField.json | 2871 --------------- docs/symbols/Roo.bootstrap.MonthField.json | 1912 ---------- docs/symbols/Roo.bootstrap.NavGroup.json | 1316 ------- docs/symbols/Roo.bootstrap.NavHeaderbar.json | 1230 ------- docs/symbols/Roo.bootstrap.NavItem.json | 1286 ------- .../symbols/Roo.bootstrap.NavProgressBar.json | 1118 ------ .../Roo.bootstrap.NavProgressItem.json | 1142 ------ docs/symbols/Roo.bootstrap.NavSidebar.json | 1139 ------ .../symbols/Roo.bootstrap.NavSidebarItem.json | 1287 ------- docs/symbols/Roo.bootstrap.NavSimplebar.json | 1187 ------- docs/symbols/Roo.bootstrap.Navbar.json | 1138 ------ docs/symbols/Roo.bootstrap.NumberField.json | 1940 ----------- docs/symbols/Roo.bootstrap.PhoneInput.json | 1956 ----------- docs/symbols/Roo.bootstrap.Radio.json | 1097 ------ docs/symbols/Roo.bootstrap.RadioSet.json | 1940 ----------- docs/symbols/Roo.bootstrap.SecurePass.json | 1886 ---------- ...ootstrap.Table.AbstractSelectionModel.json | 370 -- ...Roo.bootstrap.Table.RowSelectionModel.json | 558 --- docs/symbols/Roo.bootstrap.TextArea.json | 1903 ---------- docs/symbols/Roo.bootstrap.TimeField.json | 1906 ---------- docs/symbols/Roo.bootstrap.TriggerField.json | 1945 ----------- ....bootstrap.htmleditor.ToolbarStandard.json | 1217 ------- docs/symbols/Roo.bootstrap.htmleditor.json | 25 - docs/symbols/Roo.dd.DragDropMgr.json | 862 ----- docs/symbols/Roo.namespace.json | 941 ----- roojs-bootstrap-debug.js | 615 ++-- roojs-bootstrap.js | 318 +- 84 files changed, 481 insertions(+), 74145 deletions(-) delete mode 100644 docs/src/Roo_bootstrap_CardImage.js.html delete mode 100644 docs/src/Roo_bootstrap_CardUploader.js.html delete mode 100644 docs/src/Roo_bootstrap_CheckBox.js.html delete mode 100644 docs/src/Roo_bootstrap_ComboBox.js.html delete mode 100644 docs/src/Roo_bootstrap_DateField.js.html delete mode 100644 docs/src/Roo_bootstrap_DateSplitField.js.html delete mode 100644 docs/src/Roo_bootstrap_FieldLabel.js.html delete mode 100644 docs/src/Roo_bootstrap_Form.js.html delete mode 100644 docs/src/Roo_bootstrap_HtmlEditor.js.html delete mode 100644 docs/src/Roo_bootstrap_Input.js.html delete mode 100644 docs/src/Roo_bootstrap_Markdown.js.html delete mode 100644 docs/src/Roo_bootstrap_Menu.js.html delete mode 100644 docs/src/Roo_bootstrap_MenuItem.js.html delete mode 100644 docs/src/Roo_bootstrap_MenuMgr.js.html delete mode 100644 docs/src/Roo_bootstrap_MenuSeparator.js.html delete mode 100644 docs/src/Roo_bootstrap_MoneyField.js.html delete mode 100644 docs/src/Roo_bootstrap_MonthField.js.html delete mode 100644 docs/src/Roo_bootstrap_NavGroup.js.html delete mode 100644 docs/src/Roo_bootstrap_NavHeaderbar.js.html delete mode 100644 docs/src/Roo_bootstrap_NavItem.js.html delete mode 100644 docs/src/Roo_bootstrap_NavProgressBar.js.html delete mode 100644 docs/src/Roo_bootstrap_NavProgressItem.js.html delete mode 100644 docs/src/Roo_bootstrap_NavSidebar.js.html delete mode 100644 docs/src/Roo_bootstrap_NavSidebarItem.js.html delete mode 100644 docs/src/Roo_bootstrap_NavSimplebar.js.html delete mode 100644 docs/src/Roo_bootstrap_Navbar.js.html delete mode 100644 docs/src/Roo_bootstrap_NumberField.js.html delete mode 100644 docs/src/Roo_bootstrap_PhoneInput.js.html delete mode 100644 docs/src/Roo_bootstrap_PhoneInputData.js.html delete mode 100644 docs/src/Roo_bootstrap_Radio.js.html delete mode 100644 docs/src/Roo_bootstrap_RadioSet.js.html delete mode 100644 docs/src/Roo_bootstrap_SecurePass.js.html delete mode 100644 docs/src/Roo_bootstrap_Table_AbstractSelectionModel.js.html delete mode 100644 docs/src/Roo_bootstrap_Table_RowSelectionModel.js.html delete mode 100644 docs/src/Roo_bootstrap_TextArea.js.html delete mode 100644 docs/src/Roo_bootstrap_TimeField.js.html delete mode 100644 docs/src/Roo_bootstrap_TriggerField.js.html delete mode 100644 docs/src/Roo_bootstrap_htmleditor_ToolbarStandard.js.html delete mode 100644 docs/src/Roo_bootstrap_layout_layout-ns.js.html delete mode 100644 docs/src/Roo_bootstrap_menu_depricated.js.html delete mode 100644 docs/src/Roo_bootstrap_nav_depricated.js.html delete mode 100644 docs/src/Roo_bootstrap_panel_panel-ns.js.html delete mode 100644 docs/symbols/Roo.bootstrap.CardImage.json delete mode 100644 docs/symbols/Roo.bootstrap.CardUploader.json delete mode 100644 docs/symbols/Roo.bootstrap.CheckBox.json delete mode 100644 docs/symbols/Roo.bootstrap.ComboBox.json delete mode 100644 docs/symbols/Roo.bootstrap.DateField.json delete mode 100644 docs/symbols/Roo.bootstrap.DateSplitField.json delete mode 100644 docs/symbols/Roo.bootstrap.FieldLabel.json delete mode 100644 docs/symbols/Roo.bootstrap.Form.json delete mode 100644 docs/symbols/Roo.bootstrap.HtmlEditor.json delete mode 100644 docs/symbols/Roo.bootstrap.Input.json delete mode 100644 docs/symbols/Roo.bootstrap.Markdown.json delete mode 100644 docs/symbols/Roo.bootstrap.Menu.json delete mode 100644 docs/symbols/Roo.bootstrap.MenuItem.json delete mode 100644 docs/symbols/Roo.bootstrap.MenuMgr.json delete mode 100644 docs/symbols/Roo.bootstrap.MenuSeparator.json delete mode 100644 docs/symbols/Roo.bootstrap.MoneyField.json delete mode 100644 docs/symbols/Roo.bootstrap.MonthField.json delete mode 100644 docs/symbols/Roo.bootstrap.NavGroup.json delete mode 100644 docs/symbols/Roo.bootstrap.NavHeaderbar.json delete mode 100644 docs/symbols/Roo.bootstrap.NavItem.json delete mode 100644 docs/symbols/Roo.bootstrap.NavProgressBar.json delete mode 100644 docs/symbols/Roo.bootstrap.NavProgressItem.json delete mode 100644 docs/symbols/Roo.bootstrap.NavSidebar.json delete mode 100644 docs/symbols/Roo.bootstrap.NavSidebarItem.json delete mode 100644 docs/symbols/Roo.bootstrap.NavSimplebar.json delete mode 100644 docs/symbols/Roo.bootstrap.Navbar.json delete mode 100644 docs/symbols/Roo.bootstrap.NumberField.json delete mode 100644 docs/symbols/Roo.bootstrap.PhoneInput.json delete mode 100644 docs/symbols/Roo.bootstrap.Radio.json delete mode 100644 docs/symbols/Roo.bootstrap.RadioSet.json delete mode 100644 docs/symbols/Roo.bootstrap.SecurePass.json delete mode 100644 docs/symbols/Roo.bootstrap.Table.AbstractSelectionModel.json delete mode 100644 docs/symbols/Roo.bootstrap.Table.RowSelectionModel.json delete mode 100644 docs/symbols/Roo.bootstrap.TextArea.json delete mode 100644 docs/symbols/Roo.bootstrap.TimeField.json delete mode 100644 docs/symbols/Roo.bootstrap.TriggerField.json delete mode 100644 docs/symbols/Roo.bootstrap.htmleditor.ToolbarStandard.json delete mode 100644 docs/symbols/Roo.bootstrap.htmleditor.json delete mode 100644 docs/symbols/Roo.dd.DragDropMgr.json delete mode 100644 docs/symbols/Roo.namespace.json diff --git a/docs/src/Roo_bootstrap_CardImage.js.html b/docs/src/Roo_bootstrap_CardImage.js.html deleted file mode 100644 index cbe50c169e..0000000000 --- a/docs/src/Roo_bootstrap_CardImage.js.html +++ /dev/null @@ -1,33 +0,0 @@ -Roo/bootstrap/CardImage.js/* - * - LGPL - * - * Card header - holder for the card header elements. - * - */ - -/** - * @class Roo.bootstrap.CardImage - * @extends Roo.bootstrap.Image - * Bootstrap Element class - * @constructor - * Create a new Card Image Element - * @param {Object} config The config object - */ - -Roo.bootstrap.CardImage = function(config){ - Roo.bootstrap.CardImage.superclass.constructor.call(this, config); -}; - -Roo.extend(Roo.bootstrap.CardImage, Roo.bootstrap.Image, { - - - container_method : 'getCardImage', - - - - -}); - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_CardUploader.js.html b/docs/src/Roo_bootstrap_CardUploader.js.html deleted file mode 100644 index cf56f5a39a..0000000000 --- a/docs/src/Roo_bootstrap_CardUploader.js.html +++ /dev/null @@ -1,386 +0,0 @@ -Roo/bootstrap/CardUploader.js -/* -* Licence: LGPL -*/ - -/** - * @class Roo.bootstrap.CardUploader - * @extends Roo.bootstrap.Button - * Bootstrap Card Uploader class - it's a button which when you add files to it, adds cards below with preview and the name... - * @cfg {Number} errorTimeout default 3000 - * @cfg {Array} images an array of ?? Img objects ??? when loading existing files.. - * @cfg {Array} html The button text. - - * - * @constructor - * Create a new CardUploader - * @param {Object} config The config object - */ - -Roo.bootstrap.CardUploader = function(config){ - - - - Roo.bootstrap.CardUploader.superclass.constructor.call(this, config); - - - this.fileCollection = new Roo.util.MixedCollection(false,function(r) { - return r.data.id - }); - - this.addEvents({ - // raw events - /** - * @event preview - * When a image is clicked on - and needs to display a slideshow or similar.. - * @param {Roo.bootstrap.Card} this - * @param {Object} The image information data - * - */ - 'preview' : true, - /** - * @event download - * When a the download link is clicked - * @param {Roo.bootstrap.Card} this - * @param {Object} The image information data contains - */ - 'download' : true - - }); -}; - -Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, { - - - errorTimeout : 3000, - - images : false, - - fileCollection : false, - allowBlank : true, - - getAutoCreate : function() - { - - var cfg = { - cls :'form-group' , - cn : [ - - { - tag: 'label', - //cls : 'input-group-addon', - html : this.fieldLabel - - }, - - { - tag: 'input', - type : 'hidden', - name : this.name, - value : this.value, - cls : 'd-none form-control' - }, - - { - tag: 'input', - multiple : 'multiple', - type : 'file', - cls : 'd-none roo-card-upload-selector' - }, - - { - cls : 'roo-card-uploader-button-container w-100 mb-2' - }, - { - cls : 'card-columns roo-card-uploader-container' - } - - ] - }; - - - return cfg; - }, - - getChildContainer : function() /// what children are added to. - { - return this.containerEl; - }, - - getButtonContainer : function() /// what children are added to. - { - return this.el.select(".roo-card-uploader-button-container").first(); - }, - - initEvents : function() - { - - Roo.bootstrap.Input.prototype.initEvents.call(this); - - var t = this; - this.addxtype({ - xns: Roo.bootstrap, - - xtype : 'Button', - container_method : 'getButtonContainer' , - html : this.html, // fix changable? - cls : 'w-100 ', - listeners : { - 'click' : function(btn, e) { - t.onClick(e); - } - } - }); - - - - - this.urlAPI = (window.createObjectURL && window) || - (window.URL && URL.revokeObjectURL && URL) || - (window.webkitURL && webkitURL); - - - - - this.selectorEl = this.el.select('.roo-card-upload-selector', true).first(); - - this.selectorEl.on('change', this.onFileSelected, this); - if (this.images) { - var t = this; - this.images.forEach(function(img) { - t.addCard(img) - }); - this.images = false; - } - this.containerEl = this.el.select('.roo-card-uploader-container', true).first(); - - - }, - - - onClick : function(e) - { - e.preventDefault(); - - this.selectorEl.dom.click(); - - }, - - onFileSelected : function(e) - { - e.preventDefault(); - - if(typeof(this.selectorEl.dom.files) == 'undefined' || !this.selectorEl.dom.files.length){ - return; - } - - Roo.each(this.selectorEl.dom.files, function(file){ - this.addFile(file); - }, this); - - }, - - - - - - addFile : function(file) - { - - if(typeof(file) === 'string'){ - throw "Add file by name?"; // should not happen - return; - } - - if(!file || !this.urlAPI){ - return; - } - - // file; - // file.type; - - var _this = this; - - - var url = _this.urlAPI.createObjectURL( file); - - this.addCard({ - id : Roo.bootstrap.CardUploader.ID--, - is_uploaded : false, - src : url, - srcfile : file, - title : file.name, - mimetype : file.type, - preview : false, - is_deleted : 0 - }); - - }, - - /** - * addCard - add an Attachment to the uploader - * @param data - the data about the image to upload - * - * { - id : 123 - title : "Title of file", - is_uploaded : false, - src : "http://.....", - srcfile : { the File upload object }, - mimetype : file.type, - preview : false, - is_deleted : 0 - .. any other data... - } - * - * - */ - - addCard : function (data) - { - // hidden input element? - // if the file is not an image... - //then we need to use something other that and header_image - var t = this; - // remove..... - var footer = [ - { - xns : Roo.bootstrap, - xtype : 'CardFooter', - items: [ - { - xns : Roo.bootstrap, - xtype : 'Element', - cls : 'd-flex', - items : [ - - { - xns : Roo.bootstrap, - xtype : 'Button', - html : String.format("<small>{0}</small>", data.title), - cls : 'col-10 text-left', - size: 'sm', - weight: 'link', - fa : 'download', - listeners : { - click : function() { - - t.fireEvent( "download", t, data ); - } - } - }, - - { - xns : Roo.bootstrap, - xtype : 'Button', - style: 'max-height: 28px; ', - size : 'sm', - weight: 'danger', - cls : 'col-2', - fa : 'times', - listeners : { - click : function() { - t.removeCard(data.id) - } - } - } - ] - } - - ] - } - - ]; - - var cn = this.addxtype( - { - - xns : Roo.bootstrap, - xtype : 'Card', - closeable : true, - header : !data.mimetype.match(/image/) && !data.preview ? "Document": false, - header_image : data.mimetype.match(/image/) ? data.src : data.preview, - header_image_fit_square: true, // fixme - we probably need to use the 'Img' element to do stuff like this. - data : data, - html : false, - - items : footer, - initEvents : function() { - Roo.bootstrap.Card.prototype.initEvents.call(this); - var card = this; - this.imgEl = this.el.select('.card-img-top').first(); - if (this.imgEl) { - this.imgEl.on('click', function() { t.fireEvent( "preview", t, data ); }, this); - this.imgEl.set({ 'pointer' : 'cursor' }); - - } - this.getCardFooter().addClass('p-1'); - - - } - - } - ); - // dont' really need ot update items. - // this.items.push(cn); - this.fileCollection.add(cn); - - if (!data.srcfile) { - this.updateInput(); - return; - } - - var _t = this; - var reader = new FileReader(); - reader.addEventListener("load", function() { - data.srcdata = reader.result; - _t.updateInput(); - }); - reader.readAsDataURL(data.srcfile); - - - - }, - removeCard : function(id) - { - - var card = this.fileCollection.get(id); - card.data.is_deleted = 1; - card.data.src = ''; /// delete the source - so it reduces size of not uploaded images etc. - //this.fileCollection.remove(card); - //this.items = this.items.filter(function(e) { return e != card }); - // dont' really need ot update items. - card.el.dom.parentNode.removeChild(card.el.dom); - this.updateInput(); - - - }, - reset: function() - { - this.fileCollection.each(function(card) { - if (card.el.dom && card.el.dom.parentNode) { - card.el.dom.parentNode.removeChild(card.el.dom); - } - }); - this.fileCollection.clear(); - this.updateInput(); - }, - - updateInput : function() - { - var data = []; - this.fileCollection.each(function(e) { - data.push(e.data); - - }); - this.inputEl().dom.value = JSON.stringify(data); - - - - } - - -}); - - -Roo.bootstrap.CardUploader.ID = -1; \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_CheckBox.js.html b/docs/src/Roo_bootstrap_CheckBox.js.html deleted file mode 100644 index 259b449533..0000000000 --- a/docs/src/Roo_bootstrap_CheckBox.js.html +++ /dev/null @@ -1,729 +0,0 @@ -Roo/bootstrap/CheckBox.js/* - * - LGPL - * - * CheckBox - * - */ - -/** - * @class Roo.bootstrap.CheckBox - * @extends Roo.bootstrap.Input - * Bootstrap CheckBox class - * - * @cfg {String} valueOff The value that should go into the generated input element's value when unchecked. - * @cfg {String} inputValue The value that should go into the generated input element's value when checked. - * @cfg {String} boxLabel The text that appears beside the checkbox - * @cfg {String} weight (primary|warning|info|danger|success) The text that appears beside the checkbox - * @cfg {Boolean} checked initnal the element - * @cfg {Boolean} inline inline the element (default false) - * @cfg {String} groupId the checkbox group id // normal just use for checkbox - * @cfg {String} tooltip label tooltip - * - * @constructor - * Create a new CheckBox - * @param {Object} config The config object - */ - -Roo.bootstrap.CheckBox = function(config){ - Roo.bootstrap.CheckBox.superclass.constructor.call(this, config); - - this.addEvents({ - /** - * @event check - * Fires when the element is checked or unchecked. - * @param {Roo.bootstrap.CheckBox} this This input - * @param {Boolean} checked The new checked value - */ - check : true, - /** - * @event click - * Fires when the element is click. - * @param {Roo.bootstrap.CheckBox} this This input - */ - click : true - }); - -}; - -Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { - - inputType: 'checkbox', - inputValue: 1, - valueOff: 0, - boxLabel: false, - checked: false, - weight : false, - inline: false, - tooltip : '', - - // checkbox success does not make any sense really.. - invalidClass : "", - validClass : "", - - - getAutoCreate : function() - { - var align = (!this.labelAlign) ? this.parentLabelAlign() : this.labelAlign; - - var id = Roo.id(); - - var cfg = {}; - - cfg.cls = 'form-group form-check ' + this.inputType; //input-group - - if(this.inline){ - cfg.cls += ' ' + this.inputType + '-inline form-check-inline'; - } - - var input = { - tag: 'input', - id : id, - type : this.inputType, - value : this.inputValue, - cls : 'roo-' + this.inputType, //'form-box', - placeholder : this.placeholder || '' - - }; - - if(this.inputType != 'radio'){ - var hidden = { - tag: 'input', - type : 'hidden', - cls : 'roo-hidden-value', - value : this.checked ? this.inputValue : this.valueOff - }; - } - - - if (this.weight) { // Validity check? - cfg.cls += " " + this.inputType + "-" + this.weight; - } - - if (this.disabled) { - input.disabled=true; - } - - if(this.checked){ - input.checked = this.checked; - } - - if (this.name) { - - input.name = this.name; - - if(this.inputType != 'radio'){ - hidden.name = this.name; - input.name = '_hidden_' + this.name; - } - } - - if (this.size) { - input.cls += ' input-' + this.size; - } - - var settings=this; - - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - var inputblock = input; - - if (this.before || this.after) { - - inputblock = { - cls : 'input-group', - cn : [] - }; - - if (this.before) { - inputblock.cn.push({ - tag :'span', - cls : 'input-group-addon', - html : this.before - }); - } - - inputblock.cn.push(input); - - if(this.inputType != 'radio'){ - inputblock.cn.push(hidden); - } - - if (this.after) { - inputblock.cn.push({ - tag :'span', - cls : 'input-group-addon', - html : this.after - }); - } - - } - var boxLabelCfg = false; - - if(this.boxLabel){ - - boxLabelCfg = { - tag: 'label', - //'for': id, // box label is handled by onclick - so no for... - cls: 'box-label', - html: this.boxLabel - }; - if(this.tooltip){ - boxLabelCfg.tooltip = this.tooltip; - } - - } - - - if (align ==='left' && this.fieldLabel.length) { -// Roo.log("left and has label"); - cfg.cn = [ - { - tag: 'label', - 'for' : id, - cls : 'control-label', - html : this.fieldLabel - }, - { - cls : "", - cn: [ - inputblock - ] - } - ]; - - if (boxLabelCfg) { - cfg.cn[1].cn.push(boxLabelCfg); - } - - if(this.labelWidth > 12){ - cfg.cn[0].style = "width: " + this.labelWidth + 'px'; - } - - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - - if(this.labellg > 0){ - cfg.cn[0].cls += ' col-lg-' + this.labellg; - cfg.cn[1].cls += ' col-lg-' + (12 - this.labellg); - } - - if(this.labelmd > 0){ - cfg.cn[0].cls += ' col-md-' + this.labelmd; - cfg.cn[1].cls += ' col-md-' + (12 - this.labelmd); - } - - if(this.labelsm > 0){ - cfg.cn[0].cls += ' col-sm-' + this.labelsm; - cfg.cn[1].cls += ' col-sm-' + (12 - this.labelsm); - } - - if(this.labelxs > 0){ - cfg.cn[0].cls += ' col-xs-' + this.labelxs; - cfg.cn[1].cls += ' col-xs-' + (12 - this.labelxs); - } - - } else if ( this.fieldLabel.length) { -// Roo.log(" label"); - cfg.cn = [ - - { - tag: this.boxLabel ? 'span' : 'label', - 'for': id, - cls: 'control-label box-input-label', - //cls : 'input-group-addon', - html : this.fieldLabel - }, - - inputblock - - ]; - if (boxLabelCfg) { - cfg.cn.push(boxLabelCfg); - } - - } else { - -// Roo.log(" no label && no align"); - cfg.cn = [ inputblock ] ; - if (boxLabelCfg) { - cfg.cn.push(boxLabelCfg); - } - - - } - - - - if(this.inputType != 'radio'){ - cfg.cn.push(hidden); - } - - return cfg; - - }, - - /** - * return the real input element. - */ - inputEl: function () - { - return this.el.select('input.roo-' + this.inputType,true).first(); - }, - hiddenEl: function () - { - return this.el.select('input.roo-hidden-value',true).first(); - }, - - labelEl: function() - { - return this.el.select('label.control-label',true).first(); - }, - /* depricated... */ - - label: function() - { - return this.labelEl(); - }, - - boxLabelEl: function() - { - return this.el.select('label.box-label',true).first(); - }, - - initEvents : function() - { -// Roo.bootstrap.CheckBox.superclass.initEvents.call(this); - - this.inputEl().on('click', this.onClick, this); - - if (this.boxLabel) { - this.el.select('label.box-label',true).first().on('click', this.onClick, this); - } - - this.startValue = this.getValue(); - - if(this.groupId){ - Roo.bootstrap.CheckBox.register(this); - } - }, - - onClick : function(e) - { - if(this.fireEvent('click', this, e) !== false){ - this.setChecked(!this.checked); - } - - }, - - setChecked : function(state,suppressEvent) - { - this.startValue = this.getValue(); - - if(this.inputType == 'radio'){ - - Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){ - e.dom.checked = false; - }); - - this.inputEl().dom.checked = true; - - this.inputEl().dom.value = this.inputValue; - - if(suppressEvent !== true){ - this.fireEvent('check', this, true); - } - - this.validate(); - - return; - } - - this.checked = state; - - this.inputEl().dom.checked = state; - - - this.hiddenEl().dom.value = state ? this.inputValue : this.valueOff; - - if(suppressEvent !== true){ - this.fireEvent('check', this, state); - } - - this.validate(); - }, - - getValue : function() - { - if(this.inputType == 'radio'){ - return this.getGroupValue(); - } - - return this.hiddenEl().dom.value; - - }, - - getGroupValue : function() - { - if(typeof(this.el.up('form').child('input[name='+this.name+']:checked', true)) == 'undefined'){ - return ''; - } - - return this.el.up('form').child('input[name='+this.name+']:checked', true).value; - }, - - setValue : function(v,suppressEvent) - { - if(this.inputType == 'radio'){ - this.setGroupValue(v, suppressEvent); - return; - } - - this.setChecked(((typeof(v) == 'undefined') ? this.checked : (String(v) === String(this.inputValue))), suppressEvent); - - this.validate(); - }, - - setGroupValue : function(v, suppressEvent) - { - this.startValue = this.getValue(); - - Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){ - e.dom.checked = false; - - if(e.dom.value == v){ - e.dom.checked = true; - } - }); - - if(suppressEvent !== true){ - this.fireEvent('check', this, true); - } - - this.validate(); - - return; - }, - - validate : function() - { - if(this.getVisibilityEl().hasClass('hidden')){ - return true; - } - - if( - this.disabled || - (this.inputType == 'radio' && this.validateRadio()) || - (this.inputType == 'checkbox' && this.validateCheckbox()) - ){ - this.markValid(); - return true; - } - - this.markInvalid(); - return false; - }, - - validateRadio : function() - { - if(this.getVisibilityEl().hasClass('hidden')){ - return true; - } - - if(this.allowBlank){ - return true; - } - - var valid = false; - - Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){ - if(!e.dom.checked){ - return; - } - - valid = true; - - return false; - }); - - return valid; - }, - - validateCheckbox : function() - { - if(!this.groupId){ - return (this.getValue() == this.inputValue || this.allowBlank) ? true : false; - //return (this.getValue() == this.inputValue) ? true : false; - } - - var group = Roo.bootstrap.CheckBox.get(this.groupId); - - if(!group){ - return false; - } - - var r = false; - - for(var i in group){ - if(group[i].el.isVisible(true)){ - r = false; - break; - } - - r = true; - } - - for(var i in group){ - if(r){ - break; - } - - r = (group[i].getValue() == group[i].inputValue) ? true : false; - } - - return r; - }, - - /** - * Mark this field as valid - */ - markValid : function() - { - var _this = this; - - this.fireEvent('valid', this); - - var label = Roo.bootstrap.FieldLabel.get(this.name + '-group'); - - if(this.groupId){ - label = Roo.bootstrap.FieldLabel.get(this.groupId + '-group'); - } - - if(label){ - label.markValid(); - } - - if(this.inputType == 'radio'){ - Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){ - var fg = e.findParent('.form-group', false, true); - if (Roo.bootstrap.version == 3) { - fg.removeClass([_this.invalidClass, _this.validClass]); - fg.addClass(_this.validClass); - } else { - fg.removeClass(['is-valid', 'is-invalid']); - fg.addClass('is-valid'); - } - }); - - return; - } - - if(!this.groupId){ - var fg = this.el.findParent('.form-group', false, true); - if (Roo.bootstrap.version == 3) { - fg.removeClass([this.invalidClass, this.validClass]); - fg.addClass(this.validClass); - } else { - fg.removeClass(['is-valid', 'is-invalid']); - fg.addClass('is-valid'); - } - return; - } - - var group = Roo.bootstrap.CheckBox.get(this.groupId); - - if(!group){ - return; - } - - for(var i in group){ - var fg = group[i].el.findParent('.form-group', false, true); - if (Roo.bootstrap.version == 3) { - fg.removeClass([this.invalidClass, this.validClass]); - fg.addClass(this.validClass); - } else { - fg.removeClass(['is-valid', 'is-invalid']); - fg.addClass('is-valid'); - } - } - }, - - /** - * Mark this field as invalid - * @param {String} msg The validation message - */ - markInvalid : function(msg) - { - if(this.allowBlank){ - return; - } - - var _this = this; - - this.fireEvent('invalid', this, msg); - - var label = Roo.bootstrap.FieldLabel.get(this.name + '-group'); - - if(this.groupId){ - label = Roo.bootstrap.FieldLabel.get(this.groupId + '-group'); - } - - if(label){ - label.markInvalid(); - } - - if(this.inputType == 'radio'){ - - Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){ - var fg = e.findParent('.form-group', false, true); - if (Roo.bootstrap.version == 3) { - fg.removeClass([_this.invalidClass, _this.validClass]); - fg.addClass(_this.invalidClass); - } else { - fg.removeClass(['is-invalid', 'is-valid']); - fg.addClass('is-invalid'); - } - }); - - return; - } - - if(!this.groupId){ - var fg = this.el.findParent('.form-group', false, true); - if (Roo.bootstrap.version == 3) { - fg.removeClass([_this.invalidClass, _this.validClass]); - fg.addClass(_this.invalidClass); - } else { - fg.removeClass(['is-invalid', 'is-valid']); - fg.addClass('is-invalid'); - } - return; - } - - var group = Roo.bootstrap.CheckBox.get(this.groupId); - - if(!group){ - return; - } - - for(var i in group){ - var fg = group[i].el.findParent('.form-group', false, true); - if (Roo.bootstrap.version == 3) { - fg.removeClass([_this.invalidClass, _this.validClass]); - fg.addClass(_this.invalidClass); - } else { - fg.removeClass(['is-invalid', 'is-valid']); - fg.addClass('is-invalid'); - } - } - - }, - - clearInvalid : function() - { - Roo.bootstrap.Input.prototype.clearInvalid.call(this); - - // this.el.findParent('.form-group', false, true).removeClass([this.invalidClass, this.validClass]); - - var label = Roo.bootstrap.FieldLabel.get(this.name + '-group'); - - if (label && label.iconEl) { - label.iconEl.removeClass([ label.validClass, label.invalidClass ]); - label.iconEl.removeClass(['is-invalid', 'is-valid']); - } - }, - - disable : function() - { - if(this.inputType != 'radio'){ - Roo.bootstrap.CheckBox.superclass.disable.call(this); - return; - } - - var _this = this; - - if(this.rendered){ - Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){ - _this.getActionEl().addClass(this.disabledClass); - e.dom.disabled = true; - }); - } - - this.disabled = true; - this.fireEvent("disable", this); - return this; - }, - - enable : function() - { - if(this.inputType != 'radio'){ - Roo.bootstrap.CheckBox.superclass.enable.call(this); - return; - } - - var _this = this; - - if(this.rendered){ - Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){ - _this.getActionEl().removeClass(this.disabledClass); - e.dom.disabled = false; - }); - } - - this.disabled = false; - this.fireEvent("enable", this); - return this; - }, - - setBoxLabel : function(v) - { - this.boxLabel = v; - - if(this.rendered){ - this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v); - } - } - -}); - -Roo.apply(Roo.bootstrap.CheckBox, { - - groups: {}, - - /** - * register a CheckBox Group - * @param {Roo.bootstrap.CheckBox} the CheckBox to add - */ - register : function(checkbox) - { - if(typeof(this.groups[checkbox.groupId]) == 'undefined'){ - this.groups[checkbox.groupId] = {}; - } - - if(this.groups[checkbox.groupId].hasOwnProperty(checkbox.name)){ - return; - } - - this.groups[checkbox.groupId][checkbox.name] = checkbox; - - }, - /** - * fetch a CheckBox Group based on the group ID - * @param {string} the group ID - * @returns {Roo.bootstrap.CheckBox} the CheckBox group - */ - get: function(groupId) { - if (typeof(this.groups[groupId]) == 'undefined') { - return false; - } - - return this.groups[groupId] ; - } - - -}); - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_ComboBox.js.html b/docs/src/Roo_bootstrap_ComboBox.js.html deleted file mode 100644 index e17b06f244..0000000000 --- a/docs/src/Roo_bootstrap_ComboBox.js.html +++ /dev/null @@ -1,3100 +0,0 @@ -Roo/bootstrap/ComboBox.js/* - * - LGPL - * * - */ - -/** - * @class Roo.bootstrap.ComboBox - * @extends Roo.bootstrap.TriggerField - * A combobox control with support for autocomplete, remote-loading, paging and many other features. - * @cfg {Boolean} append (true|false) default false - * @cfg {Boolean} autoFocus (true|false) auto focus the first item, default true - * @cfg {Boolean} tickable ComboBox with tickable selections (true|false), default false - * @cfg {Boolean} triggerList trigger show the list or not (true|false) default true - * @cfg {Boolean} showToggleBtn show toggle button or not (true|false) default true - * @cfg {String} btnPosition set the position of the trigger button (left | right) default right - * @cfg {Boolean} animate default true - * @cfg {Boolean} emptyResultText only for touch device - * @cfg {String} triggerText multiple combobox trigger button text default 'Select' - * @cfg {String} emptyTitle default '' - * @cfg {Number} width fixed with? experimental - * @constructor - * Create a new ComboBox. - * @param {Object} config Configuration options - */ -Roo.bootstrap.ComboBox = function(config){ - Roo.bootstrap.ComboBox.superclass.constructor.call(this, config); - this.addEvents({ - /** - * @event expand - * Fires when the dropdown list is expanded - * @param {Roo.bootstrap.ComboBox} combo This combo box - */ - 'expand' : true, - /** - * @event collapse - * Fires when the dropdown list is collapsed - * @param {Roo.bootstrap.ComboBox} combo This combo box - */ - 'collapse' : true, - /** - * @event beforeselect - * Fires before a list item is selected. Return false to cancel the selection. - * @param {Roo.bootstrap.ComboBox} combo This combo box - * @param {Roo.data.Record} record The data record returned from the underlying store - * @param {Number} index The index of the selected item in the dropdown list - */ - 'beforeselect' : true, - /** - * @event select - * Fires when a list item is selected - * @param {Roo.bootstrap.ComboBox} combo This combo box - * @param {Roo.data.Record} record The data record returned from the underlying store (or false on clear) - * @param {Number} index The index of the selected item in the dropdown list - */ - 'select' : true, - /** - * @event beforequery - * Fires before all queries are processed. Return false to cancel the query or set cancel to true. - * The event object passed has these properties: - * @param {Roo.bootstrap.ComboBox} combo This combo box - * @param {String} query The query - * @param {Boolean} forceAll true to force "all" query - * @param {Boolean} cancel true to cancel the query - * @param {Object} e The query event object - */ - 'beforequery': true, - /** - * @event add - * Fires when the 'add' icon is pressed (add a listener to enable add button) - * @param {Roo.bootstrap.ComboBox} combo This combo box - */ - 'add' : true, - /** - * @event edit - * Fires when the 'edit' icon is pressed (add a listener to enable add button) - * @param {Roo.bootstrap.ComboBox} combo This combo box - * @param {Roo.data.Record|false} record The data record returned from the underlying store (or false on nothing selected) - */ - 'edit' : true, - /** - * @event remove - * Fires when the remove value from the combobox array - * @param {Roo.bootstrap.ComboBox} combo This combo box - */ - 'remove' : true, - /** - * @event afterremove - * Fires when the remove value from the combobox array - * @param {Roo.bootstrap.ComboBox} combo This combo box - */ - 'afterremove' : true, - /** - * @event specialfilter - * Fires when specialfilter - * @param {Roo.bootstrap.ComboBox} combo This combo box - */ - 'specialfilter' : true, - /** - * @event tick - * Fires when tick the element - * @param {Roo.bootstrap.ComboBox} combo This combo box - */ - 'tick' : true, - /** - * @event touchviewdisplay - * Fires when touch view require special display (default is using displayField) - * @param {Roo.bootstrap.ComboBox} combo This combo box - * @param {Object} cfg set html . - */ - 'touchviewdisplay' : true - - }); - - this.item = []; - this.tickItems = []; - - this.selectedIndex = -1; - if(this.mode == 'local'){ - if(config.queryDelay === undefined){ - this.queryDelay = 10; - } - if(config.minChars === undefined){ - this.minChars = 0; - } - } -}; - -Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { - - /** - * @cfg {Boolean} lazyRender True to prevent the ComboBox from rendering until requested (should always be used when - * rendering into an Roo.Editor, defaults to false) - */ - /** - * @cfg {Boolean/Object} autoCreate A DomHelper element spec, or true for a default element spec (defaults to: - * {tag: "input", type: "text", size: "24", autocomplete: "off"}) - */ - /** - * @cfg {Roo.data.Store} store The data store to which this combo is bound (defaults to undefined) - */ - /** - * @cfg {String} title If supplied, a header element is created containing this text and added into the top of - * the dropdown list (defaults to undefined, with no header element) - */ - - /** - * @cfg {String/Roo.Template} tpl The template to use to render the output default is '<a class="dropdown-item" href="#">{' + this.displayField + '}</a>' - */ - - /** - * @cfg {Number} listWidth The width in pixels of the dropdown list (defaults to the width of the ComboBox field) - */ - listWidth: undefined, - /** - * @cfg {String} displayField The underlying data field name to bind to this CombBox (defaults to undefined if - * mode = 'remote' or 'text' if mode = 'local') - */ - displayField: undefined, - - /** - * @cfg {String} valueField The underlying data value name to bind to this CombBox (defaults to undefined if - * mode = 'remote' or 'value' if mode = 'local'). - * Note: use of a valueField requires the user make a selection - * in order for a value to be mapped. - */ - valueField: undefined, - /** - * @cfg {String} modalTitle The title of the dialog that pops up on mobile views. - */ - modalTitle : '', - - /** - * @cfg {String} hiddenName If specified, a hidden form field with this name is dynamically generated to store the - * field's data value (defaults to the underlying DOM element's name) - */ - hiddenName: undefined, - /** - * @cfg {String} listClass CSS class to apply to the dropdown list element (defaults to '') - */ - listClass: '', - /** - * @cfg {String} selectedClass CSS class to apply to the selected item in the dropdown list (defaults to 'x-combo-selected') - */ - selectedClass: 'active', - - /** - * @cfg {Boolean/String} shadow True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right - */ - shadow:'sides', - /** - * @cfg {String} listAlign A valid anchor position value. See {@link Roo.Element#alignTo} for details on supported - * anchor positions (defaults to 'tl-bl') - */ - listAlign: 'tl-bl?', - /** - * @cfg {Number} maxHeight The maximum height in pixels of the dropdown list before scrollbars are shown (defaults to 300) - */ - maxHeight: 300, - /** - * @cfg {String} triggerAction The action to execute when the trigger field is activated. Use 'all' to run the - * query specified by the allQuery config option (defaults to 'query') - */ - triggerAction: 'query', - /** - * @cfg {Number} minChars The minimum number of characters the user must type before autocomplete and typeahead activate - * (defaults to 4, does not apply if editable = false) - */ - minChars : 4, - /** - * @cfg {Boolean} typeAhead True to populate and autoselect the remainder of the text being typed after a configurable - * delay (typeAheadDelay) if it matches a known value (defaults to false) - */ - typeAhead: false, - /** - * @cfg {Number} queryDelay The length of time in milliseconds to delay between the start of typing and sending the - * query to filter the dropdown list (defaults to 500 if mode = 'remote' or 10 if mode = 'local') - */ - queryDelay: 500, - /** - * @cfg {Number} pageSize If greater than 0, a paging toolbar is displayed in the footer of the dropdown list and the - * filter queries will execute with page start and limit parameters. Only applies when mode = 'remote' (defaults to 0) - */ - pageSize: 0, - /** - * @cfg {Boolean} selectOnFocus True to select any existing text in the field immediately on focus. Only applies - * when editable = true (defaults to false) - */ - selectOnFocus:false, - /** - * @cfg {String} queryParam Name of the query as it will be passed on the querystring (defaults to 'query') - */ - queryParam: 'query', - /** - * @cfg {String} loadingText The text to display in the dropdown list while data is loading. Only applies - * when mode = 'remote' (defaults to 'Loading...') - */ - loadingText: 'Loading...', - /** - * @cfg {Boolean} resizable True to add a resize handle to the bottom of the dropdown list (defaults to false) - */ - resizable: false, - /** - * @cfg {Number} handleHeight The height in pixels of the dropdown list resize handle if resizable = true (defaults to 8) - */ - handleHeight : 8, - /** - * @cfg {Boolean} editable False to prevent the user from typing text directly into the field, just like a - * traditional select (defaults to true) - */ - editable: true, - /** - * @cfg {String} allQuery The text query to send to the server to return all records for the list with no filtering (defaults to '') - */ - allQuery: '', - /** - * @cfg {String} mode Set to 'local' if the ComboBox loads local data (defaults to 'remote' which loads from the server) - */ - mode: 'remote', - /** - * @cfg {Number} minListWidth The minimum width of the dropdown list in pixels (defaults to 70, will be ignored if - * listWidth has a higher value) - */ - minListWidth : 70, - /** - * @cfg {Boolean} forceSelection True to restrict the selected value to one of the values in the list, false to - * allow the user to set arbitrary text into the field (defaults to false) - */ - forceSelection:false, - /** - * @cfg {Number} typeAheadDelay The length of time in milliseconds to wait until the typeahead text is displayed - * if typeAhead = true (defaults to 250) - */ - typeAheadDelay : 250, - /** - * @cfg {String} valueNotFoundText When using a name/value combo, if the value passed to setValue is not found in - * the store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined) - */ - valueNotFoundText : undefined, - /** - * @cfg {Boolean} blockFocus Prevents all focus calls, so it can work with things like HTML edtor bar - */ - blockFocus : false, - - /** - * @cfg {Boolean} disableClear Disable showing of clear button. - */ - disableClear : false, - /** - * @cfg {Boolean} alwaysQuery Disable caching of results, and always send query - */ - alwaysQuery : false, - - /** - * @cfg {Boolean} multiple (true|false) ComboBobArray, default false - */ - multiple : false, - - /** - * @cfg {String} invalidClass DEPRICATED - uses BS4 is-valid now - */ - invalidClass : "has-warning", - - /** - * @cfg {String} validClass DEPRICATED - uses BS4 is-valid now - */ - validClass : "has-success", - - /** - * @cfg {Boolean} specialFilter (true|false) special filter default false - */ - specialFilter : false, - - /** - * @cfg {Boolean} mobileTouchView (true|false) show mobile touch view when using a mobile default true - */ - mobileTouchView : true, - - /** - * @cfg {Boolean} useNativeIOS (true|false) render it as classic select for ios, not support dynamic load data (default false) - */ - useNativeIOS : false, - - /** - * @cfg {Boolean} mobile_restrict_height (true|false) restrict height for touch view - */ - mobile_restrict_height : false, - - ios_options : false, - - //private - addicon : false, - editicon: false, - - page: 0, - hasQuery: false, - append: false, - loadNext: false, - autoFocus : true, - tickable : false, - btnPosition : 'right', - triggerList : true, - showToggleBtn : true, - animate : true, - emptyResultText: 'Empty', - triggerText : 'Select', - emptyTitle : '', - width : false, - - // element that contains real text value.. (when hidden is used..) - - getAutoCreate : function() - { - var cfg = false; - //render - /* - * Render classic select for iso - */ - - if(Roo.isIOS && this.useNativeIOS){ - cfg = this.getAutoCreateNativeIOS(); - return cfg; - } - - /* - * Touch Devices - */ - - if(Roo.isTouch && this.mobileTouchView){ - cfg = this.getAutoCreateTouchView(); - return cfg;; - } - - /* - * Normal ComboBox - */ - if(!this.tickable){ - cfg = Roo.bootstrap.ComboBox.superclass.getAutoCreate.call(this); - return cfg; - } - - /* - * ComboBox with tickable selections - */ - - var align = this.labelAlign || this.parentLabelAlign(); - - cfg = { - cls : 'form-group roo-combobox-tickable' //input-group - }; - - var btn_text_select = ''; - var btn_text_done = ''; - var btn_text_cancel = ''; - - if (this.btn_text_show) { - btn_text_select = 'Select'; - btn_text_done = 'Done'; - btn_text_cancel = 'Cancel'; - } - - var buttons = { - tag : 'div', - cls : 'tickable-buttons', - cn : [ - { - tag : 'button', - type : 'button', - cls : 'btn btn-link btn-edit pull-' + this.btnPosition, - //html : this.triggerText - html: btn_text_select - }, - { - tag : 'button', - type : 'button', - name : 'ok', - cls : 'btn btn-link btn-ok pull-' + this.btnPosition, - //html : 'Done' - html: btn_text_done - }, - { - tag : 'button', - type : 'button', - name : 'cancel', - cls : 'btn btn-link btn-cancel pull-' + this.btnPosition, - //html : 'Cancel' - html: btn_text_cancel - } - ] - }; - - if(this.editable){ - buttons.cn.unshift({ - tag: 'input', - cls: 'roo-select2-search-field-input' - }); - } - - var _this = this; - - Roo.each(buttons.cn, function(c){ - if (_this.size) { - c.cls += ' btn-' + _this.size; - } - - if (_this.disabled) { - c.disabled = true; - } - }); - - var box = { - tag: 'div', - style : 'display: contents', - cn: [ - { - tag: 'input', - type : 'hidden', - cls: 'form-hidden-field' - }, - { - tag: 'ul', - cls: 'roo-select2-choices', - cn:[ - { - tag: 'li', - cls: 'roo-select2-search-field', - cn: [ - buttons - ] - } - ] - } - ] - }; - - var combobox = { - cls: 'roo-select2-container input-group roo-select2-container-multi', - cn: [ - - box -// { -// tag: 'ul', -// cls: 'typeahead typeahead-long dropdown-menu', -// style: 'display:none; max-height:' + this.maxHeight + 'px;' -// } - ] - }; - - if(this.hasFeedback && !this.allowBlank){ - - var feedback = { - tag: 'span', - cls: 'glyphicon form-control-feedback' - }; - - combobox.cn.push(feedback); - } - - - - var indicator = { - tag : 'i', - cls : 'roo-required-indicator ' + (this.indicatorpos == 'right' ? 'right' : 'left') +'-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required' - }; - if (Roo.bootstrap.version == 4) { - indicator = { - tag : 'i', - style : 'display:none' - }; - } - if (align ==='left' && this.fieldLabel.length) { - - cfg.cls += ' roo-form-group-label-left' + (Roo.bootstrap.version == 4 ? ' row' : ''); - - cfg.cn = [ - indicator, - { - tag: 'label', - 'for' : id, - cls : 'control-label col-form-label', - html : this.fieldLabel - - }, - { - cls : "", - cn: [ - combobox - ] - } - - ]; - - var labelCfg = cfg.cn[1]; - var contentCfg = cfg.cn[2]; - - - if(this.indicatorpos == 'right'){ - - cfg.cn = [ - { - tag: 'label', - 'for' : id, - cls : 'control-label col-form-label', - cn : [ - { - tag : 'span', - html : this.fieldLabel - }, - indicator - ] - }, - { - cls : "", - cn: [ - combobox - ] - } - - ]; - - - - labelCfg = cfg.cn[0]; - contentCfg = cfg.cn[1]; - - } - - if(this.labelWidth > 12){ - labelCfg.style = "width: " + this.labelWidth + 'px'; - } - if(this.width * 1 > 0){ - contentCfg.style = "width: " + this.width + 'px'; - } - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - - if(this.labellg > 0){ - labelCfg.cls += ' col-lg-' + this.labellg; - contentCfg.cls += ' col-lg-' + (12 - this.labellg); - } - - if(this.labelmd > 0){ - labelCfg.cls += ' col-md-' + this.labelmd; - contentCfg.cls += ' col-md-' + (12 - this.labelmd); - } - - if(this.labelsm > 0){ - labelCfg.cls += ' col-sm-' + this.labelsm; - contentCfg.cls += ' col-sm-' + (12 - this.labelsm); - } - - if(this.labelxs > 0){ - labelCfg.cls += ' col-xs-' + this.labelxs; - contentCfg.cls += ' col-xs-' + (12 - this.labelxs); - } - - - } else if ( this.fieldLabel.length) { -// Roo.log(" label"); - cfg.cn = [ - indicator, - { - tag: 'label', - //cls : 'input-group-addon', - html : this.fieldLabel - }, - combobox - ]; - - if(this.indicatorpos == 'right'){ - cfg.cn = [ - { - tag: 'label', - //cls : 'input-group-addon', - html : this.fieldLabel - }, - indicator, - combobox - ]; - - } - - } else { - -// Roo.log(" no label && no align"); - cfg = combobox - - - } - - var settings=this; - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - return cfg; - - }, - - _initEventsCalled : false, - - // private - initEvents: function() - { - if (this._initEventsCalled) { // as we call render... prevent looping... - return; - } - this._initEventsCalled = true; - - if (!this.store) { - throw "can not find store for combo"; - } - - this.indicator = this.indicatorEl(); - - this.store = Roo.factory(this.store, Roo.data); - this.store.parent = this; - - // if we are building from html. then this element is so complex, that we can not really - // use the rendered HTML. - // so we have to trash and replace the previous code. - if (Roo.XComponent.build_from_html) { - // remove this element.... - var e = this.el.dom, k=0; - while (e ) { e = e.previousSibling; ++k;} - - this.el.remove(); - - this.el=false; - this.rendered = false; - - this.render(this.parent().getChildContainer(true), k); - } - - if(Roo.isIOS && this.useNativeIOS){ - this.initIOSView(); - return; - } - - /* - * Touch Devices - */ - - if(Roo.isTouch && this.mobileTouchView){ - this.initTouchView(); - return; - } - - if(this.tickable){ - this.initTickableEvents(); - return; - } - - Roo.bootstrap.ComboBox.superclass.initEvents.call(this); - - if(this.hiddenName){ - - this.hiddenField = this.el.select('input.form-hidden-field',true).first(); - - this.hiddenField.dom.value = - this.hiddenValue !== undefined ? this.hiddenValue : - this.value !== undefined ? this.value : ''; - - // prevent input submission - this.el.dom.removeAttribute('name'); - this.hiddenField.dom.setAttribute('name', this.hiddenName); - - - } - //if(Roo.isGecko){ - // this.el.dom.setAttribute('autocomplete', 'off'); - //} - - var cls = 'x-combo-list'; - - //this.list = new Roo.Layer({ - // shadow: this.shadow, cls: [cls, this.listClass].join(' '), constrain:false - //}); - - var _this = this; - - (function(){ - var lw = _this.listWidth || Math.max(_this.inputEl().getWidth(), _this.minListWidth); - _this.list.setWidth(lw); - }).defer(100); - - this.list.on('mouseover', this.onViewOver, this); - this.list.on('mousemove', this.onViewMove, this); - this.list.on('scroll', this.onViewScroll, this); - - /* - this.list.swallowEvent('mousewheel'); - this.assetHeight = 0; - - if(this.title){ - this.header = this.list.createChild({cls:cls+'-hd', html: this.title}); - this.assetHeight += this.header.getHeight(); - } - - this.innerList = this.list.createChild({cls:cls+'-inner'}); - this.innerList.on('mouseover', this.onViewOver, this); - this.innerList.on('mousemove', this.onViewMove, this); - this.innerList.setWidth(lw - this.list.getFrameWidth('lr')); - - if(this.allowBlank && !this.pageSize && !this.disableClear){ - this.footer = this.list.createChild({cls:cls+'-ft'}); - this.pageTb = new Roo.Toolbar(this.footer); - - } - if(this.pageSize){ - this.footer = this.list.createChild({cls:cls+'-ft'}); - this.pageTb = new Roo.PagingToolbar(this.footer, this.store, - {pageSize: this.pageSize}); - - } - - if (this.pageTb && this.allowBlank && !this.disableClear) { - var _this = this; - this.pageTb.add(new Roo.Toolbar.Fill(), { - cls: 'x-btn-icon x-btn-clear', - text: '&#160;', - handler: function() - { - _this.collapse(); - _this.clearValue(); - _this.onSelect(false, -1); - } - }); - } - if (this.footer) { - this.assetHeight += this.footer.getHeight(); - } - */ - - if(!this.tpl){ - this.tpl = Roo.bootstrap.version == 4 ? - '<a class="dropdown-item" href="#">{' + this.displayField + '}</a>' : // 4 does not need <li> and it get's really confisued. - '<li><a class="dropdown-item" href="#">{' + this.displayField + '}</a></li>'; - } - - this.view = new Roo.View(this.list, this.tpl, { - singleSelect:true, store: this.store, selectedClass: this.selectedClass - }); - //this.view.wrapEl.setDisplayed(false); - this.view.on('click', this.onViewClick, this); - - - this.store.on('beforeload', this.onBeforeLoad, this); - this.store.on('load', this.onLoad, this); - this.store.on('loadexception', this.onLoadException, this); - /* - if(this.resizable){ - this.resizer = new Roo.Resizable(this.list, { - pinned:true, handles:'se' - }); - this.resizer.on('resize', function(r, w, h){ - this.maxHeight = h-this.handleHeight-this.list.getFrameWidth('tb')-this.assetHeight; - this.listWidth = w; - this.innerList.setWidth(w - this.list.getFrameWidth('lr')); - this.restrictHeight(); - }, this); - this[this.pageSize?'footer':'innerList'].setStyle('margin-bottom', this.handleHeight+'px'); - } - */ - if(!this.editable){ - this.editable = true; - this.setEditable(false); - } - - /* - - if (typeof(this.events.add.listeners) != 'undefined') { - - this.addicon = this.wrap.createChild( - {tag: 'img', src: Roo.BLANK_IMAGE_URL, cls: 'x-form-combo-add' }); - - this.addicon.on('click', function(e) { - this.fireEvent('add', this); - }, this); - } - if (typeof(this.events.edit.listeners) != 'undefined') { - - this.editicon = this.wrap.createChild( - {tag: 'img', src: Roo.BLANK_IMAGE_URL, cls: 'x-form-combo-edit' }); - if (this.addicon) { - this.editicon.setStyle('margin-left', '40px'); - } - this.editicon.on('click', function(e) { - - // we fire even if inothing is selected.. - this.fireEvent('edit', this, this.lastData ); - - }, this); - } - */ - - this.keyNav = new Roo.KeyNav(this.inputEl(), { - "up" : function(e){ - this.inKeyMode = true; - this.selectPrev(); - }, - - "down" : function(e){ - if(!this.isExpanded()){ - this.onTriggerClick(); - }else{ - this.inKeyMode = true; - this.selectNext(); - } - }, - - "enter" : function(e){ -// this.onViewClick(); - //return true; - this.collapse(); - - if(this.fireEvent("specialkey", this, e)){ - this.onViewClick(false); - } - - return true; - }, - - "esc" : function(e){ - this.collapse(); - }, - - "tab" : function(e){ - this.collapse(); - - if(this.fireEvent("specialkey", this, e)){ - this.onViewClick(false); - } - - return true; - }, - - scope : this, - - doRelay : function(foo, bar, hname){ - if(hname == 'down' || this.scope.isExpanded()){ - return Roo.KeyNav.prototype.doRelay.apply(this, arguments); - } - return true; - }, - - forceKeyDown: true - }); - - - this.queryDelay = Math.max(this.queryDelay || 10, - this.mode == 'local' ? 10 : 250); - - - this.dqTask = new Roo.util.DelayedTask(this.initQuery, this); - - if(this.typeAhead){ - this.taTask = new Roo.util.DelayedTask(this.onTypeAhead, this); - } - if(this.editable !== false){ - this.inputEl().on("keyup", this.onKeyUp, this); - } - if(this.forceSelection){ - this.inputEl().on('blur', this.doForce, this); - } - - if(this.multiple){ - this.choices = this.el.select('ul.roo-select2-choices', true).first(); - this.searchField = this.el.select('ul li.roo-select2-search-field', true).first(); - } - }, - - initTickableEvents: function() - { - this.createList(); - - if(this.hiddenName){ - - this.hiddenField = this.el.select('input.form-hidden-field',true).first(); - - this.hiddenField.dom.value = - this.hiddenValue !== undefined ? this.hiddenValue : - this.value !== undefined ? this.value : ''; - - // prevent input submission - this.el.dom.removeAttribute('name'); - this.hiddenField.dom.setAttribute('name', this.hiddenName); - - - } - -// this.list = this.el.select('ul.dropdown-menu',true).first(); - - this.choices = this.el.select('ul.roo-select2-choices', true).first(); - this.searchField = this.el.select('ul li.roo-select2-search-field', true).first(); - if(this.triggerList){ - this.searchField.on("click", this.onSearchFieldClick, this, {preventDefault:true}); - } - - this.trigger = this.el.select('.tickable-buttons > .btn-edit', true).first(); - this.trigger.on("click", this.onTickableTriggerClick, this, {preventDefault:true}); - - this.okBtn = this.el.select('.tickable-buttons > .btn-ok', true).first(); - this.cancelBtn = this.el.select('.tickable-buttons > .btn-cancel', true).first(); - - this.okBtn.on('click', this.onTickableFooterButtonClick, this, this.okBtn); - this.cancelBtn.on('click', this.onTickableFooterButtonClick, this, this.cancelBtn); - - this.trigger.setVisibilityMode(Roo.Element.DISPLAY); - this.okBtn.setVisibilityMode(Roo.Element.DISPLAY); - this.cancelBtn.setVisibilityMode(Roo.Element.DISPLAY); - - this.okBtn.hide(); - this.cancelBtn.hide(); - - var _this = this; - - (function(){ - var lw = _this.listWidth || Math.max(_this.inputEl().getWidth(), _this.minListWidth); - _this.list.setWidth(lw); - }).defer(100); - - this.list.on('mouseover', this.onViewOver, this); - this.list.on('mousemove', this.onViewMove, this); - - this.list.on('scroll', this.onViewScroll, this); - - if(!this.tpl){ - this.tpl = '<li class="roo-select2-result"><div class="checkbox"><input id="{roo-id}"' + - 'type="checkbox" {roo-data-checked}><label for="{roo-id}"><b>{' + this.displayField + '}</b></label></div></li>'; - } - - this.view = new Roo.View(this.list, this.tpl, { - singleSelect:true, - tickable:true, - parent:this, - store: this.store, - selectedClass: this.selectedClass - }); - - //this.view.wrapEl.setDisplayed(false); - this.view.on('click', this.onViewClick, this); - - - - this.store.on('beforeload', this.onBeforeLoad, this); - this.store.on('load', this.onLoad, this); - this.store.on('loadexception', this.onLoadException, this); - - if(this.editable){ - this.keyNav = new Roo.KeyNav(this.tickableInputEl(), { - "up" : function(e){ - this.inKeyMode = true; - this.selectPrev(); - }, - - "down" : function(e){ - this.inKeyMode = true; - this.selectNext(); - }, - - "enter" : function(e){ - if(this.fireEvent("specialkey", this, e)){ - this.onViewClick(false); - } - - return true; - }, - - "esc" : function(e){ - this.onTickableFooterButtonClick(e, false, false); - }, - - "tab" : function(e){ - this.fireEvent("specialkey", this, e); - - this.onTickableFooterButtonClick(e, false, false); - - return true; - }, - - scope : this, - - doRelay : function(e, fn, key){ - if(this.scope.isExpanded()){ - return Roo.KeyNav.prototype.doRelay.apply(this, arguments); - } - return true; - }, - - forceKeyDown: true - }); - } - - this.queryDelay = Math.max(this.queryDelay || 10, - this.mode == 'local' ? 10 : 250); - - - this.dqTask = new Roo.util.DelayedTask(this.initQuery, this); - - if(this.typeAhead){ - this.taTask = new Roo.util.DelayedTask(this.onTypeAhead, this); - } - - if(this.editable !== false){ - this.tickableInputEl().on("keyup", this.onKeyUp, this); - } - - this.indicator = this.indicatorEl(); - - if(this.indicator){ - this.indicator.setVisibilityMode(Roo.Element.DISPLAY); - this.indicator.hide(); - } - - }, - - onDestroy : function(){ - if(this.view){ - this.view.setStore(null); - this.view.el.removeAllListeners(); - this.view.el.remove(); - this.view.purgeListeners(); - } - if(this.list){ - this.list.dom.innerHTML = ''; - } - - if(this.store){ - this.store.un('beforeload', this.onBeforeLoad, this); - this.store.un('load', this.onLoad, this); - this.store.un('loadexception', this.onLoadException, this); - } - Roo.bootstrap.ComboBox.superclass.onDestroy.call(this); - }, - - // private - fireKey : function(e){ - if(e.isNavKeyPress() && !this.list.isVisible()){ - this.fireEvent("specialkey", this, e); - } - }, - - // private - onResize: function(w, h) - { - - -// Roo.bootstrap.ComboBox.superclass.onResize.apply(this, arguments); -// -// if(typeof w != 'number'){ -// // we do not handle it!?!? -// return; -// } -// var tw = this.trigger.getWidth(); -// // tw += this.addicon ? this.addicon.getWidth() : 0; -// // tw += this.editicon ? this.editicon.getWidth() : 0; -// var x = w - tw; -// this.inputEl().setWidth( this.adjustWidth('input', x)); -// -// //this.trigger.setStyle('left', x+'px'); -// -// if(this.list && this.listWidth === undefined){ -// var lw = Math.max(x + this.trigger.getWidth(), this.minListWidth); -// this.list.setWidth(lw); -// this.innerList.setWidth(lw - this.list.getFrameWidth('lr')); -// } - - - - }, - - /** - * Allow or prevent the user from directly editing the field text. If false is passed, - * the user will only be able to select from the items defined in the dropdown list. This method - * is the runtime equivalent of setting the 'editable' config option at config time. - * @param {Boolean} value True to allow the user to directly edit the field text - */ - setEditable : function(value){ - if(value == this.editable){ - return; - } - this.editable = value; - if(!value){ - this.inputEl().dom.setAttribute('readOnly', true); - this.inputEl().on('mousedown', this.onTriggerClick, this); - this.inputEl().addClass('x-combo-noedit'); - }else{ - this.inputEl().dom.removeAttribute('readOnly'); - this.inputEl().un('mousedown', this.onTriggerClick, this); - this.inputEl().removeClass('x-combo-noedit'); - } - }, - - // private - - onBeforeLoad : function(combo,opts){ - if(!this.hasFocus){ - return; - } - if (!opts.add) { - this.list.dom.innerHTML = '<li class="loading-indicator">'+(this.loadingText||'loading')+'</li>' ; - } - this.restrictHeight(); - this.selectedIndex = -1; - }, - - // private - onLoad : function(){ - - this.hasQuery = false; - - if(!this.hasFocus){ - return; - } - - if(typeof(this.loading) !== 'undefined' && this.loading !== null){ - this.loading.hide(); - } - - if(this.store.getCount() > 0){ - - this.expand(); - this.restrictHeight(); - if(this.lastQuery == this.allQuery){ - if(this.editable && !this.tickable){ - this.inputEl().dom.select(); - } - - if( - !this.selectByValue(this.value, true) && - this.autoFocus && - ( - !this.store.lastOptions || - typeof(this.store.lastOptions.add) == 'undefined' || - this.store.lastOptions.add != true - ) - ){ - this.select(0, true); - } - }else{ - if(this.autoFocus){ - this.selectNext(); - } - if(this.typeAhead && this.lastKey != Roo.EventObject.BACKSPACE && this.lastKey != Roo.EventObject.DELETE){ - this.taTask.delay(this.typeAheadDelay); - } - } - }else{ - this.onEmptyResults(); - } - - //this.el.focus(); - }, - // private - onLoadException : function() - { - this.hasQuery = false; - - if(typeof(this.loading) !== 'undefined' && this.loading !== null){ - this.loading.hide(); - } - - if(this.tickable && this.editable){ - return; - } - - this.collapse(); - // only causes errors at present - //Roo.log(this.store.reader.jsonData); - //if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') { - // fixme - //Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg); - //} - - - }, - // private - onTypeAhead : function(){ - if(this.store.getCount() > 0){ - var r = this.store.getAt(0); - var newValue = r.data[this.displayField]; - var len = newValue.length; - var selStart = this.getRawValue().length; - - if(selStart != len){ - this.setRawValue(newValue); - this.selectText(selStart, newValue.length); - } - } - }, - - // private - onSelect : function(record, index){ - - if(this.fireEvent('beforeselect', this, record, index) !== false){ - - this.setFromData(index > -1 ? record.data : false); - - this.collapse(); - this.fireEvent('select', this, record, index); - } - }, - - /** - * Returns the currently selected field value or empty string if no value is set. - * @return {String} value The selected value - */ - getValue : function() - { - if(Roo.isIOS && this.useNativeIOS){ - return this.ios_options[this.inputEl().dom.selectedIndex].data[this.valueField]; - } - - if(this.multiple){ - return (this.hiddenField) ? this.hiddenField.dom.value : this.value; - } - - if(this.valueField){ - return typeof this.value != 'undefined' ? this.value : ''; - }else{ - return Roo.bootstrap.ComboBox.superclass.getValue.call(this); - } - }, - - getRawValue : function() - { - if(Roo.isIOS && this.useNativeIOS){ - return this.ios_options[this.inputEl().dom.selectedIndex].data[this.displayField]; - } - - var v = this.inputEl().getValue(); - - return v; - }, - - /** - * Clears any text/value currently set in the field - */ - clearValue : function(){ - - if(this.hiddenField){ - this.hiddenField.dom.value = ''; - } - this.value = ''; - this.setRawValue(''); - this.lastSelectionText = ''; - this.lastData = false; - - var close = this.closeTriggerEl(); - - if(close){ - close.hide(); - } - - this.validate(); - - }, - - /** - * Sets the specified value into the field. If the value finds a match, the corresponding record text - * will be displayed in the field. If the value does not match the data value of an existing item, - * and the valueNotFoundText config option is defined, it will be displayed as the default field text. - * Otherwise the field will be blank (although the value will still be set). - * @param {String} value The value to match - */ - setValue : function(v) - { - if(Roo.isIOS && this.useNativeIOS){ - this.setIOSValue(v); - return; - } - - if(this.multiple){ - this.syncValue(); - return; - } - - var text = v; - if(this.valueField){ - var r = this.findRecord(this.valueField, v); - if(r){ - text = r.data[this.displayField]; - }else if(this.valueNotFoundText !== undefined){ - text = this.valueNotFoundText; - } - } - this.lastSelectionText = text; - if(this.hiddenField){ - this.hiddenField.dom.value = v; - } - Roo.bootstrap.ComboBox.superclass.setValue.call(this, text); - this.value = v; - - var close = this.closeTriggerEl(); - - if(close){ - (v && (v.length || v * 1 > 0)) ? close.show() : close.hide(); - } - - this.validate(); - }, - /** - * @property {Object} the last set data for the element - */ - - lastData : false, - /** - * Sets the value of the field based on a object which is related to the record format for the store. - * @param {Object} value the value to set as. or false on reset? - */ - setFromData : function(o){ - - if(this.multiple){ - this.addItem(o); - return; - } - - var dv = ''; // display value - var vv = ''; // value value.. - this.lastData = o; - if (this.displayField) { - dv = !o || typeof(o[this.displayField]) == 'undefined' ? '' : o[this.displayField]; - } else { - // this is an error condition!!! - Roo.log('no displayField value set for '+ (this.name ? this.name : this.id)); - } - - if(this.valueField){ - vv = !o || typeof(o[this.valueField]) == 'undefined' ? dv : o[this.valueField]; - } - - var close = this.closeTriggerEl(); - - if(close){ - if(dv.length || vv * 1 > 0){ - close.show() ; - this.blockFocus=true; - } else { - close.hide(); - } - } - - if(this.hiddenField){ - this.hiddenField.dom.value = vv; - - this.lastSelectionText = dv; - Roo.bootstrap.ComboBox.superclass.setValue.call(this, dv); - this.value = vv; - return; - } - // no hidden field.. - we store the value in 'value', but still display - // display field!!!! - this.lastSelectionText = dv; - Roo.bootstrap.ComboBox.superclass.setValue.call(this, dv); - this.value = vv; - - - - }, - // private - reset : function(){ - // overridden so that last data is reset.. - - if(this.multiple){ - this.clearItem(); - return; - } - - this.setValue(this.originalValue); - //this.clearInvalid(); - this.lastData = false; - if (this.view) { - this.view.clearSelections(); - } - - this.validate(); - }, - // private - findRecord : function(prop, value){ - var record; - if(this.store.getCount() > 0){ - this.store.each(function(r){ - if(r.data[prop] == value){ - record = r; - return false; - } - return true; - }); - } - return record; - }, - - getName: function() - { - // returns hidden if it's set.. - if (!this.rendered) {return ''}; - return !this.hiddenName && this.inputEl().dom.name ? this.inputEl().dom.name : (this.hiddenName || ''); - - }, - // private - onViewMove : function(e, t){ - this.inKeyMode = false; - }, - - // private - onViewOver : function(e, t){ - if(this.inKeyMode){ // prevent key nav and mouse over conflicts - return; - } - var item = this.view.findItemFromChild(t); - - if(item){ - var index = this.view.indexOf(item); - this.select(index, false); - } - }, - - // private - onViewClick : function(view, doFocus, el, e) - { - var index = this.view.getSelectedIndexes()[0]; - - var r = this.store.getAt(index); - - if(this.tickable){ - - if(typeof(e) != 'undefined' && e.getTarget().nodeName.toLowerCase() != 'input'){ - return; - } - - var rm = false; - var _this = this; - - Roo.each(this.tickItems, function(v,k){ - - if(typeof(v) != 'undefined' && v[_this.valueField] == r.data[_this.valueField]){ - Roo.log(v); - _this.tickItems.splice(k, 1); - - if(typeof(e) == 'undefined' && view == false){ - Roo.get(_this.view.getNodes(index, index)[0]).select('input', true).first().dom.checked = false; - } - - rm = true; - return; - } - }); - - if(rm){ - return; - } - - if(this.fireEvent('tick', this, r, index, Roo.get(_this.view.getNodes(index, index)[0]).select('input', true).first().dom.checked) !== false){ - this.tickItems.push(r.data); - } - - if(typeof(e) == 'undefined' && view == false){ - Roo.get(_this.view.getNodes(index, index)[0]).select('input', true).first().dom.checked = true; - } - - return; - } - - if(r){ - this.onSelect(r, index); - } - if(doFocus !== false && !this.blockFocus){ - this.inputEl().focus(); - } - }, - - // private - restrictHeight : function(){ - //this.innerList.dom.style.height = ''; - //var inner = this.innerList.dom; - //var h = Math.max(inner.clientHeight, inner.offsetHeight, inner.scrollHeight); - //this.innerList.setHeight(h < this.maxHeight ? 'auto' : this.maxHeight); - //this.list.beginUpdate(); - //this.list.setHeight(this.innerList.getHeight()+this.list.getFrameWidth('tb')+(this.resizable?this.handleHeight:0)+this.assetHeight); - this.list.alignTo(this.inputEl(), this.listAlign); - this.list.alignTo(this.inputEl(), this.listAlign); - //this.list.endUpdate(); - }, - - // private - onEmptyResults : function(){ - - if(this.tickable && this.editable){ - this.hasFocus = false; - this.restrictHeight(); - return; - } - - this.collapse(); - }, - - /** - * Returns true if the dropdown list is expanded, else false. - */ - isExpanded : function(){ - return this.list.isVisible(); - }, - - /** - * Select an item in the dropdown list by its data value. This function does NOT cause the select event to fire. - * The store must be loaded and the list expanded for this function to work, otherwise use setValue. - * @param {String} value The data value of the item to select - * @param {Boolean} scrollIntoView False to prevent the dropdown list from autoscrolling to display the - * selected item if it is not currently in view (defaults to true) - * @return {Boolean} True if the value matched an item in the list, else false - */ - selectByValue : function(v, scrollIntoView){ - if(v !== undefined && v !== null){ - var r = this.findRecord(this.valueField || this.displayField, v); - if(r){ - this.select(this.store.indexOf(r), scrollIntoView); - return true; - } - } - return false; - }, - - /** - * Select an item in the dropdown list by its numeric index in the list. This function does NOT cause the select event to fire. - * The store must be loaded and the list expanded for this function to work, otherwise use setValue. - * @param {Number} index The zero-based index of the list item to select - * @param {Boolean} scrollIntoView False to prevent the dropdown list from autoscrolling to display the - * selected item if it is not currently in view (defaults to true) - */ - select : function(index, scrollIntoView){ - this.selectedIndex = index; - this.view.select(index); - if(scrollIntoView !== false){ - var el = this.view.getNode(index); - /* - * el && !this.multiple && !this.tickable // not sure why we disable multiple before.. - */ - if(el){ - this.list.scrollChildIntoView(el, false); - } - } - }, - - // private - selectNext : function(){ - var ct = this.store.getCount(); - if(ct > 0){ - if(this.selectedIndex == -1){ - this.select(0); - }else if(this.selectedIndex < ct-1){ - this.select(this.selectedIndex+1); - } - } - }, - - // private - selectPrev : function(){ - var ct = this.store.getCount(); - if(ct > 0){ - if(this.selectedIndex == -1){ - this.select(0); - }else if(this.selectedIndex != 0){ - this.select(this.selectedIndex-1); - } - } - }, - - // private - onKeyUp : function(e){ - if(this.editable !== false && !e.isSpecialKey()){ - this.lastKey = e.getKey(); - this.dqTask.delay(this.queryDelay); - } - }, - - // private - validateBlur : function(){ - return !this.list || !this.list.isVisible(); - }, - - // private - initQuery : function(){ - - var v = this.getRawValue(); - - if(this.tickable && this.editable){ - v = this.tickableInputEl().getValue(); - } - - this.doQuery(v); - }, - - // private - doForce : function(){ - if(this.inputEl().dom.value.length > 0){ - this.inputEl().dom.value = - this.lastSelectionText === undefined ? '' : this.lastSelectionText; - - } - }, - - /** - * Execute a query to filter the dropdown list. Fires the beforequery event prior to performing the - * query allowing the query action to be canceled if needed. - * @param {String} query The SQL query to execute - * @param {Boolean} forceAll True to force the query to execute even if there are currently fewer characters - * in the field than the minimum specified by the minChars config option. It also clears any filter previously - * saved in the current store (defaults to false) - */ - doQuery : function(q, forceAll){ - - if(q === undefined || q === null){ - q = ''; - } - var qe = { - query: q, - forceAll: forceAll, - combo: this, - cancel:false - }; - if(this.fireEvent('beforequery', qe)===false || qe.cancel){ - return false; - } - q = qe.query; - - forceAll = qe.forceAll; - if(forceAll === true || (q.length >= this.minChars)){ - - this.hasQuery = true; - - if(this.lastQuery != q || this.alwaysQuery){ - this.lastQuery = q; - if(this.mode == 'local'){ - this.selectedIndex = -1; - if(forceAll){ - this.store.clearFilter(); - }else{ - - if(this.specialFilter){ - this.fireEvent('specialfilter', this); - this.onLoad(); - return; - } - - this.store.filter(this.displayField, q); - } - - this.store.fireEvent("datachanged", this.store); - - this.onLoad(); - - - }else{ - - this.store.baseParams[this.queryParam] = q; - - var options = {params : this.getParams(q)}; - - if(this.loadNext){ - options.add = true; - options.params.start = this.page * this.pageSize; - } - - this.store.load(options); - - /* - * this code will make the page width larger, at the beginning, the list not align correctly, - * we should expand the list on onLoad - * so command out it - */ -// this.expand(); - } - }else{ - this.selectedIndex = -1; - this.onLoad(); - } - } - - this.loadNext = false; - }, - - // private - getParams : function(q){ - var p = {}; - //p[this.queryParam] = q; - - if(this.pageSize){ - p.start = 0; - p.limit = this.pageSize; - } - return p; - }, - - /** - * Hides the dropdown list if it is currently expanded. Fires the 'collapse' event on completion. - */ - collapse : function(){ - if(!this.isExpanded()){ - return; - } - - this.list.hide(); - - this.hasFocus = false; - - if(this.tickable){ - this.okBtn.hide(); - this.cancelBtn.hide(); - this.trigger.show(); - - if(this.editable){ - this.tickableInputEl().dom.value = ''; - this.tickableInputEl().blur(); - } - - } - - Roo.get(document).un('mousedown', this.collapseIf, this); - Roo.get(document).un('mousewheel', this.collapseIf, this); - if (!this.editable) { - Roo.get(document).un('keydown', this.listKeyPress, this); - } - this.fireEvent('collapse', this); - - this.validate(); - }, - - // private - collapseIf : function(e){ - var in_combo = e.within(this.el); - var in_list = e.within(this.list); - var is_list = (Roo.get(e.getTarget()).id == this.list.id) ? true : false; - - if (in_combo || in_list || is_list) { - //e.stopPropagation(); - return; - } - - if(this.tickable){ - this.onTickableFooterButtonClick(e, false, false); - } - - this.collapse(); - - }, - - /** - * Expands the dropdown list if it is currently hidden. Fires the 'expand' event on completion. - */ - expand : function(){ - - if(this.isExpanded() || !this.hasFocus){ - return; - } - - var lw = this.listWidth || Math.max(this.inputEl().getWidth(), this.minListWidth); - this.list.setWidth(lw); - - Roo.log('expand'); - - this.list.show(); - - this.restrictHeight(); - - if(this.tickable){ - - this.tickItems = Roo.apply([], this.item); - - this.okBtn.show(); - this.cancelBtn.show(); - this.trigger.hide(); - - if(this.editable){ - this.tickableInputEl().focus(); - } - - } - - Roo.get(document).on('mousedown', this.collapseIf, this); - Roo.get(document).on('mousewheel', this.collapseIf, this); - if (!this.editable) { - Roo.get(document).on('keydown', this.listKeyPress, this); - } - - this.fireEvent('expand', this); - }, - - // private - // Implements the default empty TriggerField.onTriggerClick function - onTriggerClick : function(e) - { - Roo.log('trigger click'); - - if(this.disabled || !this.triggerList){ - return; - } - - this.page = 0; - this.loadNext = false; - - if(this.isExpanded()){ - this.collapse(); - if (!this.blockFocus) { - this.inputEl().focus(); - } - - }else { - this.hasFocus = true; - if(this.triggerAction == 'all') { - this.doQuery(this.allQuery, true); - } else { - this.doQuery(this.getRawValue()); - } - if (!this.blockFocus) { - this.inputEl().focus(); - } - } - }, - - onTickableTriggerClick : function(e) - { - if(this.disabled){ - return; - } - - this.page = 0; - this.loadNext = false; - this.hasFocus = true; - - if(this.triggerAction == 'all') { - this.doQuery(this.allQuery, true); - } else { - this.doQuery(this.getRawValue()); - } - }, - - onSearchFieldClick : function(e) - { - if(this.hasFocus && !this.disabled && e.getTarget().nodeName.toLowerCase() != 'button'){ - this.onTickableFooterButtonClick(e, false, false); - return; - } - - if(this.hasFocus || this.disabled || e.getTarget().nodeName.toLowerCase() == 'button'){ - return; - } - - this.page = 0; - this.loadNext = false; - this.hasFocus = true; - - if(this.triggerAction == 'all') { - this.doQuery(this.allQuery, true); - } else { - this.doQuery(this.getRawValue()); - } - }, - - listKeyPress : function(e) - { - //Roo.log('listkeypress'); - // scroll to first matching element based on key pres.. - if (e.isSpecialKey()) { - return false; - } - var k = String.fromCharCode(e.getKey()).toUpperCase(); - //Roo.log(k); - var match = false; - var csel = this.view.getSelectedNodes(); - var cselitem = false; - if (csel.length) { - var ix = this.view.indexOf(csel[0]); - cselitem = this.store.getAt(ix); - if (!cselitem.get(this.displayField) || cselitem.get(this.displayField).substring(0,1).toUpperCase() != k) { - cselitem = false; - } - - } - - this.store.each(function(v) { - if (cselitem) { - // start at existing selection. - if (cselitem.id == v.id) { - cselitem = false; - } - return true; - } - - if (v.get(this.displayField) && v.get(this.displayField).substring(0,1).toUpperCase() == k) { - match = this.store.indexOf(v); - return false; - } - return true; - }, this); - - if (match === false) { - return true; // no more action? - } - // scroll to? - this.view.select(match); - var sn = Roo.get(this.view.getSelectedNodes()[0]); - sn.scrollIntoView(sn.dom.parentNode, false); - }, - - onViewScroll : function(e, t){ - - if(this.view.el.getScroll().top == 0 ||this.view.el.getScroll().top < this.view.el.dom.scrollHeight - this.view.el.dom.clientHeight || !this.hasFocus || !this.append || this.hasQuery){ - return; - } - - this.hasQuery = true; - - this.loading = this.list.select('.loading', true).first(); - - if(this.loading === null){ - this.list.createChild({ - tag: 'div', - cls: 'loading roo-select2-more-results roo-select2-active', - html: 'Loading more results...' - }); - - this.loading = this.list.select('.loading', true).first(); - - this.loading.setVisibilityMode(Roo.Element.DISPLAY); - - this.loading.hide(); - } - - this.loading.show(); - - var _combo = this; - - this.page++; - this.loadNext = true; - - (function() { _combo.doQuery(_combo.allQuery, true); }).defer(500); - - return; - }, - - addItem : function(o) - { - var dv = ''; // display value - - if (this.displayField) { - dv = !o || typeof(o[this.displayField]) == 'undefined' ? '' : o[this.displayField]; - } else { - // this is an error condition!!! - Roo.log('no displayField value set for '+ (this.name ? this.name : this.id)); - } - - if(!dv.length){ - return; - } - - var choice = this.choices.createChild({ - tag: 'li', - cls: 'roo-select2-search-choice', - cn: [ - { - tag: 'div', - html: dv - }, - { - tag: 'a', - href: '#', - cls: 'roo-select2-search-choice-close fa fa-times', - tabindex: '-1' - } - ] - - }, this.searchField); - - var close = choice.select('a.roo-select2-search-choice-close', true).first(); - - close.on('click', this.onRemoveItem, this, { item : choice, data : o} ); - - this.item.push(o); - - this.lastData = o; - - this.syncValue(); - - this.inputEl().dom.value = ''; - - this.validate(); - }, - - onRemoveItem : function(e, _self, o) - { - e.preventDefault(); - - this.lastItem = Roo.apply([], this.item); - - var index = this.item.indexOf(o.data) * 1; - - if( index < 0){ - Roo.log('not this item?!'); - return; - } - - this.item.splice(index, 1); - o.item.remove(); - - this.syncValue(); - - this.fireEvent('remove', this, e); - - this.validate(); - - }, - - syncValue : function() - { - if(!this.item.length){ - this.clearValue(); - return; - } - - var value = []; - var _this = this; - Roo.each(this.item, function(i){ - if(_this.valueField){ - value.push(i[_this.valueField]); - return; - } - - value.push(i); - }); - - this.value = value.join(','); - - if(this.hiddenField){ - this.hiddenField.dom.value = this.value; - } - - this.store.fireEvent("datachanged", this.store); - - this.validate(); - }, - - clearItem : function() - { - if(!this.multiple){ - return; - } - - this.item = []; - - Roo.each(this.choices.select('>li.roo-select2-search-choice', true).elements, function(c){ - c.remove(); - }); - - this.syncValue(); - - this.validate(); - - if(this.tickable && !Roo.isTouch){ - this.view.refresh(); - } - }, - - inputEl: function () - { - if(Roo.isIOS && this.useNativeIOS){ - return this.el.select('select.roo-ios-select', true).first(); - } - - if(Roo.isTouch && this.mobileTouchView){ - return this.el.select('input.form-control',true).first(); - } - - if(this.tickable){ - return this.searchField; - } - - return this.el.select('input.form-control',true).first(); - }, - - onTickableFooterButtonClick : function(e, btn, el) - { - e.preventDefault(); - - this.lastItem = Roo.apply([], this.item); - - if(btn && btn.name == 'cancel'){ - this.tickItems = Roo.apply([], this.item); - this.collapse(); - return; - } - - this.clearItem(); - - var _this = this; - - Roo.each(this.tickItems, function(o){ - _this.addItem(o); - }); - - this.collapse(); - - }, - - validate : function() - { - if(this.getVisibilityEl().hasClass('hidden')){ - return true; - } - - var v = this.getRawValue(); - - if(this.multiple){ - v = this.getValue(); - } - - if(this.disabled || this.allowBlank || v.length){ - this.markValid(); - return true; - } - - this.markInvalid(); - return false; - }, - - tickableInputEl : function() - { - if(!this.tickable || !this.editable){ - return this.inputEl(); - } - - return this.inputEl().select('.roo-select2-search-field-input', true).first(); - }, - - - getAutoCreateTouchView : function() - { - var id = Roo.id(); - - var cfg = { - cls: 'form-group' //input-group - }; - - var input = { - tag: 'input', - id : id, - type : this.inputType, - cls : 'form-control x-combo-noedit', - autocomplete: 'new-password', - placeholder : this.placeholder || '', - readonly : true - }; - - if (this.name) { - input.name = this.name; - } - - if (this.size) { - input.cls += ' input-' + this.size; - } - - if (this.disabled) { - input.disabled = true; - } - - var inputblock = { - cls : 'roo-combobox-wrap', - cn : [ - input - ] - }; - - if(this.before){ - inputblock.cls += ' input-group'; - - inputblock.cn.unshift({ - tag :'span', - cls : 'input-group-addon input-group-prepend input-group-text', - html : this.before - }); - } - - if(this.removable && !this.multiple){ - inputblock.cls += ' roo-removable'; - - inputblock.cn.push({ - tag: 'button', - html : 'x', - cls : 'roo-combo-removable-btn close' - }); - } - - if(this.hasFeedback && !this.allowBlank){ - - inputblock.cls += ' has-feedback'; - - inputblock.cn.push({ - tag: 'span', - cls: 'glyphicon form-control-feedback' - }); - - } - - if (this.after) { - - inputblock.cls += (this.before) ? '' : ' input-group'; - - inputblock.cn.push({ - tag :'span', - cls : 'input-group-addon input-group-append input-group-text', - html : this.after - }); - } - - - var ibwrap = inputblock; - - if(this.multiple){ - ibwrap = { - tag: 'ul', - cls: 'roo-select2-choices', - cn:[ - { - tag: 'li', - cls: 'roo-select2-search-field', - cn: [ - - inputblock - ] - } - ] - }; - - - } - - var combobox = { - cls: 'roo-select2-container input-group roo-touchview-combobox ', - cn: [ - { - tag: 'input', - type : 'hidden', - cls: 'form-hidden-field' - }, - ibwrap - ] - }; - - if(!this.multiple && this.showToggleBtn){ - - var caret = { - cls: 'caret' - }; - - if (this.caret != false) { - caret = { - tag: 'i', - cls: 'fa fa-' + this.caret - }; - - } - - combobox.cn.push({ - tag :'span', - cls : 'input-group-addon input-group-append input-group-text btn dropdown-toggle', - cn : [ - Roo.bootstrap.version == 3 ? caret : '', - { - tag: 'span', - cls: 'combobox-clear', - cn : [ - { - tag : 'i', - cls: 'icon-remove' - } - ] - } - ] - - }) - } - - if(this.multiple){ - combobox.cls += ' roo-select2-container-multi'; - } - - var required = this.allowBlank ? { - tag : 'i', - style: 'display: none' - } : { - tag : 'i', - cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required' - }; - - var align = this.labelAlign || this.parentLabelAlign(); - - if (align ==='left' && this.fieldLabel.length) { - - cfg.cn = [ - required, - { - tag: 'label', - cls : 'control-label col-form-label', - html : this.fieldLabel - - }, - { - cls : 'roo-combobox-wrap ', - cn: [ - combobox - ] - } - ]; - - var labelCfg = cfg.cn[1]; - var contentCfg = cfg.cn[2]; - - - if(this.indicatorpos == 'right'){ - cfg.cn = [ - { - tag: 'label', - 'for' : id, - cls : 'control-label col-form-label', - cn : [ - { - tag : 'span', - html : this.fieldLabel - }, - required - ] - }, - { - cls : "roo-combobox-wrap ", - cn: [ - combobox - ] - } - - ]; - - labelCfg = cfg.cn[0]; - contentCfg = cfg.cn[1]; - } - - - - if(this.labelWidth > 12){ - labelCfg.style = "width: " + this.labelWidth + 'px'; - } - - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - - if(this.labellg > 0){ - labelCfg.cls += ' col-lg-' + this.labellg; - contentCfg.cls += ' col-lg-' + (12 - this.labellg); - } - - if(this.labelmd > 0){ - labelCfg.cls += ' col-md-' + this.labelmd; - contentCfg.cls += ' col-md-' + (12 - this.labelmd); - } - - if(this.labelsm > 0){ - labelCfg.cls += ' col-sm-' + this.labelsm; - contentCfg.cls += ' col-sm-' + (12 - this.labelsm); - } - - if(this.labelxs > 0){ - labelCfg.cls += ' col-xs-' + this.labelxs; - contentCfg.cls += ' col-xs-' + (12 - this.labelxs); - } - - - } else if ( this.fieldLabel.length) { - cfg.cn = [ - required, - { - tag: 'label', - cls : 'control-label', - html : this.fieldLabel - - }, - { - cls : '', - cn: [ - combobox - ] - } - ]; - - if(this.indicatorpos == 'right'){ - cfg.cn = [ - { - tag: 'label', - cls : 'control-label', - html : this.fieldLabel, - cn : [ - required - ] - }, - { - cls : '', - cn: [ - combobox - ] - } - ]; - } - } else { - cfg.cn = combobox; - } - - - var settings = this; - - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - return cfg; - }, - - initTouchView : function() - { - this.renderTouchView(); - - this.touchViewEl.on('scroll', function(){ - this.el.dom.scrollTop = 0; - }, this); - - this.originalValue = this.getValue(); - - this.triggerEl = this.el.select('span.dropdown-toggle',true).first(); - - this.inputEl().on("click", this.showTouchView, this); - if (this.triggerEl) { - this.triggerEl.on("click", this.showTouchView, this); - } - - - this.touchViewFooterEl.select('.roo-touch-view-cancel', true).first().on('click', this.hideTouchView, this); - this.touchViewFooterEl.select('.roo-touch-view-ok', true).first().on('click', this.setTouchViewValue, this); - - this.maskEl = new Roo.LoadMask(this.touchViewEl, { store : this.store, msgCls: 'roo-el-mask-msg' }); - - this.store.on('beforeload', this.onTouchViewBeforeLoad, this); - this.store.on('load', this.onTouchViewLoad, this); - this.store.on('loadexception', this.onTouchViewLoadException, this); - - if(this.hiddenName){ - - this.hiddenField = this.el.select('input.form-hidden-field',true).first(); - - this.hiddenField.dom.value = - this.hiddenValue !== undefined ? this.hiddenValue : - this.value !== undefined ? this.value : ''; - - this.el.dom.removeAttribute('name'); - this.hiddenField.dom.setAttribute('name', this.hiddenName); - } - - if(this.multiple){ - this.choices = this.el.select('ul.roo-select2-choices', true).first(); - this.searchField = this.el.select('ul li.roo-select2-search-field', true).first(); - } - - if(this.removable && !this.multiple){ - var close = this.closeTriggerEl(); - if(close){ - close.setVisibilityMode(Roo.Element.DISPLAY).hide(); - close.on('click', this.removeBtnClick, this, close); - } - } - /* - * fix the bug in Safari iOS8 - */ - this.inputEl().on("focus", function(e){ - document.activeElement.blur(); - }, this); - - this._touchViewMask = Roo.DomHelper.append(document.body, {tag: "div", cls:"x-dlg-mask"}, true); - - return; - - - }, - - renderTouchView : function() - { - this.touchViewEl = Roo.get(document.body).createChild(Roo.bootstrap.ComboBox.touchViewTemplate); - this.touchViewEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - this.touchViewHeaderEl = this.touchViewEl.select('.modal-header', true).first(); - this.touchViewHeaderEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - this.touchViewBodyEl = this.touchViewEl.select('.modal-body', true).first(); - this.touchViewBodyEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - this.touchViewBodyEl.setStyle('overflow', 'auto'); - - this.touchViewListGroup = this.touchViewBodyEl.select('.list-group', true).first(); - this.touchViewListGroup.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - this.touchViewFooterEl = this.touchViewEl.select('.modal-footer', true).first(); - this.touchViewFooterEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - }, - - showTouchView : function() - { - if(this.disabled){ - return; - } - - this.touchViewHeaderEl.hide(); - - if(this.modalTitle.length){ - this.touchViewHeaderEl.dom.innerHTML = this.modalTitle; - this.touchViewHeaderEl.show(); - } - - this.touchViewEl.setStyle('z-index', Roo.bootstrap.Modal.zIndex++); - this.touchViewEl.show(); - - this.touchViewEl.select('.modal-dialog', true).first().setStyle({ margin : '0px', width : '100%'}); - - //this.touchViewEl.select('.modal-dialog > .modal-content', true).first().setSize( - // Roo.lib.Dom.getViewWidth(true), Roo.lib.Dom.getViewHeight(true)); - - var bodyHeight = Roo.lib.Dom.getViewHeight() - this.touchViewFooterEl.getHeight() + this.touchViewBodyEl.getPadding('tb'); - - if(this.modalTitle.length){ - bodyHeight = bodyHeight - this.touchViewHeaderEl.getHeight(); - } - - this.touchViewBodyEl.setHeight(bodyHeight); - - if(this.animate){ - var _this = this; - (function(){ _this.touchViewEl.addClass(['in','show']); }).defer(50); - }else{ - this.touchViewEl.addClass(['in','show']); - } - - if(this._touchViewMask){ - Roo.get(document.body).addClass("x-body-masked"); - this._touchViewMask.setSize(Roo.lib.Dom.getViewWidth(true), Roo.lib.Dom.getViewHeight(true)); - this._touchViewMask.setStyle('z-index', 10000); - this._touchViewMask.addClass('show'); - } - - this.doTouchViewQuery(); - - }, - - hideTouchView : function() - { - this.touchViewEl.removeClass(['in','show']); - - if(this.animate){ - var _this = this; - (function(){ _this.touchViewEl.setStyle('display', 'none'); }).defer(150); - }else{ - this.touchViewEl.setStyle('display', 'none'); - } - - if(this._touchViewMask){ - this._touchViewMask.removeClass('show'); - Roo.get(document.body).removeClass("x-body-masked"); - } - }, - - setTouchViewValue : function() - { - if(this.multiple){ - this.clearItem(); - - var _this = this; - - Roo.each(this.tickItems, function(o){ - this.addItem(o); - }, this); - } - - this.hideTouchView(); - }, - - doTouchViewQuery : function() - { - var qe = { - query: '', - forceAll: true, - combo: this, - cancel:false - }; - - if(this.fireEvent('beforequery', qe) ===false || qe.cancel){ - return false; - } - - if(!this.alwaysQuery || this.mode == 'local'){ - this.onTouchViewLoad(); - return; - } - - this.store.load(); - }, - - onTouchViewBeforeLoad : function(combo,opts) - { - return; - }, - - // private - onTouchViewLoad : function() - { - if(this.store.getCount() < 1){ - this.onTouchViewEmptyResults(); - return; - } - - this.clearTouchView(); - - var rawValue = this.getRawValue(); - - var template = (this.multiple) ? Roo.bootstrap.ComboBox.listItemCheckbox : Roo.bootstrap.ComboBox.listItemRadio; - - this.tickItems = []; - - this.store.data.each(function(d, rowIndex){ - var row = this.touchViewListGroup.createChild(template); - - if(typeof(d.data.cls) != 'undefined' && d.data.cls.length){ - row.addClass(d.data.cls); - } - - if(this.displayField && typeof(d.data[this.displayField]) != 'undefined'){ - var cfg = { - data : d.data, - html : d.data[this.displayField] - }; - - if(this.fireEvent('touchviewdisplay', this, cfg) !== false){ - row.select('.roo-combobox-list-group-item-value', true).first().dom.innerHTML = cfg.html; - } - } - row.removeClass('selected'); - if(!this.multiple && this.valueField && - typeof(d.data[this.valueField]) != 'undefined' && d.data[this.valueField] == this.getValue()) - { - // radio buttons.. - row.select('.roo-combobox-list-group-item-box > input', true).first().attr('checked', true); - row.addClass('selected'); - } - - if(this.multiple && this.valueField && - typeof(d.data[this.valueField]) != 'undefined' && this.getValue().indexOf(d.data[this.valueField]) != -1) - { - - // checkboxes... - row.select('.roo-combobox-list-group-item-box > input', true).first().attr('checked', true); - this.tickItems.push(d.data); - } - - row.on('click', this.onTouchViewClick, this, {row : row, rowIndex : rowIndex}); - - }, this); - - var firstChecked = this.touchViewListGroup.select('.list-group-item > .roo-combobox-list-group-item-box > input:checked', true).first(); - - var bodyHeight = Roo.lib.Dom.getViewHeight() - this.touchViewFooterEl.getHeight() + this.touchViewBodyEl.getPadding('tb'); - - if(this.modalTitle.length){ - bodyHeight = bodyHeight - this.touchViewHeaderEl.getHeight(); - } - - var listHeight = this.touchViewListGroup.getHeight() + this.touchViewBodyEl.getPadding('tb') * 2; - - if(this.mobile_restrict_height && listHeight < bodyHeight){ - this.touchViewBodyEl.setHeight(listHeight); - } - - var _this = this; - - if(firstChecked && listHeight > bodyHeight){ - (function() { firstChecked.findParent('li').scrollIntoView(_this.touchViewListGroup.dom); }).defer(500); - } - - }, - - onTouchViewLoadException : function() - { - this.hideTouchView(); - }, - - onTouchViewEmptyResults : function() - { - this.clearTouchView(); - - this.touchViewListGroup.createChild(Roo.bootstrap.ComboBox.emptyResult); - - this.touchViewListGroup.select('.roo-combobox-touch-view-empty-result', true).first().dom.innerHTML = this.emptyResultText; - - }, - - clearTouchView : function() - { - this.touchViewListGroup.dom.innerHTML = ''; - }, - - onTouchViewClick : function(e, el, o) - { - e.preventDefault(); - - var row = o.row; - var rowIndex = o.rowIndex; - - var r = this.store.getAt(rowIndex); - - if(this.fireEvent('beforeselect', this, r, rowIndex) !== false){ - - if(!this.multiple){ - Roo.each(this.touchViewListGroup.select('.list-group-item > .roo-combobox-list-group-item-box > input:checked', true).elements, function(c){ - c.dom.removeAttribute('checked'); - }, this); - - row.select('.roo-combobox-list-group-item-box > input', true).first().attr('checked', true); - - this.setFromData(r.data); - - var close = this.closeTriggerEl(); - - if(close){ - close.show(); - } - - this.hideTouchView(); - - this.fireEvent('select', this, r, rowIndex); - - return; - } - - if(this.valueField && typeof(r.data[this.valueField]) != 'undefined' && this.getValue().indexOf(r.data[this.valueField]) != -1){ - row.select('.roo-combobox-list-group-item-box > input', true).first().dom.removeAttribute('checked'); - this.tickItems.splice(this.tickItems.indexOf(r.data), 1); - return; - } - - row.select('.roo-combobox-list-group-item-box > input', true).first().attr('checked', true); - this.addItem(r.data); - this.tickItems.push(r.data); - } - }, - - getAutoCreateNativeIOS : function() - { - var cfg = { - cls: 'form-group' //input-group, - }; - - var combobox = { - tag: 'select', - cls : 'roo-ios-select' - }; - - if (this.name) { - combobox.name = this.name; - } - - if (this.disabled) { - combobox.disabled = true; - } - - var settings = this; - - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - cfg.cn = combobox; - - return cfg; - - }, - - initIOSView : function() - { - this.store.on('load', this.onIOSViewLoad, this); - - return; - }, - - onIOSViewLoad : function() - { - if(this.store.getCount() < 1){ - return; - } - - this.clearIOSView(); - - if(this.allowBlank) { - - var default_text = '-- SELECT --'; - - if(this.placeholder.length){ - default_text = this.placeholder; - } - - if(this.emptyTitle.length){ - default_text += ' - ' + this.emptyTitle + ' -'; - } - - var opt = this.inputEl().createChild({ - tag: 'option', - value : 0, - html : default_text - }); - - var o = {}; - o[this.valueField] = 0; - o[this.displayField] = default_text; - - this.ios_options.push({ - data : o, - el : opt - }); - - } - - this.store.data.each(function(d, rowIndex){ - - var html = ''; - - if(this.displayField && typeof(d.data[this.displayField]) != 'undefined'){ - html = d.data[this.displayField]; - } - - var value = ''; - - if(this.valueField && typeof(d.data[this.valueField]) != 'undefined'){ - value = d.data[this.valueField]; - } - - var option = { - tag: 'option', - value : value, - html : html - }; - - if(this.value == d.data[this.valueField]){ - option['selected'] = true; - } - - var opt = this.inputEl().createChild(option); - - this.ios_options.push({ - data : d.data, - el : opt - }); - - }, this); - - this.inputEl().on('change', function(){ - this.fireEvent('select', this); - }, this); - - }, - - clearIOSView: function() - { - this.inputEl().dom.innerHTML = ''; - - this.ios_options = []; - }, - - setIOSValue: function(v) - { - this.value = v; - - if(!this.ios_options){ - return; - } - - Roo.each(this.ios_options, function(opts){ - - opts.el.dom.removeAttribute('selected'); - - if(opts.data[this.valueField] != v){ - return; - } - - opts.el.dom.setAttribute('selected', true); - - }, this); - } - - /** - * @cfg {Boolean} grow - * @hide - */ - /** - * @cfg {Number} growMin - * @hide - */ - /** - * @cfg {Number} growMax - * @hide - */ - /** - * @hide - * @method autoSize - */ -}); - -Roo.apply(Roo.bootstrap.ComboBox, { - - header : { - tag: 'div', - cls: 'modal-header', - cn: [ - { - tag: 'h4', - cls: 'modal-title' - } - ] - }, - - body : { - tag: 'div', - cls: 'modal-body', - cn: [ - { - tag: 'ul', - cls: 'list-group' - } - ] - }, - - listItemRadio : { - tag: 'li', - cls: 'list-group-item', - cn: [ - { - tag: 'span', - cls: 'roo-combobox-list-group-item-value' - }, - { - tag: 'div', - cls: 'roo-combobox-list-group-item-box pull-xs-right radio-inline radio radio-info', - cn: [ - { - tag: 'input', - type: 'radio' - }, - { - tag: 'label' - } - ] - } - ] - }, - - listItemCheckbox : { - tag: 'li', - cls: 'list-group-item', - cn: [ - { - tag: 'span', - cls: 'roo-combobox-list-group-item-value' - }, - { - tag: 'div', - cls: 'roo-combobox-list-group-item-box pull-xs-right checkbox-inline checkbox checkbox-info', - cn: [ - { - tag: 'input', - type: 'checkbox' - }, - { - tag: 'label' - } - ] - } - ] - }, - - emptyResult : { - tag: 'div', - cls: 'alert alert-danger roo-combobox-touch-view-empty-result' - }, - - footer : { - tag: 'div', - cls: 'modal-footer', - cn: [ - { - tag: 'div', - cls: 'row', - cn: [ - { - tag: 'div', - cls: 'col-xs-6 text-left', - cn: { - tag: 'button', - cls: 'btn btn-danger roo-touch-view-cancel', - html: 'Cancel' - } - }, - { - tag: 'div', - cls: 'col-xs-6 text-right', - cn: { - tag: 'button', - cls: 'btn btn-success roo-touch-view-ok', - html: 'OK' - } - } - ] - } - ] - - } -}); - -Roo.apply(Roo.bootstrap.ComboBox, { - - touchViewTemplate : { - tag: 'div', - cls: 'modal fade roo-combobox-touch-view', - cn: [ - { - tag: 'div', - cls: 'modal-dialog', - style : 'position:fixed', // we have to fix position.... - cn: [ - { - tag: 'div', - cls: 'modal-content', - cn: [ - Roo.bootstrap.ComboBox.header, - Roo.bootstrap.ComboBox.body, - Roo.bootstrap.ComboBox.footer - ] - } - ] - } - ] - } -}); \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_DateField.js.html b/docs/src/Roo_bootstrap_DateField.js.html deleted file mode 100644 index bccacdd2a6..0000000000 --- a/docs/src/Roo_bootstrap_DateField.js.html +++ /dev/null @@ -1,1144 +0,0 @@ -Roo/bootstrap/DateField.js/* - * - LGPL - * - * DateField - * - */ - -/** - * @class Roo.bootstrap.DateField - * @extends Roo.bootstrap.Input - * Bootstrap DateField class - * @cfg {Number} weekStart default 0 - * @cfg {String} viewMode default empty, (months|years) - * @cfg {String} minViewMode default empty, (months|years) - * @cfg {Number} startDate default -Infinity - * @cfg {Number} endDate default Infinity - * @cfg {Boolean} todayHighlight default false - * @cfg {Boolean} todayBtn default false - * @cfg {Boolean} calendarWeeks default false - * @cfg {Object} daysOfWeekDisabled default empty - * @cfg {Boolean} singleMode default false (true | false) - * - * @cfg {Boolean} keyboardNavigation default true - * @cfg {String} language default en - * - * @constructor - * Create a new DateField - * @param {Object} config The config object - */ - -Roo.bootstrap.DateField = function(config){ - Roo.bootstrap.DateField.superclass.constructor.call(this, config); - this.addEvents({ - /** - * @event show - * Fires when this field show. - * @param {Roo.bootstrap.DateField} this - * @param {Mixed} date The date value - */ - show : true, - /** - * @event show - * Fires when this field hide. - * @param {Roo.bootstrap.DateField} this - * @param {Mixed} date The date value - */ - hide : true, - /** - * @event select - * Fires when select a date. - * @param {Roo.bootstrap.DateField} this - * @param {Mixed} date The date value - */ - select : true, - /** - * @event beforeselect - * Fires when before select a date. - * @param {Roo.bootstrap.DateField} this - * @param {Mixed} date The date value - */ - beforeselect : true - }); -}; - -Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { - - /** - * @cfg {String} format - * The default date format string which can be overriden for localization support. The format must be - * valid according to {@link Date#parseDate} (defaults to 'm/d/y'). - */ - format : "m/d/y", - /** - * @cfg {String} altFormats - * Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined - * format (defaults to 'm/d/Y|m-d-y|m-d-Y|m/d|m-d|d'). - */ - altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d", - - weekStart : 0, - - viewMode : '', - - minViewMode : '', - - todayHighlight : false, - - todayBtn: false, - - language: 'en', - - keyboardNavigation: true, - - calendarWeeks: false, - - startDate: -Infinity, - - endDate: Infinity, - - daysOfWeekDisabled: [], - - _events: [], - - singleMode : false, - - UTCDate: function() - { - return new Date(Date.UTC.apply(Date, arguments)); - }, - - UTCToday: function() - { - var today = new Date(); - return this.UTCDate(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate()); - }, - - getDate: function() { - var d = this.getUTCDate(); - return new Date(d.getTime() + (d.getTimezoneOffset()*60000)); - }, - - getUTCDate: function() { - return this.date; - }, - - setDate: function(d) { - this.setUTCDate(new Date(d.getTime() - (d.getTimezoneOffset()*60000))); - }, - - setUTCDate: function(d) { - this.date = d; - this.setValue(this.formatDate(this.date)); - }, - - onRender: function(ct, position) - { - - Roo.bootstrap.DateField.superclass.onRender.call(this, ct, position); - - this.language = this.language || 'en'; - this.language = this.language in Roo.bootstrap.DateField.dates ? this.language : this.language.split('-')[0]; - this.language = this.language in Roo.bootstrap.DateField.dates ? this.language : "en"; - - this.isRTL = Roo.bootstrap.DateField.dates[this.language].rtl || false; - this.format = this.format || 'm/d/y'; - this.isInline = false; - this.isInput = true; - this.component = this.el.select('.add-on', true).first() || false; - this.component = (this.component && this.component.length === 0) ? false : this.component; - this.hasInput = this.component && this.inputEl().length; - - if (typeof(this.minViewMode === 'string')) { - switch (this.minViewMode) { - case 'months': - this.minViewMode = 1; - break; - case 'years': - this.minViewMode = 2; - break; - default: - this.minViewMode = 0; - break; - } - } - - if (typeof(this.viewMode === 'string')) { - switch (this.viewMode) { - case 'months': - this.viewMode = 1; - break; - case 'years': - this.viewMode = 2; - break; - default: - this.viewMode = 0; - break; - } - } - - this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.DateField.template); - -// this.el.select('>.input-group', true).first().createChild(Roo.bootstrap.DateField.template); - - this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - this.picker().on('mousedown', this.onMousedown, this); - this.picker().on('click', this.onClick, this); - - this.picker().addClass('datepicker-dropdown'); - - this.startViewMode = this.viewMode; - - if(this.singleMode){ - Roo.each(this.picker().select('thead > tr > th', true).elements, function(v){ - v.setVisibilityMode(Roo.Element.DISPLAY); - v.hide(); - }); - - Roo.each(this.picker().select('tbody > tr > td', true).elements, function(v){ - v.setStyle('width', '189px'); - }); - } - - Roo.each(this.picker().select('tfoot th.today', true).elements, function(v){ - if(!this.calendarWeeks){ - v.remove(); - return; - } - - v.dom.innerHTML = Roo.bootstrap.DateField.dates[this.language].today; - v.attr('colspan', function(i, val){ - return parseInt(val) + 1; - }); - }); - - - this.weekEnd = this.weekStart === 0 ? 6 : this.weekStart - 1; - - this.setStartDate(this.startDate); - this.setEndDate(this.endDate); - - this.setDaysOfWeekDisabled(this.daysOfWeekDisabled); - - this.fillDow(); - this.fillMonths(); - this.update(); - this.showMode(); - - if(this.isInline) { - this.showPopup(); - } - }, - - picker : function() - { - return this.pickerEl; -// return this.el.select('.datepicker', true).first(); - }, - - fillDow: function() - { - var dowCnt = this.weekStart; - - var dow = { - tag: 'tr', - cn: [ - - ] - }; - - if(this.calendarWeeks){ - dow.cn.push({ - tag: 'th', - cls: 'cw', - html: '&nbsp;' - }) - } - - while (dowCnt < this.weekStart + 7) { - dow.cn.push({ - tag: 'th', - cls: 'dow', - html: Roo.bootstrap.DateField.dates[this.language].daysMin[(dowCnt++)%7] - }); - } - - this.picker().select('>.datepicker-days thead', true).first().createChild(dow); - }, - - fillMonths: function() - { - var i = 0; - var months = this.picker().select('>.datepicker-months td', true).first(); - - months.dom.innerHTML = ''; - - while (i < 12) { - var month = { - tag: 'span', - cls: 'month', - html: Roo.bootstrap.DateField.dates[this.language].monthsShort[i++] - }; - - months.createChild(month); - } - - }, - - update: function() - { - this.date = (typeof(this.date) === 'undefined' || ((typeof(this.date) === 'string') && !this.date.length)) ? this.UTCToday() : (typeof(this.date) === 'string') ? this.parseDate(this.date) : this.date; - - if (this.date < this.startDate) { - this.viewDate = new Date(this.startDate); - } else if (this.date > this.endDate) { - this.viewDate = new Date(this.endDate); - } else { - this.viewDate = new Date(this.date); - } - - this.fill(); - }, - - fill: function() - { - var d = new Date(this.viewDate), - year = d.getUTCFullYear(), - month = d.getUTCMonth(), - startYear = this.startDate !== -Infinity ? this.startDate.getUTCFullYear() : -Infinity, - startMonth = this.startDate !== -Infinity ? this.startDate.getUTCMonth() : -Infinity, - endYear = this.endDate !== Infinity ? this.endDate.getUTCFullYear() : Infinity, - endMonth = this.endDate !== Infinity ? this.endDate.getUTCMonth() : Infinity, - currentDate = this.date && this.date.valueOf(), - today = this.UTCToday(); - - this.picker().select('>.datepicker-days thead th.switch', true).first().dom.innerHTML = Roo.bootstrap.DateField.dates[this.language].months[month]+' '+year; - -// this.picker().select('>tfoot th.today', true).first().dom.innerHTML = Roo.bootstrap.DateField.dates[this.language].today; - -// this.picker.select('>tfoot th.today'). -// .text(dates[this.language].today) -// .toggle(this.todayBtn !== false); - - this.updateNavArrows(); - this.fillMonths(); - - var prevMonth = this.UTCDate(year, month-1, 28,0,0,0,0), - - day = prevMonth.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth()); - - prevMonth.setUTCDate(day); - - prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.weekStart + 7)%7); - - var nextMonth = new Date(prevMonth); - - nextMonth.setUTCDate(nextMonth.getUTCDate() + 42); - - nextMonth = nextMonth.valueOf(); - - var fillMonths = false; - - this.picker().select('>.datepicker-days tbody',true).first().dom.innerHTML = ''; - - while(prevMonth.valueOf() <= nextMonth) { - var clsName = ''; - - if (prevMonth.getUTCDay() === this.weekStart) { - if(fillMonths){ - this.picker().select('>.datepicker-days tbody',true).first().createChild(fillMonths); - } - - fillMonths = { - tag: 'tr', - cn: [] - }; - - if(this.calendarWeeks){ - // ISO 8601: First week contains first thursday. - // ISO also states week starts on Monday, but we can be more abstract here. - var - // Start of current week: based on weekstart/current date - ws = new Date(+prevMonth + (this.weekStart - prevMonth.getUTCDay() - 7) % 7 * 864e5), - // Thursday of this week - th = new Date(+ws + (7 + 4 - ws.getUTCDay()) % 7 * 864e5), - // First Thursday of year, year from thursday - yth = new Date(+(yth = this.UTCDate(th.getUTCFullYear(), 0, 1)) + (7 + 4 - yth.getUTCDay())%7*864e5), - // Calendar week: ms between thursdays, div ms per day, div 7 days - calWeek = (th - yth) / 864e5 / 7 + 1; - - fillMonths.cn.push({ - tag: 'td', - cls: 'cw', - html: calWeek - }); - } - } - - if (prevMonth.getUTCFullYear() < year || (prevMonth.getUTCFullYear() == year && prevMonth.getUTCMonth() < month)) { - clsName += ' old'; - } else if (prevMonth.getUTCFullYear() > year || (prevMonth.getUTCFullYear() == year && prevMonth.getUTCMonth() > month)) { - clsName += ' new'; - } - if (this.todayHighlight && - prevMonth.getUTCFullYear() == today.getFullYear() && - prevMonth.getUTCMonth() == today.getMonth() && - prevMonth.getUTCDate() == today.getDate()) { - clsName += ' today'; - } - - if (currentDate && prevMonth.valueOf() === currentDate) { - clsName += ' active'; - } - - if (prevMonth.valueOf() < this.startDate || prevMonth.valueOf() > this.endDate || - this.daysOfWeekDisabled.indexOf(prevMonth.getUTCDay()) !== -1) { - clsName += ' disabled'; - } - - fillMonths.cn.push({ - tag: 'td', - cls: 'day ' + clsName, - html: prevMonth.getDate() - }); - - prevMonth.setDate(prevMonth.getDate()+1); - } - - var currentYear = this.date && this.date.getUTCFullYear(); - var currentMonth = this.date && this.date.getUTCMonth(); - - this.picker().select('>.datepicker-months th.switch',true).first().dom.innerHTML = year; - - Roo.each(this.picker().select('>.datepicker-months tbody span',true).elements, function(v,k){ - v.removeClass('active'); - - if(currentYear === year && k === currentMonth){ - v.addClass('active'); - } - - if (year < startYear || year > endYear || (year == startYear && k < startMonth) || (year == endYear && k > endMonth)) { - v.addClass('disabled'); - } - - }); - - - year = parseInt(year/10, 10) * 10; - - this.picker().select('>.datepicker-years th.switch', true).first().dom.innerHTML = year + '-' + (year + 9); - - this.picker().select('>.datepicker-years tbody td',true).first().dom.innerHTML = ''; - - year -= 1; - for (var i = -1; i < 11; i++) { - this.picker().select('>.datepicker-years tbody td',true).first().createChild({ - tag: 'span', - cls: 'year' + (i === -1 || i === 10 ? ' old' : '') + (currentYear === year ? ' active' : '') + (year < startYear || year > endYear ? ' disabled' : ''), - html: year - }); - - year += 1; - } - }, - - showMode: function(dir) - { - if (dir) { - this.viewMode = Math.max(this.minViewMode, Math.min(2, this.viewMode + dir)); - } - - Roo.each(this.picker().select('>div',true).elements, function(v){ - v.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - v.hide(); - }); - this.picker().select('>.datepicker-'+Roo.bootstrap.DateField.modes[this.viewMode].clsName, true).first().show(); - }, - - place: function() - { - if(this.isInline) { - return; - } - - this.picker().removeClass(['bottom', 'top']); - - if((Roo.lib.Dom.getViewHeight() + Roo.get(document.body).getScroll().top) - (this.inputEl().getBottom() + this.picker().getHeight()) < 0){ - /* - * place to the top of element! - * - */ - - this.picker().addClass('top'); - this.picker().setTop(this.inputEl().getTop() - this.picker().getHeight()).setLeft(this.inputEl().getLeft()); - - return; - } - - this.picker().addClass('bottom'); - - this.picker().setTop(this.inputEl().getBottom()).setLeft(this.inputEl().getLeft()); - }, - - parseDate : function(value) - { - if(!value || value instanceof Date){ - return value; - } - var v = Date.parseDate(value, this.format); - if (!v && (this.useIso || value.match(/^(\d{4})-0?(\d+)-0?(\d+)/))) { - v = Date.parseDate(value, 'Y-m-d'); - } - if(!v && this.altFormats){ - if(!this.altFormatsArray){ - this.altFormatsArray = this.altFormats.split("|"); - } - for(var i = 0, len = this.altFormatsArray.length; i < len && !v; i++){ - v = Date.parseDate(value, this.altFormatsArray[i]); - } - } - return v; - }, - - formatDate : function(date, fmt) - { - return (!date || !(date instanceof Date)) ? - date : date.dateFormat(fmt || this.format); - }, - - onFocus : function() - { - Roo.bootstrap.DateField.superclass.onFocus.call(this); - this.showPopup(); - }, - - onBlur : function() - { - Roo.bootstrap.DateField.superclass.onBlur.call(this); - - var d = this.inputEl().getValue(); - - this.setValue(d); - - this.hidePopup(); - }, - - showPopup : function() - { - this.picker().show(); - this.update(); - this.place(); - - this.fireEvent('showpopup', this, this.date); - }, - - hidePopup : function() - { - if(this.isInline) { - return; - } - this.picker().hide(); - this.viewMode = this.startViewMode; - this.showMode(); - - this.fireEvent('hidepopup', this, this.date); - - }, - - onMousedown: function(e) - { - e.stopPropagation(); - e.preventDefault(); - }, - - keyup: function(e) - { - Roo.bootstrap.DateField.superclass.keyup.call(this); - this.update(); - }, - - setValue: function(v) - { - if(this.fireEvent('beforeselect', this, v) !== false){ - var d = new Date(this.parseDate(v) ).clearTime(); - - if(isNaN(d.getTime())){ - this.date = this.viewDate = ''; - Roo.bootstrap.DateField.superclass.setValue.call(this, ''); - return; - } - - v = this.formatDate(d); - - Roo.bootstrap.DateField.superclass.setValue.call(this, v); - - this.date = new Date(d.getTime() - d.getTimezoneOffset()*60000); - - this.update(); - - this.fireEvent('select', this, this.date); - } - }, - - getValue: function() - { - return this.formatDate(this.date); - }, - - fireKey: function(e) - { - if (!this.picker().isVisible()){ - if (e.keyCode == 27) { // allow escape to hide and re-show picker - this.showPopup(); - } - return; - } - - var dateChanged = false, - dir, day, month, - newDate, newViewDate; - - switch(e.keyCode){ - case 27: // escape - this.hidePopup(); - e.preventDefault(); - break; - case 37: // left - case 39: // right - if (!this.keyboardNavigation) { - break; - } - dir = e.keyCode == 37 ? -1 : 1; - - if (e.ctrlKey){ - newDate = this.moveYear(this.date, dir); - newViewDate = this.moveYear(this.viewDate, dir); - } else if (e.shiftKey){ - newDate = this.moveMonth(this.date, dir); - newViewDate = this.moveMonth(this.viewDate, dir); - } else { - newDate = new Date(this.date); - newDate.setUTCDate(this.date.getUTCDate() + dir); - newViewDate = new Date(this.viewDate); - newViewDate.setUTCDate(this.viewDate.getUTCDate() + dir); - } - if (this.dateWithinRange(newDate)){ - this.date = newDate; - this.viewDate = newViewDate; - this.setValue(this.formatDate(this.date)); -// this.update(); - e.preventDefault(); - dateChanged = true; - } - break; - case 38: // up - case 40: // down - if (!this.keyboardNavigation) { - break; - } - dir = e.keyCode == 38 ? -1 : 1; - if (e.ctrlKey){ - newDate = this.moveYear(this.date, dir); - newViewDate = this.moveYear(this.viewDate, dir); - } else if (e.shiftKey){ - newDate = this.moveMonth(this.date, dir); - newViewDate = this.moveMonth(this.viewDate, dir); - } else { - newDate = new Date(this.date); - newDate.setUTCDate(this.date.getUTCDate() + dir * 7); - newViewDate = new Date(this.viewDate); - newViewDate.setUTCDate(this.viewDate.getUTCDate() + dir * 7); - } - if (this.dateWithinRange(newDate)){ - this.date = newDate; - this.viewDate = newViewDate; - this.setValue(this.formatDate(this.date)); -// this.update(); - e.preventDefault(); - dateChanged = true; - } - break; - case 13: // enter - this.setValue(this.formatDate(this.date)); - this.hidePopup(); - e.preventDefault(); - break; - case 9: // tab - this.setValue(this.formatDate(this.date)); - this.hidePopup(); - break; - case 16: // shift - case 17: // ctrl - case 18: // alt - break; - default : - this.hidePopup(); - - } - }, - - - onClick: function(e) - { - e.stopPropagation(); - e.preventDefault(); - - var target = e.getTarget(); - - if(target.nodeName.toLowerCase() === 'i'){ - target = Roo.get(target).dom.parentNode; - } - - var nodeName = target.nodeName; - var className = target.className; - var html = target.innerHTML; - //Roo.log(nodeName); - - switch(nodeName.toLowerCase()) { - case 'th': - switch(className) { - case 'switch': - this.showMode(1); - break; - case 'prev': - case 'next': - var dir = Roo.bootstrap.DateField.modes[this.viewMode].navStep * (className == 'prev' ? -1 : 1); - switch(this.viewMode){ - case 0: - this.viewDate = this.moveMonth(this.viewDate, dir); - break; - case 1: - case 2: - this.viewDate = this.moveYear(this.viewDate, dir); - break; - } - this.fill(); - break; - case 'today': - var date = new Date(); - this.date = this.UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0); -// this.fill() - this.setValue(this.formatDate(this.date)); - - this.hidePopup(); - break; - } - break; - case 'span': - if (className.indexOf('disabled') < 0) { - if (!this.viewDate) { - this.viewDate = new Date(); - } - this.viewDate.setUTCDate(1); - if (className.indexOf('month') > -1) { - this.viewDate.setUTCMonth(Roo.bootstrap.DateField.dates[this.language].monthsShort.indexOf(html)); - } else { - var year = parseInt(html, 10) || 0; - this.viewDate.setUTCFullYear(year); - - } - - if(this.singleMode){ - this.setValue(this.formatDate(this.viewDate)); - this.hidePopup(); - return; - } - - this.showMode(-1); - this.fill(); - } - break; - - case 'td': - //Roo.log(className); - if (className.indexOf('day') > -1 && className.indexOf('disabled') < 0 ){ - var day = parseInt(html, 10) || 1; - var year = (this.viewDate || new Date()).getUTCFullYear(), - month = (this.viewDate || new Date()).getUTCMonth(); - - if (className.indexOf('old') > -1) { - if(month === 0 ){ - month = 11; - year -= 1; - }else{ - month -= 1; - } - } else if (className.indexOf('new') > -1) { - if (month == 11) { - month = 0; - year += 1; - } else { - month += 1; - } - } - //Roo.log([year,month,day]); - this.date = this.UTCDate(year, month, day,0,0,0,0); - this.viewDate = this.UTCDate(year, month, Math.min(28, day),0,0,0,0); -// this.fill(); - //Roo.log(this.formatDate(this.date)); - this.setValue(this.formatDate(this.date)); - this.hidePopup(); - } - break; - } - }, - - setStartDate: function(startDate) - { - this.startDate = startDate || -Infinity; - if (this.startDate !== -Infinity) { - this.startDate = this.parseDate(this.startDate); - } - this.update(); - this.updateNavArrows(); - }, - - setEndDate: function(endDate) - { - this.endDate = endDate || Infinity; - if (this.endDate !== Infinity) { - this.endDate = this.parseDate(this.endDate); - } - this.update(); - this.updateNavArrows(); - }, - - setDaysOfWeekDisabled: function(daysOfWeekDisabled) - { - this.daysOfWeekDisabled = daysOfWeekDisabled || []; - if (typeof(this.daysOfWeekDisabled) !== 'object') { - this.daysOfWeekDisabled = this.daysOfWeekDisabled.split(/,\s*/); - } - this.daysOfWeekDisabled = this.daysOfWeekDisabled.map(function (d) { - return parseInt(d, 10); - }); - this.update(); - this.updateNavArrows(); - }, - - updateNavArrows: function() - { - if(this.singleMode){ - return; - } - - var d = new Date(this.viewDate), - year = d.getUTCFullYear(), - month = d.getUTCMonth(); - - Roo.each(this.picker().select('.prev', true).elements, function(v){ - v.show(); - switch (this.viewMode) { - case 0: - - if (this.startDate !== -Infinity && year <= this.startDate.getUTCFullYear() && month <= this.startDate.getUTCMonth()) { - v.hide(); - } - break; - case 1: - case 2: - if (this.startDate !== -Infinity && year <= this.startDate.getUTCFullYear()) { - v.hide(); - } - break; - } - }); - - Roo.each(this.picker().select('.next', true).elements, function(v){ - v.show(); - switch (this.viewMode) { - case 0: - - if (this.endDate !== Infinity && year >= this.endDate.getUTCFullYear() && month >= this.endDate.getUTCMonth()) { - v.hide(); - } - break; - case 1: - case 2: - if (this.endDate !== Infinity && year >= this.endDate.getUTCFullYear()) { - v.hide(); - } - break; - } - }) - }, - - moveMonth: function(date, dir) - { - if (!dir) { - return date; - } - var new_date = new Date(date.valueOf()), - day = new_date.getUTCDate(), - month = new_date.getUTCMonth(), - mag = Math.abs(dir), - new_month, test; - dir = dir > 0 ? 1 : -1; - if (mag == 1){ - test = dir == -1 - // If going back one month, make sure month is not current month - // (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02) - ? function(){ - return new_date.getUTCMonth() == month; - } - // If going forward one month, make sure month is as expected - // (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02) - : function(){ - return new_date.getUTCMonth() != new_month; - }; - new_month = month + dir; - new_date.setUTCMonth(new_month); - // Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11 - if (new_month < 0 || new_month > 11) { - new_month = (new_month + 12) % 12; - } - } else { - // For magnitudes >1, move one month at a time... - for (var i=0; i<mag; i++) { - // ...which might decrease the day (eg, Jan 31 to Feb 28, etc)... - new_date = this.moveMonth(new_date, dir); - } - // ...then reset the day, keeping it in the new month - new_month = new_date.getUTCMonth(); - new_date.setUTCDate(day); - test = function(){ - return new_month != new_date.getUTCMonth(); - }; - } - // Common date-resetting loop -- if date is beyond end of month, make it - // end of month - while (test()){ - new_date.setUTCDate(--day); - new_date.setUTCMonth(new_month); - } - return new_date; - }, - - moveYear: function(date, dir) - { - return this.moveMonth(date, dir*12); - }, - - dateWithinRange: function(date) - { - return date >= this.startDate && date <= this.endDate; - }, - - - remove: function() - { - this.picker().remove(); - }, - - validateValue : function(value) - { - if(this.getVisibilityEl().hasClass('hidden')){ - return true; - } - - if(value.length < 1) { - if(this.allowBlank){ - return true; - } - return false; - } - - if(value.length < this.minLength){ - return false; - } - if(value.length > this.maxLength){ - return false; - } - if(this.vtype){ - var vt = Roo.form.VTypes; - if(!vt[this.vtype](value, this)){ - return false; - } - } - if(typeof this.validator == "function"){ - var msg = this.validator(value); - if(msg !== true){ - return false; - } - } - - if(this.regex && !this.regex.test(value)){ - return false; - } - - if(typeof(this.parseDate(value)) == 'undefined'){ - return false; - } - - if (this.endDate !== Infinity && this.parseDate(value).getTime() > this.endDate.getTime()) { - return false; - } - - if (this.startDate !== -Infinity && this.parseDate(value).getTime() < this.startDate.getTime()) { - return false; - } - - - return true; - }, - - reset : function() - { - this.date = this.viewDate = ''; - - Roo.bootstrap.DateField.superclass.setValue.call(this, ''); - } - -}); - -Roo.apply(Roo.bootstrap.DateField, { - - head : { - tag: 'thead', - cn: [ - { - tag: 'tr', - cn: [ - { - tag: 'th', - cls: 'prev', - html: '<i class="fa fa-arrow-left"/>' - }, - { - tag: 'th', - cls: 'switch', - colspan: '5' - }, - { - tag: 'th', - cls: 'next', - html: '<i class="fa fa-arrow-right"/>' - } - - ] - } - ] - }, - - content : { - tag: 'tbody', - cn: [ - { - tag: 'tr', - cn: [ - { - tag: 'td', - colspan: '7' - } - ] - } - ] - }, - - footer : { - tag: 'tfoot', - cn: [ - { - tag: 'tr', - cn: [ - { - tag: 'th', - colspan: '7', - cls: 'today' - } - - ] - } - ] - }, - - dates:{ - en: { - days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], - daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], - daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], - months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], - monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], - today: "Today" - } - }, - - modes: [ - { - clsName: 'days', - navFnc: 'Month', - navStep: 1 - }, - { - clsName: 'months', - navFnc: 'FullYear', - navStep: 1 - }, - { - clsName: 'years', - navFnc: 'FullYear', - navStep: 10 - }] -}); - -Roo.apply(Roo.bootstrap.DateField, { - - template : { - tag: 'div', - cls: 'datepicker dropdown-menu roo-dynamic shadow', - cn: [ - { - tag: 'div', - cls: 'datepicker-days', - cn: [ - { - tag: 'table', - cls: 'table-condensed', - cn:[ - Roo.bootstrap.DateField.head, - { - tag: 'tbody' - }, - Roo.bootstrap.DateField.footer - ] - } - ] - }, - { - tag: 'div', - cls: 'datepicker-months', - cn: [ - { - tag: 'table', - cls: 'table-condensed', - cn:[ - Roo.bootstrap.DateField.head, - Roo.bootstrap.DateField.content, - Roo.bootstrap.DateField.footer - ] - } - ] - }, - { - tag: 'div', - cls: 'datepicker-years', - cn: [ - { - tag: 'table', - cls: 'table-condensed', - cn:[ - Roo.bootstrap.DateField.head, - Roo.bootstrap.DateField.content, - Roo.bootstrap.DateField.footer - ] - } - ] - } - ] - } -}); - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_DateSplitField.js.html b/docs/src/Roo_bootstrap_DateSplitField.js.html deleted file mode 100644 index ea2fc3b95f..0000000000 --- a/docs/src/Roo_bootstrap_DateSplitField.js.html +++ /dev/null @@ -1,432 +0,0 @@ -Roo/bootstrap/DateSplitField.js/* - * - LGPL - * - * page DateSplitField. - * - */ - - -/** - * @class Roo.bootstrap.DateSplitField - * @extends Roo.bootstrap.Component - * Bootstrap DateSplitField class - * @cfg {string} fieldLabel - the label associated - * @cfg {Number} labelWidth set the width of label (0-12) - * @cfg {String} labelAlign (top|left) - * @cfg {Boolean} dayAllowBlank (true|false) default false - * @cfg {Boolean} monthAllowBlank (true|false) default false - * @cfg {Boolean} yearAllowBlank (true|false) default false - * @cfg {string} dayPlaceholder - * @cfg {string} monthPlaceholder - * @cfg {string} yearPlaceholder - * @cfg {string} dayFormat default 'd' - * @cfg {string} monthFormat default 'm' - * @cfg {string} yearFormat default 'Y' - * @cfg {Number} labellg set the width of label (1-12) - * @cfg {Number} labelmd set the width of label (1-12) - * @cfg {Number} labelsm set the width of label (1-12) - * @cfg {Number} labelxs set the width of label (1-12) - - * - * @constructor - * Create a new DateSplitField - * @param {Object} config The config object - */ - -Roo.bootstrap.DateSplitField = function(config){ - Roo.bootstrap.DateSplitField.superclass.constructor.call(this, config); - - this.addEvents({ - // raw events - /** - * @event years - * getting the data of years - * @param {Roo.bootstrap.DateSplitField} this - * @param {Object} years - */ - "years" : true, - /** - * @event days - * getting the data of days - * @param {Roo.bootstrap.DateSplitField} this - * @param {Object} days - */ - "days" : true, - /** - * @event invalid - * Fires after the field has been marked as invalid. - * @param {Roo.form.Field} this - * @param {String} msg The validation message - */ - invalid : true, - /** - * @event valid - * Fires after the field has been validated with no errors. - * @param {Roo.form.Field} this - */ - valid : true - }); -}; - -Roo.extend(Roo.bootstrap.DateSplitField, Roo.bootstrap.Component, { - - fieldLabel : '', - labelAlign : 'top', - labelWidth : 3, - dayAllowBlank : false, - monthAllowBlank : false, - yearAllowBlank : false, - dayPlaceholder : '', - monthPlaceholder : '', - yearPlaceholder : '', - dayFormat : 'd', - monthFormat : 'm', - yearFormat : 'Y', - isFormField : true, - labellg : 0, - labelmd : 0, - labelsm : 0, - labelxs : 0, - - getAutoCreate : function() - { - var cfg = { - tag : 'div', - cls : 'row roo-date-split-field-group', - cn : [ - { - tag : 'input', - type : 'hidden', - cls : 'form-hidden-field roo-date-split-field-group-value', - name : this.name - } - ] - }; - - var labelCls = 'col-md-12'; - var contentCls = 'col-md-4'; - - if(this.fieldLabel){ - - var label = { - tag : 'div', - cls : 'column roo-date-split-field-label col-md-' + ((this.labelAlign == 'top') ? '12' : this.labelWidth), - cn : [ - { - tag : 'label', - html : this.fieldLabel - } - ] - }; - - if(this.labelAlign == 'left'){ - - if(this.labelWidth > 12){ - label.style = "width: " + this.labelWidth + 'px'; - } - - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - - if(this.labellg > 0){ - labelCls = ' col-lg-' + this.labellg; - contentCls = ' col-lg-' + ((12 - this.labellg) / 3); - } - - if(this.labelmd > 0){ - labelCls = ' col-md-' + this.labelmd; - contentCls = ' col-md-' + ((12 - this.labelmd) / 3); - } - - if(this.labelsm > 0){ - labelCls = ' col-sm-' + this.labelsm; - contentCls = ' col-sm-' + ((12 - this.labelsm) / 3); - } - - if(this.labelxs > 0){ - labelCls = ' col-xs-' + this.labelxs; - contentCls = ' col-xs-' + ((12 - this.labelxs) / 3); - } - } - - label.cls += ' ' + labelCls; - - cfg.cn.push(label); - } - - Roo.each(['day', 'month', 'year'], function(t){ - cfg.cn.push({ - tag : 'div', - cls : 'column roo-date-split-field-' + t + ' ' + contentCls - }); - }, this); - - return cfg; - }, - - inputEl: function () - { - return this.el.select('.roo-date-split-field-group-value', true).first(); - }, - - onRender : function(ct, position) - { - var _this = this; - - Roo.bootstrap.DateSplitFiel.superclass.onRender.call(this, ct, position); - - this.inputEl = this.el.select('.roo-date-split-field-group-value', true).first(); - - this.dayField = new Roo.bootstrap.ComboBox({ - allowBlank : this.dayAllowBlank, - alwaysQuery : true, - displayField : 'value', - editable : false, - fieldLabel : '', - forceSelection : true, - mode : 'local', - placeholder : this.dayPlaceholder, - selectOnFocus : true, - tpl : '<div class="roo-select2-result"><b>{value}</b></div>', - triggerAction : 'all', - typeAhead : true, - valueField : 'value', - store : new Roo.data.SimpleStore({ - data : (function() { - var days = []; - _this.fireEvent('days', _this, days); - return days; - })(), - fields : [ 'value' ] - }), - listeners : { - select : function (_self, record, index) - { - _this.setValue(_this.getValue()); - } - } - }); - - this.dayField.render(this.el.select('.roo-date-split-field-day', true).first(), null); - - this.monthField = new Roo.bootstrap.MonthField({ - after : '<i class=\"fa fa-calendar\"></i>', - allowBlank : this.monthAllowBlank, - placeholder : this.monthPlaceholder, - readOnly : true, - listeners : { - render : function (_self) - { - this.el.select('span.input-group-addon', true).first().on('click', function(e){ - e.preventDefault(); - _self.focus(); - }); - }, - select : function (_self, oldvalue, newvalue) - { - _this.setValue(_this.getValue()); - } - } - }); - - this.monthField.render(this.el.select('.roo-date-split-field-month', true).first(), null); - - this.yearField = new Roo.bootstrap.ComboBox({ - allowBlank : this.yearAllowBlank, - alwaysQuery : true, - displayField : 'value', - editable : false, - fieldLabel : '', - forceSelection : true, - mode : 'local', - placeholder : this.yearPlaceholder, - selectOnFocus : true, - tpl : '<div class="roo-select2-result"><b>{value}</b></div>', - triggerAction : 'all', - typeAhead : true, - valueField : 'value', - store : new Roo.data.SimpleStore({ - data : (function() { - var years = []; - _this.fireEvent('years', _this, years); - return years; - })(), - fields : [ 'value' ] - }), - listeners : { - select : function (_self, record, index) - { - _this.setValue(_this.getValue()); - } - } - }); - - this.yearField.render(this.el.select('.roo-date-split-field-year', true).first(), null); - }, - - setValue : function(v, format) - { - this.inputEl.dom.value = v; - - var f = format || (this.yearFormat + '-' + this.monthFormat + '-' + this.dayFormat); - - var d = Date.parseDate(v, f); - - if(!d){ - this.validate(); - return; - } - - this.setDay(d.format(this.dayFormat)); - this.setMonth(d.format(this.monthFormat)); - this.setYear(d.format(this.yearFormat)); - - this.validate(); - - return; - }, - - setDay : function(v) - { - this.dayField.setValue(v); - this.inputEl.dom.value = this.getValue(); - this.validate(); - return; - }, - - setMonth : function(v) - { - this.monthField.setValue(v, true); - this.inputEl.dom.value = this.getValue(); - this.validate(); - return; - }, - - setYear : function(v) - { - this.yearField.setValue(v); - this.inputEl.dom.value = this.getValue(); - this.validate(); - return; - }, - - getDay : function() - { - return this.dayField.getValue(); - }, - - getMonth : function() - { - return this.monthField.getValue(); - }, - - getYear : function() - { - return this.yearField.getValue(); - }, - - getValue : function() - { - var f = this.yearFormat + '-' + this.monthFormat + '-' + this.dayFormat; - - var date = this.yearField.getValue() + '-' + this.monthField.getValue() + '-' + this.dayField.getValue(); - - return date; - }, - - reset : function() - { - this.setDay(''); - this.setMonth(''); - this.setYear(''); - this.inputEl.dom.value = ''; - this.validate(); - return; - }, - - validate : function() - { - var d = this.dayField.validate(); - var m = this.monthField.validate(); - var y = this.yearField.validate(); - - var valid = true; - - if( - (!this.dayAllowBlank && !d) || - (!this.monthAllowBlank && !m) || - (!this.yearAllowBlank && !y) - ){ - valid = false; - } - - if(this.dayAllowBlank && this.monthAllowBlank && this.yearAllowBlank){ - return valid; - } - - if(valid){ - this.markValid(); - return valid; - } - - this.markInvalid(); - - return valid; - }, - - markValid : function() - { - - var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); - - if(label && icon){ - icon.remove(); - } - - this.fireEvent('valid', this); - }, - - /** - * Mark this field as invalid - * @param {String} msg The validation message - */ - markInvalid : function(msg) - { - - var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); - - if(label && !icon){ - this.el.select('.roo-date-split-field-label', true).createChild({ - tag : 'i', - cls : 'text-danger fa fa-lg fa-star', - tooltip : 'This field is required', - style : 'margin-right:5px;' - }, label, true); - } - - this.fireEvent('invalid', this, msg); - }, - - clearInvalid : function() - { - var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); - - if(label && icon){ - icon.remove(); - } - - this.fireEvent('valid', this); - }, - - getName: function() - { - return this.name; - } - -}); - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_FieldLabel.js.html b/docs/src/Roo_bootstrap_FieldLabel.js.html deleted file mode 100644 index 375cec9780..0000000000 --- a/docs/src/Roo_bootstrap_FieldLabel.js.html +++ /dev/null @@ -1,210 +0,0 @@ -Roo/bootstrap/FieldLabel.js/* - * - LGPL - * - * FieldLabel - * - */ - -/** - * @class Roo.bootstrap.FieldLabel - * @extends Roo.bootstrap.Component - * Bootstrap FieldLabel class - * @cfg {String} html contents of the element - * @cfg {String} tag tag of the element default label - * @cfg {String} cls class of the element - * @cfg {String} target label target - * @cfg {Boolean} allowBlank (true|false) target allowBlank default true - * @cfg {String} invalidClass DEPRICATED - BS4 uses is-invalid - * @cfg {String} validClass DEPRICATED - BS4 uses is-valid - * @cfg {String} iconTooltip default "This field is required" - * @cfg {String} indicatorpos (left|right) default left - * - * @constructor - * Create a new FieldLabel - * @param {Object} config The config object - */ - -Roo.bootstrap.FieldLabel = function(config){ - Roo.bootstrap.Element.superclass.constructor.call(this, config); - - this.addEvents({ - /** - * @event invalid - * Fires after the field has been marked as invalid. - * @param {Roo.form.FieldLabel} this - * @param {String} msg The validation message - */ - invalid : true, - /** - * @event valid - * Fires after the field has been validated with no errors. - * @param {Roo.form.FieldLabel} this - */ - valid : true - }); -}; - -Roo.extend(Roo.bootstrap.FieldLabel, Roo.bootstrap.Component, { - - tag: 'label', - cls: '', - html: '', - target: '', - allowBlank : true, - invalidClass : 'has-warning', - validClass : 'has-success', - iconTooltip : 'This field is required', - indicatorpos : 'left', - - getAutoCreate : function(){ - - var cls = ""; - if (!this.allowBlank) { - cls = "visible"; - } - - var cfg = { - tag : this.tag, - cls : 'roo-bootstrap-field-label ' + this.cls, - for : this.target, - cn : [ - { - tag : 'i', - cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star ' + cls, - tooltip : this.iconTooltip - }, - { - tag : 'span', - html : this.html - } - ] - }; - - if(this.indicatorpos == 'right'){ - var cfg = { - tag : this.tag, - cls : 'roo-bootstrap-field-label ' + this.cls, - for : this.target, - cn : [ - { - tag : 'span', - html : this.html - }, - { - tag : 'i', - cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star '+ cls, - tooltip : this.iconTooltip - } - ] - }; - } - - return cfg; - }, - - initEvents: function() - { - Roo.bootstrap.Element.superclass.initEvents.call(this); - - this.indicator = this.indicatorEl(); - - if(this.indicator){ - this.indicator.removeClass('visible'); - this.indicator.addClass('invisible'); - } - - Roo.bootstrap.FieldLabel.register(this); - }, - - indicatorEl : function() - { - var indicator = this.el.select('i.roo-required-indicator',true).first(); - - if(!indicator){ - return false; - } - - return indicator; - - }, - - /** - * Mark this field as valid - */ - markValid : function() - { - if(this.indicator){ - this.indicator.removeClass('visible'); - this.indicator.addClass('invisible'); - } - if (Roo.bootstrap.version == 3) { - this.el.removeClass(this.invalidClass); - this.el.addClass(this.validClass); - } else { - this.el.removeClass('is-invalid'); - this.el.addClass('is-valid'); - } - - - this.fireEvent('valid', this); - }, - - /** - * Mark this field as invalid - * @param {String} msg The validation message - */ - markInvalid : function(msg) - { - if(this.indicator){ - this.indicator.removeClass('invisible'); - this.indicator.addClass('visible'); - } - if (Roo.bootstrap.version == 3) { - this.el.removeClass(this.validClass); - this.el.addClass(this.invalidClass); - } else { - this.el.removeClass('is-valid'); - this.el.addClass('is-invalid'); - } - - - this.fireEvent('invalid', this, msg); - } - - -}); - -Roo.apply(Roo.bootstrap.FieldLabel, { - - groups: {}, - - /** - * register a FieldLabel Group - * @param {Roo.bootstrap.FieldLabel} the FieldLabel to add - */ - register : function(label) - { - if(this.groups.hasOwnProperty(label.target)){ - return; - } - - this.groups[label.target] = label; - - }, - /** - * fetch a FieldLabel Group based on the target - * @param {string} target - * @returns {Roo.bootstrap.FieldLabel} the CheckBox group - */ - get: function(target) { - if (typeof(this.groups[target]) == 'undefined') { - return false; - } - - return this.groups[target] ; - } -}); - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Form.js.html b/docs/src/Roo_bootstrap_Form.js.html deleted file mode 100644 index 9be468310d..0000000000 --- a/docs/src/Roo_bootstrap_Form.js.html +++ /dev/null @@ -1,796 +0,0 @@ -Roo/bootstrap/Form.js/* - * - LGPL - * - * form - * - */ - -/** - * @class Roo.bootstrap.Form - * @extends Roo.bootstrap.Component - * @children Roo.bootstrap.Component - * Bootstrap Form class - * @cfg {String} method GET | POST (default POST) - * @cfg {String} labelAlign top | left (default top) - * @cfg {String} align left | right - for navbars - * @cfg {Boolean} loadMask load mask when submit (default true) - - * - * @constructor - * Create a new Form - * @param {Object} config The config object - */ - - -Roo.bootstrap.Form = function(config){ - - Roo.bootstrap.Form.superclass.constructor.call(this, config); - - Roo.bootstrap.Form.popover.apply(); - - this.addEvents({ - /** - * @event clientvalidation - * If the monitorValid config option is true, this event fires repetitively to notify of valid state - * @param {Form} this - * @param {Boolean} valid true if the form has passed client-side validation - */ - clientvalidation: true, - /** - * @event beforeaction - * Fires before any action is performed. Return false to cancel the action. - * @param {Form} this - * @param {Action} action The action to be performed - */ - beforeaction: true, - /** - * @event actionfailed - * Fires when an action fails. - * @param {Form} this - * @param {Action} action The action that failed - */ - actionfailed : true, - /** - * @event actioncomplete - * Fires when an action is completed. - * @param {Form} this - * @param {Action} action The action that completed - */ - actioncomplete : true - }); -}; - -Roo.extend(Roo.bootstrap.Form, Roo.bootstrap.Component, { - - /** - * @cfg {String} method - * The request method to use (GET or POST) for form actions if one isn't supplied in the action options. - */ - method : 'POST', - /** - * @cfg {String} url - * The URL to use for form actions if one isn't supplied in the action options. - */ - /** - * @cfg {Boolean} fileUpload - * Set to true if this form is a file upload. - */ - - /** - * @cfg {Object} baseParams - * Parameters to pass with all requests. e.g. baseParams: {id: '123', foo: 'bar'}. - */ - - /** - * @cfg {Number} timeout Timeout for form actions in seconds (default is 30 seconds). - */ - timeout: 30, - /** - * @cfg {Sting} align (left|right) for navbar forms - */ - align : 'left', - - // private - activeAction : null, - - /** - * By default wait messages are displayed with Roo.MessageBox.wait. You can target a specific - * element by passing it or its id or mask the form itself by passing in true. - * @type Mixed - */ - waitMsgTarget : false, - - loadMask : true, - - /** - * @cfg {Boolean} errorMask (true|false) default false - */ - errorMask : false, - - /** - * @cfg {Number} maskOffset Default 100 - */ - maskOffset : 100, - - /** - * @cfg {Boolean} maskBody - */ - maskBody : false, - - getAutoCreate : function(){ - - var cfg = { - tag: 'form', - method : this.method || 'POST', - id : this.id || Roo.id(), - cls : '' - }; - if (this.parent().xtype.match(/^Nav/)) { - cfg.cls = 'navbar-form form-inline navbar-' + this.align; - - } - - if (this.labelAlign == 'left' ) { - cfg.cls += ' form-horizontal'; - } - - - return cfg; - }, - initEvents : function() - { - this.el.on('submit', this.onSubmit, this); - // this was added as random key presses on the form where triggering form submit. - this.el.on('keypress', function(e) { - if (e.getCharCode() != 13) { - return true; - } - // we might need to allow it for textareas.. and some other items. - // check e.getTarget(). - - if(e.getTarget().nodeName.toLowerCase() === 'textarea'){ - return true; - } - - Roo.log("keypress blocked"); - - e.preventDefault(); - return false; - }); - - }, - // private - onSubmit : function(e){ - e.stopEvent(); - }, - - /** - * Returns true if client-side validation on the form is successful. - * @return Boolean - */ - isValid : function(){ - var items = this.getItems(); - var valid = true; - var target = false; - - items.each(function(f){ - - if(f.validate()){ - return; - } - - Roo.log('invalid field: ' + f.name); - - valid = false; - - if(!target && f.el.isVisible(true)){ - target = f; - } - - }); - - if(this.errorMask && !valid){ - Roo.bootstrap.Form.popover.mask(this, target); - } - - return valid; - }, - - /** - * Returns true if any fields in this form have changed since their original load. - * @return Boolean - */ - isDirty : function(){ - var dirty = false; - var items = this.getItems(); - items.each(function(f){ - if(f.isDirty()){ - dirty = true; - return false; - } - return true; - }); - return dirty; - }, - /** - * Performs a predefined action (submit or load) or custom actions you define on this form. - * @param {String} actionName The name of the action type - * @param {Object} options (optional) The options to pass to the action. All of the config options listed - * below are supported by both the submit and load actions unless otherwise noted (custom actions could also - * accept other config options): - * <pre> -Property Type Description ----------------- --------------- ---------------------------------------------------------------------------------- -url String The url for the action (defaults to the form's url) -method String The form method to use (defaults to the form's method, or POST if not defined) -params String/Object The params to pass (defaults to the form's baseParams, or none if not defined) -clientValidation Boolean Applies to submit only. Pass true to call form.isValid() prior to posting to - validate the form on the client (defaults to false) - * </pre> - * @return {BasicForm} this - */ - doAction : function(action, options){ - if(typeof action == 'string'){ - action = new Roo.form.Action.ACTION_TYPES[action](this, options); - } - if(this.fireEvent('beforeaction', this, action) !== false){ - this.beforeAction(action); - action.run.defer(100, action); - } - return this; - }, - - // private - beforeAction : function(action){ - var o = action.options; - - if(this.loadMask){ - - if(this.maskBody){ - Roo.get(document.body).mask(o.waitMsg || "Sending", 'x-mask-loading') - } else { - this.el.mask(o.waitMsg || "Sending", 'x-mask-loading'); - } - } - // not really supported yet.. ?? - - //if(this.waitMsgTarget === true){ - // this.el.mask(o.waitMsg || "Sending", 'x-mask-loading'); - //}else if(this.waitMsgTarget){ - // this.waitMsgTarget = Roo.get(this.waitMsgTarget); - // this.waitMsgTarget.mask(o.waitMsg || "Sending", 'x-mask-loading'); - //}else { - // Roo.MessageBox.wait(o.waitMsg || "Sending", o.waitTitle || this.waitTitle || 'Please Wait...'); - // } - - }, - - // private - afterAction : function(action, success){ - this.activeAction = null; - var o = action.options; - - if(this.loadMask){ - - if(this.maskBody){ - Roo.get(document.body).unmask(); - } else { - this.el.unmask(); - } - } - - //if(this.waitMsgTarget === true){ -// this.el.unmask(); - //}else if(this.waitMsgTarget){ - // this.waitMsgTarget.unmask(); - //}else{ - // Roo.MessageBox.updateProgress(1); - // Roo.MessageBox.hide(); - // } - // - if(success){ - if(o.reset){ - this.reset(); - } - Roo.callback(o.success, o.scope, [this, action]); - this.fireEvent('actioncomplete', this, action); - - }else{ - - // failure condition.. - // we have a scenario where updates need confirming. - // eg. if a locking scenario exists.. - // we look for { errors : { needs_confirm : true }} in the response. - if ( - (typeof(action.result) != 'undefined') && - (typeof(action.result.errors) != 'undefined') && - (typeof(action.result.errors.needs_confirm) != 'undefined') - ){ - var _t = this; - Roo.log("not supported yet"); - /* - - Roo.MessageBox.confirm( - "Change requires confirmation", - action.result.errorMsg, - function(r) { - if (r != 'yes') { - return; - } - _t.doAction('submit', { params : { _submit_confirmed : 1 } } ); - } - - ); - */ - - - return; - } - - Roo.callback(o.failure, o.scope, [this, action]); - // show an error message if no failed handler is set.. - if (!this.hasListener('actionfailed')) { - Roo.log("need to add dialog support"); - /* - Roo.MessageBox.alert("Error", - (typeof(action.result) != 'undefined' && typeof(action.result.errorMsg) != 'undefined') ? - action.result.errorMsg : - "Saving Failed, please check your entries or try again" - ); - */ - } - - this.fireEvent('actionfailed', this, action); - } - - }, - /** - * Find a Roo.form.Field in this form by id, dataIndex, name or hiddenName - * @param {String} id The value to search for - * @return Field - */ - findField : function(id){ - var items = this.getItems(); - var field = items.get(id); - if(!field){ - items.each(function(f){ - if(f.isFormField && (f.dataIndex == id || f.id == id || f.getName() == id)){ - field = f; - return false; - } - return true; - }); - } - return field || null; - }, - /** - * Mark fields in this form invalid in bulk. - * @param {Array/Object} errors Either an array in the form [{id:'fieldId', msg:'The message'},...] or an object hash of {id: msg, id2: msg2} - * @return {BasicForm} this - */ - markInvalid : function(errors){ - if(errors instanceof Array){ - for(var i = 0, len = errors.length; i < len; i++){ - var fieldError = errors[i]; - var f = this.findField(fieldError.id); - if(f){ - f.markInvalid(fieldError.msg); - } - } - }else{ - var field, id; - for(id in errors){ - if(typeof errors[id] != 'function' && (field = this.findField(id))){ - field.markInvalid(errors[id]); - } - } - } - //Roo.each(this.childForms || [], function (f) { - // f.markInvalid(errors); - //}); - - return this; - }, - - /** - * Set values for fields in this form in bulk. - * @param {Array/Object} values Either an array in the form [{id:'fieldId', value:'foo'},...] or an object hash of {id: value, id2: value2} - * @return {BasicForm} this - */ - setValues : function(values){ - if(values instanceof Array){ // array of objects - for(var i = 0, len = values.length; i < len; i++){ - var v = values[i]; - var f = this.findField(v.id); - if(f){ - f.setValue(v.value); - if(this.trackResetOnLoad){ - f.originalValue = f.getValue(); - } - } - } - }else{ // object hash - var field, id; - for(id in values){ - if(typeof values[id] != 'function' && (field = this.findField(id))){ - - if (field.setFromData && - field.valueField && - field.displayField && - // combos' with local stores can - // be queried via setValue() - // to set their value.. - (field.store && !field.store.isLocal) - ) { - // it's a combo - var sd = { }; - sd[field.valueField] = typeof(values[field.hiddenName]) == 'undefined' ? '' : values[field.hiddenName]; - sd[field.displayField] = typeof(values[field.name]) == 'undefined' ? '' : values[field.name]; - field.setFromData(sd); - - } else if(field.setFromData && (field.store && !field.store.isLocal)) { - - field.setFromData(values); - - } else { - field.setValue(values[id]); - } - - - if(this.trackResetOnLoad){ - field.originalValue = field.getValue(); - } - } - } - } - - //Roo.each(this.childForms || [], function (f) { - // f.setValues(values); - //}); - - return this; - }, - - /** - * Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name - * they are returned as an array. - * @param {Boolean} asString - * @return {Object} - */ - getValues : function(asString){ - //if (this.childForms) { - // copy values from the child forms - // Roo.each(this.childForms, function (f) { - // this.setValues(f.getValues()); - // }, this); - //} - - - - var fs = Roo.lib.Ajax.serializeForm(this.el.dom); - if(asString === true){ - return fs; - } - return Roo.urlDecode(fs); - }, - - /** - * Returns the fields in this form as an object with key/value pairs. - * This differs from getValues as it calls getValue on each child item, rather than using dom data. - * @return {Object} - */ - getFieldValues : function(with_hidden) - { - var items = this.getItems(); - var ret = {}; - items.each(function(f){ - - if (!f.getName()) { - return; - } - - var v = f.getValue(); - - if (f.inputType =='radio') { - if (typeof(ret[f.getName()]) == 'undefined') { - ret[f.getName()] = ''; // empty.. - } - - if (!f.el.dom.checked) { - return; - - } - v = f.el.dom.value; - - } - - if(f.xtype == 'MoneyField'){ - ret[f.currencyName] = f.getCurrency(); - } - - // not sure if this supported any more.. - if ((typeof(v) == 'object') && f.getRawValue) { - v = f.getRawValue() ; // dates.. - } - // combo boxes where name != hiddenName... - if (f.name !== false && f.name != '' && f.name != f.getName()) { - ret[f.name] = f.getRawValue(); - } - ret[f.getName()] = v; - }); - - return ret; - }, - - /** - * Clears all invalid messages in this form. - * @return {BasicForm} this - */ - clearInvalid : function(){ - var items = this.getItems(); - - items.each(function(f){ - f.clearInvalid(); - }); - - return this; - }, - - /** - * Resets this form. - * @return {BasicForm} this - */ - reset : function(){ - var items = this.getItems(); - items.each(function(f){ - f.reset(); - }); - - Roo.each(this.childForms || [], function (f) { - f.reset(); - }); - - - return this; - }, - - getItems : function() - { - var r=new Roo.util.MixedCollection(false, function(o){ - return o.id || (o.id = Roo.id()); - }); - var iter = function(el) { - if (el.inputEl) { - r.add(el); - } - if (!el.items) { - return; - } - Roo.each(el.items,function(e) { - iter(e); - }); - }; - - iter(this); - return r; - }, - - hideFields : function(items) - { - Roo.each(items, function(i){ - - var f = this.findField(i); - - if(!f){ - return; - } - - f.hide(); - - }, this); - }, - - showFields : function(items) - { - Roo.each(items, function(i){ - - var f = this.findField(i); - - if(!f){ - return; - } - - f.show(); - - }, this); - } - -}); - -Roo.apply(Roo.bootstrap.Form, { - - popover : { - - padding : 5, - - isApplied : false, - - isMasked : false, - - form : false, - - target : false, - - toolTip : false, - - intervalID : false, - - maskEl : false, - - apply : function() - { - if(this.isApplied){ - return; - } - - this.maskEl = { - top : Roo.DomHelper.append(Roo.get(document.body), { tag: "div", cls:"x-dlg-mask roo-form-top-mask" }, true), - left : Roo.DomHelper.append(Roo.get(document.body), { tag: "div", cls:"x-dlg-mask roo-form-left-mask" }, true), - bottom : Roo.DomHelper.append(Roo.get(document.body), { tag: "div", cls:"x-dlg-mask roo-form-bottom-mask" }, true), - right : Roo.DomHelper.append(Roo.get(document.body), { tag: "div", cls:"x-dlg-mask roo-form-right-mask" }, true) - }; - - this.maskEl.top.enableDisplayMode("block"); - this.maskEl.left.enableDisplayMode("block"); - this.maskEl.bottom.enableDisplayMode("block"); - this.maskEl.right.enableDisplayMode("block"); - - this.toolTip = new Roo.bootstrap.Tooltip({ - cls : 'roo-form-error-popover', - alignment : { - 'left' : ['r-l', [-2,0], 'right'], - 'right' : ['l-r', [2,0], 'left'], - 'bottom' : ['tl-bl', [0,2], 'top'], - 'top' : [ 'bl-tl', [0,-2], 'bottom'] - } - }); - - this.toolTip.render(Roo.get(document.body)); - - this.toolTip.el.enableDisplayMode("block"); - - Roo.get(document.body).on('click', function(){ - this.unmask(); - }, this); - - Roo.get(document.body).on('touchstart', function(){ - this.unmask(); - }, this); - - this.isApplied = true - }, - - mask : function(form, target) - { - this.form = form; - - this.target = target; - - if(!this.form.errorMask || !target.el){ - return; - } - - var scrollable = this.target.el.findScrollableParent() || this.target.el.findParent('div.modal', 100, true) || Roo.get(document.body); - - Roo.log(scrollable); - - var ot = this.target.el.calcOffsetsTo(scrollable); - - var scrollTo = ot[1] - this.form.maskOffset; - - scrollTo = Math.min(scrollTo, scrollable.dom.scrollHeight); - - scrollable.scrollTo('top', scrollTo); - - var box = this.target.el.getBox(); - Roo.log(box); - var zIndex = Roo.bootstrap.Modal.zIndex++; - - - this.maskEl.top.setStyle('position', 'absolute'); - this.maskEl.top.setStyle('z-index', zIndex); - this.maskEl.top.setSize(Roo.lib.Dom.getDocumentWidth(), box.y - this.padding); - this.maskEl.top.setLeft(0); - this.maskEl.top.setTop(0); - this.maskEl.top.show(); - - this.maskEl.left.setStyle('position', 'absolute'); - this.maskEl.left.setStyle('z-index', zIndex); - this.maskEl.left.setSize(box.x - this.padding, box.height + this.padding * 2); - this.maskEl.left.setLeft(0); - this.maskEl.left.setTop(box.y - this.padding); - this.maskEl.left.show(); - - this.maskEl.bottom.setStyle('position', 'absolute'); - this.maskEl.bottom.setStyle('z-index', zIndex); - this.maskEl.bottom.setSize(Roo.lib.Dom.getDocumentWidth(), Roo.lib.Dom.getDocumentHeight() - box.bottom - this.padding); - this.maskEl.bottom.setLeft(0); - this.maskEl.bottom.setTop(box.bottom + this.padding); - this.maskEl.bottom.show(); - - this.maskEl.right.setStyle('position', 'absolute'); - this.maskEl.right.setStyle('z-index', zIndex); - this.maskEl.right.setSize(Roo.lib.Dom.getDocumentWidth() - box.right - this.padding, box.height + this.padding * 2); - this.maskEl.right.setLeft(box.right + this.padding); - this.maskEl.right.setTop(box.y - this.padding); - this.maskEl.right.show(); - - this.toolTip.bindEl = this.target.el; - - this.toolTip.el.setStyle('z-index', Roo.bootstrap.Modal.zIndex++); - - var tip = this.target.blankText; - - if(this.target.getValue() !== '' ) { - - if (this.target.invalidText.length) { - tip = this.target.invalidText; - } else if (this.target.regexText.length){ - tip = this.target.regexText; - } - } - - this.toolTip.show(tip); - - this.intervalID = window.setInterval(function() { - Roo.bootstrap.Form.popover.unmask(); - }, 10000); - - window.onwheel = function(){ return false;}; - - (function(){ this.isMasked = true; }).defer(500, this); - - }, - - unmask : function() - { - if(!this.isApplied || !this.isMasked || !this.form || !this.target || !this.form.errorMask){ - return; - } - - this.maskEl.top.setStyle('position', 'absolute'); - this.maskEl.top.setSize(0, 0).setXY([0, 0]); - this.maskEl.top.hide(); - - this.maskEl.left.setStyle('position', 'absolute'); - this.maskEl.left.setSize(0, 0).setXY([0, 0]); - this.maskEl.left.hide(); - - this.maskEl.bottom.setStyle('position', 'absolute'); - this.maskEl.bottom.setSize(0, 0).setXY([0, 0]); - this.maskEl.bottom.hide(); - - this.maskEl.right.setStyle('position', 'absolute'); - this.maskEl.right.setSize(0, 0).setXY([0, 0]); - this.maskEl.right.hide(); - - this.toolTip.hide(); - - this.toolTip.el.hide(); - - window.onwheel = function(){ return true;}; - - if(this.intervalID){ - window.clearInterval(this.intervalID); - this.intervalID = false; - } - - this.isMasked = false; - - } - - } - -}); - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_HtmlEditor.js.html b/docs/src/Roo_bootstrap_HtmlEditor.js.html deleted file mode 100644 index cf4330fc69..0000000000 --- a/docs/src/Roo_bootstrap_HtmlEditor.js.html +++ /dev/null @@ -1,435 +0,0 @@ -Roo/bootstrap/HtmlEditor.js/* - * - LGPL - * - * HtmlEditor - * - */ - -/** - * @class Roo.bootstrap.HtmlEditor - * @extends Roo.bootstrap.TextArea - * Bootstrap HtmlEditor class - - * @constructor - * Create a new HtmlEditor - * @param {Object} config The config object - */ - -Roo.bootstrap.HtmlEditor = function(config){ - Roo.bootstrap.HtmlEditor.superclass.constructor.call(this, config); - if (!this.toolbars) { - this.toolbars = []; - } - - this.editorcore = new Roo.HtmlEditorCore(Roo.apply({ owner : this} , config)); - this.addEvents({ - /** - * @event initialize - * Fires when the editor is fully initialized (including the iframe) - * @param {HtmlEditor} this - */ - initialize: true, - /** - * @event activate - * Fires when the editor is first receives the focus. Any insertion must wait - * until after this event. - * @param {HtmlEditor} this - */ - activate: true, - /** - * @event beforesync - * Fires before the textarea is updated with content from the editor iframe. Return false - * to cancel the sync. - * @param {HtmlEditor} this - * @param {String} html - */ - beforesync: true, - /** - * @event beforepush - * Fires before the iframe editor is updated with content from the textarea. Return false - * to cancel the push. - * @param {HtmlEditor} this - * @param {String} html - */ - beforepush: true, - /** - * @event sync - * Fires when the textarea is updated with content from the editor iframe. - * @param {HtmlEditor} this - * @param {String} html - */ - sync: true, - /** - * @event push - * Fires when the iframe editor is updated with content from the textarea. - * @param {HtmlEditor} this - * @param {String} html - */ - push: true, - /** - * @event editmodechange - * Fires when the editor switches edit modes - * @param {HtmlEditor} this - * @param {Boolean} sourceEdit True if source edit, false if standard editing. - */ - editmodechange: true, - /** - * @event editorevent - * Fires when on any editor (mouse up/down cursor movement etc.) - used for toolbar hooks. - * @param {HtmlEditor} this - */ - editorevent: true, - /** - * @event firstfocus - * Fires when on first focus - needed by toolbars.. - * @param {HtmlEditor} this - */ - firstfocus: true, - /** - * @event autosave - * Auto save the htmlEditor value as a file into Events - * @param {HtmlEditor} this - */ - autosave: true, - /** - * @event savedpreview - * preview the saved version of htmlEditor - * @param {HtmlEditor} this - */ - savedpreview: true - }); -}; - - -Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, { - - - /** - * @cfg {Array} toolbars Array of toolbars. - defaults to just the Standard one - */ - toolbars : false, - - /** - * @cfg {Array} buttons Array of toolbar's buttons. - defaults to empty - */ - btns : [], - - /** - * @cfg {String} resizable 's' or 'se' or 'e' - wrapps the element in a - * Roo.resizable. - */ - resizable : false, - /** - * @cfg {Number} height (in pixels) - */ - height: 300, - /** - * @cfg {Number} width (in pixels) - */ - width: false, - - /** - * @cfg {Array} stylesheets url of stylesheets. set to [] to disable stylesheets. - * - */ - stylesheets: false, - - // id of frame.. - frameId: false, - - // private properties - validationEvent : false, - deferHeight: true, - initialized : false, - activated : false, - - onFocus : Roo.emptyFn, - iframePad:3, - hideMode:'offsets', - - tbContainer : false, - - bodyCls : '', - - toolbarContainer :function() { - return this.wrap.select('.x-html-editor-tb',true).first(); - }, - - /** - * Protected method that will not generally be called directly. It - * is called when the editor creates its toolbar. Override this method if you need to - * add custom toolbar buttons. - * @param {HtmlEditor} editor - */ - createToolbar : function(){ - Roo.log('renewing'); - Roo.log("create toolbars"); - - this.toolbars = [ new Roo.bootstrap.htmleditor.ToolbarStandard({editor: this} ) ]; - this.toolbars[0].render(this.toolbarContainer()); - - return; - -// if (!editor.toolbars || !editor.toolbars.length) { -// editor.toolbars = [ new Roo.bootstrap.HtmlEditor.ToolbarStandard() ]; // can be empty? -// } -// -// for (var i =0 ; i < editor.toolbars.length;i++) { -// editor.toolbars[i] = Roo.factory( -// typeof(editor.toolbars[i]) == 'string' ? -// { xtype: editor.toolbars[i]} : editor.toolbars[i], -// Roo.bootstrap.HtmlEditor); -// editor.toolbars[i].init(editor); -// } - }, - - - // private - onRender : function(ct, position) - { - // Roo.log("Call onRender: " + this.xtype); - var _t = this; - Roo.bootstrap.HtmlEditor.superclass.onRender.call(this, ct, position); - - this.wrap = this.inputEl().wrap({ - cls:'x-html-editor-wrap', cn:{cls:'x-html-editor-tb'} - }); - - this.editorcore.onRender(ct, position); - - if (this.resizable) { - this.resizeEl = new Roo.Resizable(this.wrap, { - pinned : true, - wrap: true, - dynamic : true, - minHeight : this.height, - height: this.height, - handles : this.resizable, - width: this.width, - listeners : { - resize : function(r, w, h) { - _t.onResize(w,h); // -something - } - } - }); - - } - this.createToolbar(this); - - - if(!this.width && this.resizable){ - this.setSize(this.wrap.getSize()); - } - if (this.resizeEl) { - this.resizeEl.resizeTo.defer(100, this.resizeEl,[ this.width,this.height ] ); - // should trigger onReize.. - } - - }, - - // private - onResize : function(w, h) - { - Roo.log('resize: ' +w + ',' + h ); - Roo.bootstrap.HtmlEditor.superclass.onResize.apply(this, arguments); - var ew = false; - var eh = false; - - if(this.inputEl() ){ - if(typeof w == 'number'){ - var aw = w - this.wrap.getFrameWidth('lr'); - this.inputEl().setWidth(this.adjustWidth('textarea', aw)); - ew = aw; - } - if(typeof h == 'number'){ - var tbh = -11; // fixme it needs to tool bar size! - for (var i =0; i < this.toolbars.length;i++) { - // fixme - ask toolbars for heights? - tbh += this.toolbars[i].el.getHeight(); - //if (this.toolbars[i].footer) { - // tbh += this.toolbars[i].footer.el.getHeight(); - //} - } - - - - - - var ah = h - this.wrap.getFrameWidth('tb') - tbh;// this.tb.el.getHeight(); - ah -= 5; // knock a few pixes off for look.. - this.inputEl().setHeight(this.adjustWidth('textarea', ah)); - var eh = ah; - } - } - Roo.log('onResize:' + [w,h,ew,eh].join(',') ); - this.editorcore.onResize(ew,eh); - - }, - - /** - * Toggles the editor between standard and source edit mode. - * @param {Boolean} sourceEdit (optional) True for source edit, false for standard - */ - toggleSourceEdit : function(sourceEditMode) - { - this.editorcore.toggleSourceEdit(sourceEditMode); - - if(this.editorcore.sourceEditMode){ - Roo.log('editor - showing textarea'); - -// Roo.log('in'); -// Roo.log(this.syncValue()); - this.syncValue(); - this.inputEl().removeClass(['hide', 'x-hidden']); - this.inputEl().dom.removeAttribute('tabIndex'); - this.inputEl().focus(); - }else{ - Roo.log('editor - hiding textarea'); -// Roo.log('out') -// Roo.log(this.pushValue()); - this.pushValue(); - - this.inputEl().addClass(['hide', 'x-hidden']); - this.inputEl().dom.setAttribute('tabIndex', -1); - //this.deferFocus(); - } - - if(this.resizable){ - this.setSize(this.wrap.getSize()); - } - - this.fireEvent('editmodechange', this, this.editorcore.sourceEditMode); - }, - - // private (for BoxComponent) - adjustSize : Roo.BoxComponent.prototype.adjustSize, - - // private (for BoxComponent) - getResizeEl : function(){ - return this.wrap; - }, - - // private (for BoxComponent) - getPositionEl : function(){ - return this.wrap; - }, - - // private - initEvents : function(){ - this.originalValue = this.getValue(); - }, - -// /** -// * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide -// * @method -// */ -// markInvalid : Roo.emptyFn, -// /** -// * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide -// * @method -// */ -// clearInvalid : Roo.emptyFn, - - setValue : function(v){ - Roo.bootstrap.HtmlEditor.superclass.setValue.call(this, v); - this.editorcore.pushValue(); - }, - - - // private - deferFocus : function(){ - this.focus.defer(10, this); - }, - - // doc'ed in Field - focus : function(){ - this.editorcore.focus(); - - }, - - - // private - onDestroy : function(){ - - - - if(this.rendered){ - - for (var i =0; i < this.toolbars.length;i++) { - // fixme - ask toolbars for heights? - this.toolbars[i].onDestroy(); - } - - this.wrap.dom.innerHTML = ''; - this.wrap.remove(); - } - }, - - // private - onFirstFocus : function(){ - //Roo.log("onFirstFocus"); - this.editorcore.onFirstFocus(); - for (var i =0; i < this.toolbars.length;i++) { - this.toolbars[i].onFirstFocus(); - } - - }, - - // private - syncValue : function() - { - this.editorcore.syncValue(); - }, - - pushValue : function() - { - this.editorcore.pushValue(); - } - - - // hide stuff that is not compatible - /** - * @event blur - * @hide - */ - /** - * @event change - * @hide - */ - /** - * @event focus - * @hide - */ - /** - * @event specialkey - * @hide - */ - /** - * @cfg {String} fieldClass @hide - */ - /** - * @cfg {String} focusClass @hide - */ - /** - * @cfg {String} autoCreate @hide - */ - /** - * @cfg {String} inputType @hide - */ - - /** - * @cfg {String} invalidText @hide - */ - /** - * @cfg {String} msgFx @hide - */ - /** - * @cfg {String} validateOnBlur @hide - */ -}); - - - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Input.js.html b/docs/src/Roo_bootstrap_Input.js.html deleted file mode 100644 index 00a02d1644..0000000000 --- a/docs/src/Roo_bootstrap_Input.js.html +++ /dev/null @@ -1,1108 +0,0 @@ -Roo/bootstrap/Input.js/* - * - LGPL - * - * Input - * - */ - -/** - * @class Roo.bootstrap.Input - * @extends Roo.bootstrap.Component - * Bootstrap Input class - * @cfg {Boolean} disabled is it disabled - * @cfg {String} inputType (button|checkbox|email|file|hidden|image|number|password|radio|range|reset|search|submit|text) - * @cfg {String} name name of the input - * @cfg {string} fieldLabel - the label associated - * @cfg {string} placeholder - placeholder to put in text. - * @cfg {string} before - input group add on before - * @cfg {string} after - input group add on after - * @cfg {string} size - (lg|sm) or leave empty.. - * @cfg {Number} xs colspan out of 12 for mobile-sized screens - * @cfg {Number} sm colspan out of 12 for tablet-sized screens - * @cfg {Number} md colspan out of 12 for computer-sized screens - * @cfg {Number} lg colspan out of 12 for large computer-sized screens - * @cfg {string} value default value of the input - * @cfg {Number} labelWidth set the width of label - * @cfg {Number} labellg set the width of label (1-12) - * @cfg {Number} labelmd set the width of label (1-12) - * @cfg {Number} labelsm set the width of label (1-12) - * @cfg {Number} labelxs set the width of label (1-12) - * @cfg {String} labelAlign (top|left) - * @cfg {Boolean} readOnly Specifies that the field should be read-only - * @cfg {String} autocomplete - default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en - * @cfg {String} indicatorpos (left|right) default left - * @cfg {String} capture (user|camera) use for file input only. (default empty) - * @cfg {String} accept (image|video|audio) use for file input only. (default empty) - * @cfg {Boolean} preventMark Do not show tick or cross if error/success - * @cfg {Roo.bootstrap.Button} before Button to show before - * @cfg {Roo.bootstrap.Button} afterButton to show before - * @cfg {String} align (left|center|right) Default left - * @cfg {Boolean} forceFeedback (true|false) Default false - * - * @constructor - * Create a new Input - * @param {Object} config The config object - */ - -Roo.bootstrap.Input = function(config){ - - Roo.bootstrap.Input.superclass.constructor.call(this, config); - - this.addEvents({ - /** - * @event focus - * Fires when this field receives input focus. - * @param {Roo.form.Field} this - */ - focus : true, - /** - * @event blur - * Fires when this field loses input focus. - * @param {Roo.form.Field} this - */ - blur : true, - /** - * @event specialkey - * Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check - * {@link Roo.EventObject#getKey} to determine which key was pressed. - * @param {Roo.form.Field} this - * @param {Roo.EventObject} e The event object - */ - specialkey : true, - /** - * @event change - * Fires just before the field blurs if the field value has changed. - * @param {Roo.form.Field} this - * @param {Mixed} newValue The new value - * @param {Mixed} oldValue The original value - */ - change : true, - /** - * @event invalid - * Fires after the field has been marked as invalid. - * @param {Roo.form.Field} this - * @param {String} msg The validation message - */ - invalid : true, - /** - * @event valid - * Fires after the field has been validated with no errors. - * @param {Roo.form.Field} this - */ - valid : true, - /** - * @event keyup - * Fires after the key up - * @param {Roo.form.Field} this - * @param {Roo.EventObject} e The event Object - */ - keyup : true, - /** - * @event paste - * Fires after the user pastes into input - * @param {Roo.form.Field} this - * @param {Roo.EventObject} e The event Object - */ - paste : true - }); -}; - -Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component, { - /** - * @cfg {String/Boolean} validationEvent The event that should initiate field validation. Set to false to disable - automatic validation (defaults to "keyup"). - */ - validationEvent : "keyup", - /** - * @cfg {Boolean} validateOnBlur Whether the field should validate when it loses focus (defaults to true). - */ - validateOnBlur : true, - /** - * @cfg {Number} validationDelay The length of time in milliseconds after user input begins until validation is initiated (defaults to 250) - */ - validationDelay : 250, - /** - * @cfg {String} focusClass The CSS class to use when the field receives focus (defaults to "x-form-focus") - */ - focusClass : "x-form-focus", // not needed??? - - - /** - * @cfg {String} invalidClass DEPRICATED - code uses BS4 - is-valid / is-invalid - */ - invalidClass : "has-warning", - - /** - * @cfg {String} validClass DEPRICATED - code uses BS4 - is-valid / is-invalid - */ - validClass : "has-success", - - /** - * @cfg {Boolean} hasFeedback (true|false) default true - */ - hasFeedback : true, - - /** - * @cfg {String} invalidFeedbackIcon The CSS class to use when create feedback icon (defaults to "x-form-invalid") - */ - invalidFeedbackClass : "glyphicon-warning-sign", - - /** - * @cfg {String} validFeedbackIcon The CSS class to use when create feedback icon (defaults to "x-form-invalid") - */ - validFeedbackClass : "glyphicon-ok", - - /** - * @cfg {Boolean} selectOnFocus True to automatically select any existing field text when the field receives input focus (defaults to false) - */ - selectOnFocus : false, - - /** - * @cfg {String} maskRe An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null) - */ - maskRe : null, - /** - * @cfg {String} vtype A validation type name as defined in {@link Roo.form.VTypes} (defaults to null) - */ - vtype : null, - - /** - * @cfg {Boolean} disableKeyFilter True to disable input keystroke filtering (defaults to false) - */ - disableKeyFilter : false, - - /** - * @cfg {Boolean} disabled True to disable the field (defaults to false). - */ - disabled : false, - /** - * @cfg {Boolean} allowBlank False to validate that the value length > 0 (defaults to true) - */ - allowBlank : true, - /** - * @cfg {String} blankText Error text to display if the allow blank validation fails (defaults to "This field is required") - */ - blankText : "Please complete this mandatory field", - - /** - * @cfg {Number} minLength Minimum input field length required (defaults to 0) - */ - minLength : 0, - /** - * @cfg {Number} maxLength Maximum input field length allowed (defaults to Number.MAX_VALUE) - */ - maxLength : Number.MAX_VALUE, - /** - * @cfg {String} minLengthText Error text to display if the minimum length validation fails (defaults to "The minimum length for this field is {minLength}") - */ - minLengthText : "The minimum length for this field is {0}", - /** - * @cfg {String} maxLengthText Error text to display if the maximum length validation fails (defaults to "The maximum length for this field is {maxLength}") - */ - maxLengthText : "The maximum length for this field is {0}", - - - /** - * @cfg {Function} validator A custom validation function to be called during field validation (defaults to null). - * If available, this function will be called only after the basic validators all return true, and will be passed the - * current field value and expected to return boolean true if the value is valid or a string error message if invalid. - */ - validator : null, - /** - * @cfg {RegExp} regex A JavaScript RegExp object to be tested against the field value during validation (defaults to null). - * If available, this regex will be evaluated only after the basic validators all return true, and will be passed the - * current field value. If the test fails, the field will be marked invalid using {@link #regexText}. - */ - regex : null, - /** - * @cfg {String} regexText -- Depricated - use Invalid Text - */ - regexText : "", - - /** - * @cfg {String} invalidText The error text to display if {@link #validator} test fails during validation (defaults to "") - */ - invalidText : "", - - - - autocomplete: false, - - - fieldLabel : '', - inputType : 'text', - - name : false, - placeholder: false, - before : false, - after : false, - size : false, - hasFocus : false, - preventMark: false, - isFormField : true, - value : '', - labelWidth : 2, - labelAlign : false, - readOnly : false, - align : false, - formatedValue : false, - forceFeedback : false, - - indicatorpos : 'left', - - labellg : 0, - labelmd : 0, - labelsm : 0, - labelxs : 0, - - capture : '', - accept : '', - - parentLabelAlign : function() - { - var parent = this; - while (parent.parent()) { - parent = parent.parent(); - if (typeof(parent.labelAlign) !='undefined') { - return parent.labelAlign; - } - } - return 'left'; - - }, - - getAutoCreate : function() - { - var align = (!this.labelAlign) ? this.parentLabelAlign() : this.labelAlign; - - var id = Roo.id(); - - var cfg = {}; - - if(this.inputType != 'hidden'){ - cfg.cls = 'form-group' //input-group - } - - var input = { - tag: 'input', - id : id, - type : this.inputType, - value : this.value, - cls : 'form-control', - placeholder : this.placeholder || '', - autocomplete : this.autocomplete || 'new-password' - }; - if (this.inputType == 'file') { - input.style = 'overflow:hidden'; // why not in CSS? - } - - if(this.capture.length){ - input.capture = this.capture; - } - - if(this.accept.length){ - input.accept = this.accept + "/*"; - } - - if(this.align){ - input.style = (typeof(input.style) == 'undefined') ? ('text-align:' + this.align) : (input.style + 'text-align:' + this.align); - } - - if(this.maxLength && this.maxLength != Number.MAX_VALUE){ - input.maxLength = this.maxLength; - } - - if (this.disabled) { - input.disabled=true; - } - - if (this.readOnly) { - input.readonly=true; - } - - if (this.name) { - input.name = this.name; - } - - if (this.size) { - input.cls += ' input-' + this.size; - } - - var settings=this; - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - var inputblock = input; - - var feedback = { - tag: 'span', - cls: 'glyphicon form-control-feedback' - }; - - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){ - - inputblock = { - cls : 'has-feedback', - cn : [ - input, - feedback - ] - }; - } - - if (this.before || this.after) { - - inputblock = { - cls : 'input-group', - cn : [] - }; - - if (this.before && typeof(this.before) == 'string') { - - inputblock.cn.push({ - tag :'span', - cls : 'roo-input-before input-group-addon input-group-prepend input-group-text', - html : this.before - }); - } - if (this.before && typeof(this.before) == 'object') { - this.before = Roo.factory(this.before); - - inputblock.cn.push({ - tag :'span', - cls : 'roo-input-before input-group-prepend input-group-' + - (this.before.xtype == 'Button' ? 'btn' : 'addon') //?? what about checkboxes - that looks like a bit of a hack thought? - }); - } - - inputblock.cn.push(input); - - if (this.after && typeof(this.after) == 'string') { - inputblock.cn.push({ - tag :'span', - cls : 'roo-input-after input-group-append input-group-text input-group-addon', - html : this.after - }); - } - if (this.after && typeof(this.after) == 'object') { - this.after = Roo.factory(this.after); - - inputblock.cn.push({ - tag :'span', - cls : 'roo-input-after input-group-append input-group-' + - (this.after.xtype == 'Button' ? 'btn' : 'addon') //?? what about checkboxes - that looks like a bit of a hack thought? - }); - } - - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){ - inputblock.cls += ' has-feedback'; - inputblock.cn.push(feedback); - } - }; - var indicator = { - tag : 'i', - cls : 'roo-required-indicator ' + (this.indicatorpos == 'right' ? 'right' : 'left') +'-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required' - }; - if (this.allowBlank ) { - indicator.style = this.allowBlank ? ' display:none' : ''; - } - if (align ==='left' && this.fieldLabel.length) { - - cfg.cls += ' roo-form-group-label-left' + (Roo.bootstrap.version == 4 ? ' row' : ''); - - cfg.cn = [ - indicator, - { - tag: 'label', - 'for' : id, - cls : 'control-label col-form-label', - html : this.fieldLabel - - }, - { - cls : "", - cn: [ - inputblock - ] - } - ]; - - var labelCfg = cfg.cn[1]; - var contentCfg = cfg.cn[2]; - - if(this.indicatorpos == 'right'){ - cfg.cn = [ - { - tag: 'label', - 'for' : id, - cls : 'control-label col-form-label', - cn : [ - { - tag : 'span', - html : this.fieldLabel - }, - indicator - ] - }, - { - cls : "", - cn: [ - inputblock - ] - } - - ]; - - labelCfg = cfg.cn[0]; - contentCfg = cfg.cn[1]; - - } - - if(this.labelWidth > 12){ - labelCfg.style = "width: " + this.labelWidth + 'px'; - } - - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labellg = this.labellg > 0 ? this.labellg : this.labelWidth; - } - - if(this.labellg > 0){ - labelCfg.cls += ' col-lg-' + this.labellg; - contentCfg.cls += ' col-lg-' + (12 - this.labellg); - } - - if(this.labelmd > 0){ - labelCfg.cls += ' col-md-' + this.labelmd; - contentCfg.cls += ' col-md-' + (12 - this.labelmd); - } - - if(this.labelsm > 0){ - labelCfg.cls += ' col-sm-' + this.labelsm; - contentCfg.cls += ' col-sm-' + (12 - this.labelsm); - } - - if(this.labelxs > 0){ - labelCfg.cls += ' col-xs-' + this.labelxs; - contentCfg.cls += ' col-xs-' + (12 - this.labelxs); - } - - - } else if ( this.fieldLabel.length) { - - - - cfg.cn = [ - { - tag : 'i', - cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required', - style : this.allowBlank ? ' display:none' : '' - }, - { - tag: 'label', - //cls : 'input-group-addon', - html : this.fieldLabel - - }, - - inputblock - - ]; - - if(this.indicatorpos == 'right'){ - - cfg.cn = [ - { - tag: 'label', - //cls : 'input-group-addon', - html : this.fieldLabel - - }, - { - tag : 'i', - cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required', - style : this.allowBlank ? ' display:none' : '' - }, - - inputblock - - ]; - - } - - } else { - - cfg.cn = [ - - inputblock - - ]; - - - }; - - if (this.parentType === 'Navbar' && this.parent().bar) { - cfg.cls += ' navbar-form'; - } - - if (this.parentType === 'NavGroup' && !(Roo.bootstrap.version == 4 && this.parent().form)) { - // on BS4 we do this only if not form - cfg.cls += ' navbar-form'; - cfg.tag = 'li'; - } - - return cfg; - - }, - /** - * return the real input element. - */ - inputEl: function () - { - return this.el.select('input.form-control',true).first(); - }, - - tooltipEl : function() - { - return this.inputEl(); - }, - - indicatorEl : function() - { - if (Roo.bootstrap.version == 4) { - return false; // not enabled in v4 yet. - } - - var indicator = this.el.select('i.roo-required-indicator',true).first(); - - if(!indicator){ - return false; - } - - return indicator; - - }, - - setDisabled : function(v) - { - var i = this.inputEl().dom; - if (!v) { - i.removeAttribute('disabled'); - return; - - } - i.setAttribute('disabled','true'); - }, - initEvents : function() - { - - this.inputEl().on("keydown" , this.fireKey, this); - this.inputEl().on("focus", this.onFocus, this); - this.inputEl().on("blur", this.onBlur, this); - - this.inputEl().relayEvent('keyup', this); - this.inputEl().relayEvent('paste', this); - - this.indicator = this.indicatorEl(); - - if(this.indicator){ - this.indicator.addClass(this.indicatorpos == 'right' ? 'hidden' : 'invisible'); // changed from invisible??? - - } - - // reference to original value for reset - this.originalValue = this.getValue(); - //Roo.form.TextField.superclass.initEvents.call(this); - if(this.validationEvent == 'keyup'){ - this.validationTask = new Roo.util.DelayedTask(this.validate, this); - this.inputEl().on('keyup', this.filterValidation, this); - } - else if(this.validationEvent !== false){ - this.inputEl().on(this.validationEvent, this.validate, this, {buffer: this.validationDelay}); - } - - if(this.selectOnFocus){ - this.on("focus", this.preFocus, this); - - } - if(this.maskRe || (this.vtype && this.disableKeyFilter !== true && (this.maskRe = Roo.form.VTypes[this.vtype+'Mask']))){ - this.inputEl().on("keypress", this.filterKeys, this); - } else { - this.inputEl().relayEvent('keypress', this); - } - /* if(this.grow){ - this.el.on("keyup", this.onKeyUp, this, {buffer:50}); - this.el.on("click", this.autoSize, this); - } - */ - if(this.inputEl().is('input[type=password]') && Roo.isSafari){ - this.inputEl().on('keydown', this.SafariOnKeyDown, this); - } - - if (typeof(this.before) == 'object') { - this.before.render(this.el.select('.roo-input-before',true).first()); - } - if (typeof(this.after) == 'object') { - this.after.render(this.el.select('.roo-input-after',true).first()); - } - - this.inputEl().on('change', this.onChange, this); - - }, - filterValidation : function(e){ - if(!e.isNavKeyPress()){ - this.validationTask.delay(this.validationDelay); - } - }, - /** - * Validates the field value - * @return {Boolean} True if the value is valid, else false - */ - validate : function(){ - //if(this.disabled || this.validateValue(this.processValue(this.getRawValue()))){ - if(this.disabled || this.validateValue(this.getRawValue())){ - this.markValid(); - return true; - } - - this.markInvalid(); - return false; - }, - - - /** - * Validates a value according to the field's validation rules and marks the field as invalid - * if the validation fails - * @param {Mixed} value The value to validate - * @return {Boolean} True if the value is valid, else false - */ - validateValue : function(value) - { - if(this.getVisibilityEl().hasClass('hidden')){ - return true; - } - - if(value.length < 1) { // if it's blank - if(this.allowBlank){ - return true; - } - return false; - } - - if(value.length < this.minLength){ - return false; - } - if(value.length > this.maxLength){ - return false; - } - if(this.vtype){ - var vt = Roo.form.VTypes; - if(!vt[this.vtype](value, this)){ - return false; - } - } - if(typeof this.validator == "function"){ - var msg = this.validator(value); - if(msg !== true){ - return false; - } - if (typeof(msg) == 'string') { - this.invalidText = msg; - } - } - - if(this.regex && !this.regex.test(value)){ - return false; - } - - return true; - }, - - // private - fireKey : function(e){ - //Roo.log('field ' + e.getKey()); - if(e.isNavKeyPress()){ - this.fireEvent("specialkey", this, e); - } - }, - focus : function (selectText){ - if(this.rendered){ - this.inputEl().focus(); - if(selectText === true){ - this.inputEl().dom.select(); - } - } - return this; - } , - - onFocus : function(){ - if(!Roo.isOpera && this.focusClass){ // don't touch in Opera - // this.el.addClass(this.focusClass); - } - if(!this.hasFocus){ - this.hasFocus = true; - this.startValue = this.getValue(); - this.fireEvent("focus", this); - } - }, - - beforeBlur : Roo.emptyFn, - - - // private - onBlur : function(){ - this.beforeBlur(); - if(!Roo.isOpera && this.focusClass){ // don't touch in Opera - //this.el.removeClass(this.focusClass); - } - this.hasFocus = false; - if(this.validationEvent !== false && this.validateOnBlur && this.validationEvent != "blur"){ - this.validate(); - } - var v = this.getValue(); - if(String(v) !== String(this.startValue)){ - this.fireEvent('change', this, v, this.startValue); - } - this.fireEvent("blur", this); - }, - - onChange : function(e) - { - var v = this.getValue(); - if(String(v) !== String(this.startValue)){ - this.fireEvent('change', this, v, this.startValue); - } - - }, - - /** - * Resets the current field value to the originally loaded value and clears any validation messages - */ - reset : function(){ - this.setValue(this.originalValue); - this.validate(); - }, - /** - * Returns the name of the field - * @return {Mixed} name The name field - */ - getName: function(){ - return this.name; - }, - /** - * Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}. - * @return {Mixed} value The field value - */ - getValue : function(){ - - var v = this.inputEl().getValue(); - - return v; - }, - /** - * Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}. - * @return {Mixed} value The field value - */ - getRawValue : function(){ - var v = this.inputEl().getValue(); - - return v; - }, - - /** - * Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}. - * @param {Mixed} value The value to set - */ - setRawValue : function(v){ - return this.inputEl().dom.value = (v === null || v === undefined ? '' : v); - }, - - selectText : function(start, end){ - var v = this.getRawValue(); - if(v.length > 0){ - start = start === undefined ? 0 : start; - end = end === undefined ? v.length : end; - var d = this.inputEl().dom; - if(d.setSelectionRange){ - d.setSelectionRange(start, end); - }else if(d.createTextRange){ - var range = d.createTextRange(); - range.moveStart("character", start); - range.moveEnd("character", v.length-end); - range.select(); - } - } - }, - - /** - * Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}. - * @param {Mixed} value The value to set - */ - setValue : function(v){ - this.value = v; - if(this.rendered){ - this.inputEl().dom.value = (v === null || v === undefined ? '' : v); - this.validate(); - } - }, - - /* - processValue : function(value){ - if(this.stripCharsRe){ - var newValue = value.replace(this.stripCharsRe, ''); - if(newValue !== value){ - this.setRawValue(newValue); - return newValue; - } - } - return value; - }, - */ - preFocus : function(){ - - if(this.selectOnFocus){ - this.inputEl().dom.select(); - } - }, - filterKeys : function(e){ - var k = e.getKey(); - if(!Roo.isIE && (e.isNavKeyPress() || k == e.BACKSPACE || (k == e.DELETE && e.button == -1))){ - return; - } - var c = e.getCharCode(), cc = String.fromCharCode(c); - if(Roo.isIE && (e.isSpecialKey() || !cc)){ - return; - } - if(!this.maskRe.test(cc)){ - e.stopEvent(); - } - }, - /** - * Clear any invalid styles/messages for this field - */ - clearInvalid : function(){ - - if(!this.el || this.preventMark){ // not rendered - return; - } - - - this.el.removeClass([this.invalidClass, 'is-invalid']); - - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){ - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass(this.invalidFeedbackClass); - } - - } - - if(this.indicator){ - this.indicator.removeClass('visible'); - this.indicator.addClass(this.indicatorpos == 'right' ? 'hidden' : 'invisible'); - } - - this.fireEvent('valid', this); - }, - - /** - * Mark this field as valid - */ - markValid : function() - { - if(!this.el || this.preventMark){ // not rendered... - return; - } - - this.el.removeClass([this.invalidClass, this.validClass]); - this.inputEl().removeClass(['is-valid', 'is-invalid']); - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); - } - - if(this.indicator){ - this.indicator.removeClass('visible'); - this.indicator.addClass(this.indicatorpos == 'right' ? 'hidden' : 'invisible'); - } - - if(this.disabled){ - return; - } - - - if(this.allowBlank && !this.getRawValue().length){ - return; - } - if (Roo.bootstrap.version == 3) { - this.el.addClass(this.validClass); - } else { - this.inputEl().addClass('is-valid'); - } - - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank && (this.getValue().length || this.forceFeedback)){ - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); - this.el.select('.form-control-feedback', true).first().addClass([this.validFeedbackClass]); - } - - } - - this.fireEvent('valid', this); - }, - - /** - * Mark this field as invalid - * @param {String} msg The validation message - */ - markInvalid : function(msg) - { - if(!this.el || this.preventMark){ // not rendered - return; - } - - this.el.removeClass([this.invalidClass, this.validClass]); - this.inputEl().removeClass(['is-valid', 'is-invalid']); - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass( - [this.invalidFeedbackClass, this.validFeedbackClass]); - } - - if(this.disabled){ - return; - } - - if(this.allowBlank && !this.getRawValue().length){ - return; - } - - if(this.indicator){ - this.indicator.removeClass(this.indicatorpos == 'right' ? 'hidden' : 'invisible'); - this.indicator.addClass('visible'); - } - if (Roo.bootstrap.version == 3) { - this.el.addClass(this.invalidClass); - } else { - this.inputEl().addClass('is-invalid'); - } - - - - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){ - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); - - if(this.getValue().length || this.forceFeedback){ - this.el.select('.form-control-feedback', true).first().addClass([this.invalidFeedbackClass]); - } - - } - - } - - this.fireEvent('invalid', this, msg); - }, - // private - SafariOnKeyDown : function(event) - { - // this is a workaround for a password hang bug on chrome/ webkit. - if (this.inputEl().dom.type != 'password') { - return; - } - - var isSelectAll = false; - - if(this.inputEl().dom.selectionEnd > 0){ - isSelectAll = (this.inputEl().dom.selectionEnd - this.inputEl().dom.selectionStart - this.getValue().length == 0) ? true : false; - } - if(((event.getKey() == 8 || event.getKey() == 46) && this.getValue().length ==1)){ // backspace and delete key - event.preventDefault(); - this.setValue(''); - return; - } - - if(isSelectAll && event.getCharCode() > 31 && !event.ctrlKey) { // not backspace and delete key (or ctrl-v) - - event.preventDefault(); - // this is very hacky as keydown always get's upper case. - // - var cc = String.fromCharCode(event.getCharCode()); - this.setValue( event.shiftKey ? cc : cc.toLowerCase()); - - } - }, - adjustWidth : function(tag, w){ - tag = tag.toLowerCase(); - if(typeof w == 'number' && Roo.isStrict && !Roo.isSafari){ - if(Roo.isIE && (tag == 'input' || tag == 'textarea')){ - if(tag == 'input'){ - return w + 2; - } - if(tag == 'textarea'){ - return w-2; - } - }else if(Roo.isOpera){ - if(tag == 'input'){ - return w + 2; - } - if(tag == 'textarea'){ - return w-2; - } - } - } - return w; - }, - - setFieldLabel : function(v) - { - if(!this.rendered){ - return; - } - - if(this.indicatorEl()){ - var ar = this.el.select('label > span',true); - - if (ar.elements.length) { - this.el.select('label > span',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v); - this.fieldLabel = v; - return; - } - - var br = this.el.select('label',true); - - if(br.elements.length) { - this.el.select('label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v); - this.fieldLabel = v; - return; - } - - Roo.log('Cannot Found any of label > span || label in input'); - return; - } - - this.el.select('label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v); - this.fieldLabel = v; - - - } -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Markdown.js.html b/docs/src/Roo_bootstrap_Markdown.js.html deleted file mode 100644 index 953343a3c9..0000000000 --- a/docs/src/Roo_bootstrap_Markdown.js.html +++ /dev/null @@ -1,96 +0,0 @@ -Roo/bootstrap/Markdown.js -/* - * - LGPL - */ - -/** - * @class Roo.bootstrap.Markdown - * @extends Roo.bootstrap.TextArea - * Bootstrap Showdown editable area - * @cfg {string} content - * - * @constructor - * Create a new Showdown - */ - -Roo.bootstrap.Markdown = function(config){ - Roo.bootstrap.Markdown.superclass.constructor.call(this, config); - -}; - -Roo.extend(Roo.bootstrap.Markdown, Roo.bootstrap.TextArea, { - - editing :false, - - initEvents : function() - { - - Roo.bootstrap.TextArea.prototype.initEvents.call(this); - this.markdownEl = this.el.createChild({ - cls : 'roo-markdown-area' - }); - this.inputEl().addClass('d-none'); - if (this.getValue() == '') { - this.markdownEl.dom.innerHTML = String.format('<span class="roo-placeholder">{0}</span>', this.placeholder || ''); - - } else { - this.markdownEl.dom.innerHTML = Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); - } - this.markdownEl.on('click', this.toggleTextEdit, this); - this.on('blur', this.toggleTextEdit, this); - this.on('specialkey', this.resizeTextArea, this); - }, - - toggleTextEdit : function() - { - var sh = this.markdownEl.getHeight(); - this.inputEl().addClass('d-none'); - this.markdownEl.addClass('d-none'); - if (!this.editing) { - // show editor? - this.inputEl().setHeight(Math.min(500, Math.max(sh,(this.getValue().split("\n").length+1) * 30))); - this.inputEl().removeClass('d-none'); - this.inputEl().focus(); - this.editing = true; - return; - } - // show showdown... - this.updateMarkdown(); - this.markdownEl.removeClass('d-none'); - this.editing = false; - return; - }, - updateMarkdown : function() - { - if (this.getValue() == '') { - this.markdownEl.dom.innerHTML = String.format('<span class="roo-placeholder">{0}</span>', this.placeholder || ''); - return; - } - - this.markdownEl.dom.innerHTML = Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); - }, - - resizeTextArea: function () { - - var sh = 100; - Roo.log([sh, this.getValue().split("\n").length * 30]); - this.inputEl().setHeight(Math.min(500, Math.max(sh, (this.getValue().split("\n").length +1) * 30))); - }, - setValue : function(val) - { - Roo.bootstrap.TextArea.prototype.setValue.call(this,val); - if (!this.editing) { - this.updateMarkdown(); - } - - }, - focus : function() - { - if (!this.editing) { - this.toggleTextEdit(); - } - - } - - -}); \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Menu.js.html b/docs/src/Roo_bootstrap_Menu.js.html deleted file mode 100644 index 7dabcdae6f..0000000000 --- a/docs/src/Roo_bootstrap_Menu.js.html +++ /dev/null @@ -1,482 +0,0 @@ -Roo/bootstrap/Menu.js/* - * - LGPL - * - * menu - * - */ - -/** - * @class Roo.bootstrap.Menu - * @extends Roo.bootstrap.Component - * @children Roo.bootstrap.MenuItem - * Bootstrap Menu class - container for MenuItems - * - * @cfg {String} type (dropdown|treeview|submenu) type of menu - * @cfg {bool} hidden if the menu should be hidden when rendered. - * @cfg {bool} stopEvent (true|false) Stop event after trigger press (default true) - * @cfg {bool} isLink (true|false) the menu has link disable auto expand and collaspe (default false) - * @cfg {bool} hideTrigger (true|false) default false - hide the carret for trigger. - * @cfg {String} align default tl-bl? == below - how the menu should be aligned. - - * @constructor - * Create a new Menu - * @param {Object} config The config object - */ - - -Roo.bootstrap.Menu = function(config){ - - if (config.type == 'treeview') { - // normally menu's are drawn attached to the document to handle layering etc.. - // however treeview (used by the docs menu is drawn into the parent element) - this.container_method = 'getChildContainer'; - } - - Roo.bootstrap.Menu.superclass.constructor.call(this, config); - if (this.registerMenu && this.type != 'treeview') { - Roo.bootstrap.MenuMgr.register(this); - } - - - this.addEvents({ - /** - * @event beforeshow - * Fires before this menu is displayed (return false to block) - * @param {Roo.menu.Menu} this - */ - beforeshow : true, - /** - * @event beforehide - * Fires before this menu is hidden (return false to block) - * @param {Roo.menu.Menu} this - */ - beforehide : true, - /** - * @event show - * Fires after this menu is displayed - * @param {Roo.menu.Menu} this - */ - show : true, - /** - * @event hide - * Fires after this menu is hidden - * @param {Roo.menu.Menu} this - */ - hide : true, - /** - * @event click - * Fires when this menu is clicked (or when the enter key is pressed while it is active) - * @param {Roo.menu.Menu} this - * @param {Roo.menu.Item} menuItem The menu item that was clicked - * @param {Roo.EventObject} e - */ - click : true, - /** - * @event mouseover - * Fires when the mouse is hovering over this menu - * @param {Roo.menu.Menu} this - * @param {Roo.EventObject} e - * @param {Roo.menu.Item} menuItem The menu item that was clicked - */ - mouseover : true, - /** - * @event mouseout - * Fires when the mouse exits this menu - * @param {Roo.menu.Menu} this - * @param {Roo.EventObject} e - * @param {Roo.menu.Item} menuItem The menu item that was clicked - */ - mouseout : true, - /** - * @event itemclick - * Fires when a menu item contained in this menu is clicked - * @param {Roo.menu.BaseItem} baseItem The BaseItem that was clicked - * @param {Roo.EventObject} e - */ - itemclick: true - }); - this.menuitems = new Roo.util.MixedCollection(false, function(o) { return o.el.id; }); -}; - -Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component, { - - /// html : false, - - triggerEl : false, // is this set by component builder? -- it should really be fetched from parent()??? - type: false, - /** - * @cfg {Boolean} registerMenu True (default) - means that clicking on screen etc. hides it. - */ - registerMenu : true, - - menuItems :false, // stores the menu items.. - - hidden:true, - - parentMenu : false, - - stopEvent : true, - - isLink : false, - - container_method : 'getDocumentBody', // so the menu is rendered on the body and zIndex works. - - hideTrigger : false, - - align : 'tl-bl?', - - - getChildContainer : function() { - return this.el; - }, - - getAutoCreate : function(){ - - //if (['right'].indexOf(this.align)!==-1) { - // cfg.cn[1].cls += ' pull-right' - //} - - var cfg = { - tag : 'ul', - cls : 'dropdown-menu shadow' , - style : 'z-index:1000' - - }; - - if (this.type === 'submenu') { - cfg.cls = 'submenu active'; - } - if (this.type === 'treeview') { - cfg.cls = 'treeview-menu'; - } - - return cfg; - }, - initEvents : function() { - - // Roo.log("ADD event"); - // Roo.log(this.triggerEl.dom); - if (this.triggerEl) { - - this.triggerEl.on('click', this.onTriggerClick, this); - - this.triggerEl.on(Roo.isTouch ? 'touchstart' : 'mouseup', this.onTriggerPress, this); - - if (!this.hideTrigger) { - if (this.triggerEl.hasClass('nav-item') && this.triggerEl.select('.nav-link',true).length) { - // dropdown toggle on the 'a' in BS4? - this.triggerEl.select('.nav-link',true).first().addClass('dropdown-toggle'); - } else { - this.triggerEl.addClass('dropdown-toggle'); - } - } - } - - if (Roo.isTouch) { - this.el.on('touchstart' , this.onTouch, this); - } - this.el.on('click' , this.onClick, this); - - this.el.on("mouseover", this.onMouseOver, this); - this.el.on("mouseout", this.onMouseOut, this); - - }, - - findTargetItem : function(e) - { - var t = e.getTarget(".dropdown-menu-item", this.el, true); - if(!t){ - return false; - } - //Roo.log(t); Roo.log(t.id); - if(t && t.id){ - //Roo.log(this.menuitems); - return this.menuitems.get(t.id); - - //return this.items.get(t.menuItemId); - } - - return false; - }, - - onTouch : function(e) - { - Roo.log("menu.onTouch"); - //e.stopEvent(); this make the user popdown broken - this.onClick(e); - }, - - onClick : function(e) - { - Roo.log("menu.onClick"); - - var t = this.findTargetItem(e); - if(!t || t.isContainer){ - return; - } - Roo.log(e); - /* - if (Roo.isTouch && e.type == 'touchstart' && t.menu && !t.disabled) { - if(t == this.activeItem && t.shouldDeactivate(e)){ - this.activeItem.deactivate(); - delete this.activeItem; - return; - } - if(t.canActivate){ - this.setActiveItem(t, true); - } - return; - - - } - */ - - Roo.log('pass click event'); - - t.onClick(e); - - this.fireEvent("click", this, t, e); - - var _this = this; - - if(!t.href.length || t.href == '#'){ - (function() { _this.hide(); }).defer(100); - } - - }, - - onMouseOver : function(e){ - var t = this.findTargetItem(e); - //Roo.log(t); - //if(t){ - // if(t.canActivate && !t.disabled){ - // this.setActiveItem(t, true); - // } - //} - - this.fireEvent("mouseover", this, e, t); - }, - isVisible : function(){ - return !this.hidden; - }, - onMouseOut : function(e){ - var t = this.findTargetItem(e); - - //if(t ){ - // if(t == this.activeItem && t.shouldDeactivate(e)){ - // this.activeItem.deactivate(); - // delete this.activeItem; - // } - //} - this.fireEvent("mouseout", this, e, t); - }, - - - /** - * Displays this menu relative to another element - * @param {String/HTMLElement/Roo.Element} element The element to align to - * @param {String} position (optional) The {@link Roo.Element#alignTo} anchor position to use in aligning to - * the element (defaults to this.defaultAlign) - * @param {Roo.menu.Menu} parentMenu (optional) This menu's parent menu, if applicable (defaults to undefined) - */ - show : function(el, pos, parentMenu) - { - if (false === this.fireEvent("beforeshow", this)) { - Roo.log("show canceled"); - return; - } - this.parentMenu = parentMenu; - if(!this.el){ - this.render(); - } - this.el.addClass('show'); // show otherwise we do not know how big we are.. - - var xy = this.el.getAlignToXY(el, pos); - - // bl-tl << left align below - // tl-bl << left align - - if(this.el.getWidth() + xy[0] >= Roo.lib.Dom.getViewWidth()){ - // if it goes to far to the right.. -> align left. - xy = this.el.getAlignToXY(el, this.align.replace('/l/g', 'r')) - } - if(xy[0] < 0){ - // was left align - go right? - xy = this.el.getAlignToXY(el, this.align.replace('/r/g', 'l')) - } - - // goes down the bottom - if(this.el.getHeight() + xy[1] >= Roo.lib.Dom.getViewHeight() || - xy[1] < 0 ){ - var a = this.align.replace('?', '').split('-'); - xy = this.el.getAlignToXY(el, a[1] + '-' + a[0] + '?') - - } - - this.showAt( xy , parentMenu, false); - }, - /** - * Displays this menu at a specific xy position - * @param {Array} xyPosition Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) - * @param {Roo.menu.Menu} parentMenu (optional) This menu's parent menu, if applicable (defaults to undefined) - */ - showAt : function(xy, parentMenu, /* private: */_e){ - this.parentMenu = parentMenu; - if(!this.el){ - this.render(); - } - if(_e !== false){ - this.fireEvent("beforeshow", this); - //xy = this.el.adjustForConstraints(xy); - } - - //this.el.show(); - this.hideMenuItems(); - this.hidden = false; - if (this.triggerEl) { - this.triggerEl.addClass('open'); - } - - this.el.addClass('show'); - - - - // reassign x when hitting right - - // reassign y when hitting bottom - - // but the list may align on trigger left or trigger top... should it be a properity? - - if(this.el.getStyle('top') != 'auto' && this.el.getStyle('top').slice(-1) != "%"){ - this.el.setXY(xy); - } - - this.focus(); - this.fireEvent("show", this); - }, - - focus : function(){ - return; - if(!this.hidden){ - this.doFocus.defer(50, this); - } - }, - - doFocus : function(){ - if(!this.hidden){ - this.focusEl.focus(); - } - }, - - /** - * Hides this menu and optionally all parent menus - * @param {Boolean} deep (optional) True to hide all parent menus recursively, if any (defaults to false) - */ - hide : function(deep) - { - if (false === this.fireEvent("beforehide", this)) { - Roo.log("hide canceled"); - return; - } - this.hideMenuItems(); - if(this.el && this.isVisible()){ - - if(this.activeItem){ - this.activeItem.deactivate(); - this.activeItem = null; - } - if (this.triggerEl) { - this.triggerEl.removeClass('open'); - } - - this.el.removeClass('show'); - this.hidden = true; - this.fireEvent("hide", this); - } - if(deep === true && this.parentMenu){ - this.parentMenu.hide(true); - } - }, - - onTriggerClick : function(e) - { - Roo.log('trigger click'); - - var target = e.getTarget(); - - Roo.log(target.nodeName.toLowerCase()); - - if(target.nodeName.toLowerCase() === 'i'){ - e.preventDefault(); - } - - }, - - onTriggerPress : function(e) - { - Roo.log('trigger press'); - //Roo.log(e.getTarget()); - // Roo.log(this.triggerEl.dom); - - // trigger only occurs on normal menu's -- if it's a treeview or dropdown... do not hide/show.. - var pel = Roo.get(e.getTarget()); - if (pel.findParent('.dropdown-menu') || pel.findParent('.treeview-menu') ) { - Roo.log('is treeview or dropdown?'); - return; - } - - if(e.getTarget().nodeName.toLowerCase() !== 'i' && this.isLink){ - return; - } - - if (this.isVisible()) { - Roo.log('hide'); - this.hide(); - } else { - Roo.log('show'); - - this.show(this.triggerEl, this.align, false); - } - - if(this.stopEvent || e.getTarget().nodeName.toLowerCase() === 'i'){ - e.stopEvent(); - } - - }, - - - hideMenuItems : function() - { - Roo.log("hide Menu Items"); - if (!this.el) { - return; - } - - this.el.select('.open',true).each(function(aa) { - - aa.removeClass('open'); - - }); - }, - addxtypeChild : function (tree, cntr) { - var comp= Roo.bootstrap.Menu.superclass.addxtypeChild.call(this, tree, cntr); - - this.menuitems.add(comp); - return comp; - - }, - getEl : function() - { - Roo.log(this.el); - return this.el; - }, - - clear : function() - { - this.getEl().dom.innerHTML = ''; - this.menuitems.clear(); - } -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_MenuItem.js.html b/docs/src/Roo_bootstrap_MenuItem.js.html deleted file mode 100644 index 79d133510a..0000000000 --- a/docs/src/Roo_bootstrap_MenuItem.js.html +++ /dev/null @@ -1,132 +0,0 @@ -Roo/bootstrap/MenuItem.js/* - * - LGPL - * - * menu item - * - */ - - -/** - * @class Roo.bootstrap.MenuItem - * @extends Roo.bootstrap.Component - * Bootstrap MenuItem class - * @cfg {String} html the menu label - * @cfg {String} href the link - * @cfg {Boolean} preventDefault do not trigger A href on clicks (default false). - * @cfg {Boolean} isContainer is it a container - just returns a drop down item.. - * @cfg {Boolean} active used on sidebars to highlight active itesm - * @cfg {String} fa favicon to show on left of menu item. - * @cfg {Roo.bootsrap.Menu} menu the child menu. - * - * - * @constructor - * Create a new MenuItem - * @param {Object} config The config object - */ - - -Roo.bootstrap.MenuItem = function(config){ - Roo.bootstrap.MenuItem.superclass.constructor.call(this, config); - this.addEvents({ - // raw events - /** - * @event click - * The raw click event for the entire grid. - * @param {Roo.bootstrap.MenuItem} this - * @param {Roo.EventObject} e - */ - "click" : true - }); -}; - -Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component, { - - href : false, - html : false, - preventDefault: false, - isContainer : false, - active : false, - fa: false, - - getAutoCreate : function(){ - - if(this.isContainer){ - return { - tag: 'li', - cls: 'dropdown-menu-item ' - }; - } - var ctag = { - tag: 'span', - html: 'Link' - }; - - var anc = { - tag : 'a', - cls : 'dropdown-item', - href : '#', - cn : [ ] - }; - - if (this.fa !== false) { - anc.cn.push({ - tag : 'i', - cls : 'fa fa-' + this.fa - }); - } - - anc.cn.push(ctag); - - - var cfg= { - tag: 'li', - cls: 'dropdown-menu-item', - cn: [ anc ] - }; - if (this.parent().type == 'treeview') { - cfg.cls = 'treeview-menu'; - } - if (this.active) { - cfg.cls += ' active'; - } - - - - anc.href = this.href || cfg.cn[0].href ; - ctag.html = this.html || cfg.cn[0].html ; - return cfg; - }, - - initEvents: function() - { - if (this.parent().type == 'treeview') { - this.el.select('a').on('click', this.onClick, this); - } - - if (this.menu) { - this.menu.parentType = this.xtype; - this.menu.triggerEl = this.el; - this.menu = this.addxtype(Roo.apply({}, this.menu)); - } - - }, - onClick : function(e) - { - Roo.log('item on click '); - - if(this.preventDefault){ - e.preventDefault(); - } - //this.parent().hideMenuItems(); - - this.fireEvent('click', this, e); - }, - getEl : function() - { - return this.el; - } -}); - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_MenuMgr.js.html b/docs/src/Roo_bootstrap_MenuMgr.js.html deleted file mode 100644 index b78814a5e1..0000000000 --- a/docs/src/Roo_bootstrap_MenuMgr.js.html +++ /dev/null @@ -1,199 +0,0 @@ -Roo/bootstrap/MenuMgr.js/* - * Based on: - * Ext JS Library 1.1.1 - * Copyright(c) 2006-2007, Ext JS, LLC. - * - * Originally Released Under LGPL - original licence link has changed is not relivant. - * - * Fork - LGPL - * <script type="text/javascript"> - */ - -/** - * @class Roo.bootstrap.MenuMgr - * Provides a common registry of all menu items on a page so that they can be easily accessed by id. - * @singleton - */ -Roo.bootstrap.MenuMgr = function(){ - var menus, active, groups = {}, attached = false, lastShow = new Date(); - - // private - called when first menu is created - function init(){ - menus = {}; - active = new Roo.util.MixedCollection(); - Roo.get(document).addKeyListener(27, function(){ - if(active.length > 0){ - hideAll(); - } - }); - } - - // private - function hideAll(){ - if(active && active.length > 0){ - var c = active.clone(); - c.each(function(m){ - m.hide(); - }); - } - } - - // private - function onHide(m){ - active.remove(m); - if(active.length < 1){ - Roo.get(document).un("mouseup", onMouseDown); - - attached = false; - } - } - - // private - function onShow(m){ - var last = active.last(); - lastShow = new Date(); - active.add(m); - if(!attached){ - Roo.get(document).on("mouseup", onMouseDown); - - attached = true; - } - if(m.parentMenu){ - //m.getEl().setZIndex(parseInt(m.parentMenu.getEl().getStyle("z-index"), 10) + 3); - m.parentMenu.activeChild = m; - }else if(last && last.isVisible()){ - //m.getEl().setZIndex(parseInt(last.getEl().getStyle("z-index"), 10) + 3); - } - } - - // private - function onBeforeHide(m){ - if(m.activeChild){ - m.activeChild.hide(); - } - if(m.autoHideTimer){ - clearTimeout(m.autoHideTimer); - delete m.autoHideTimer; - } - } - - // private - function onBeforeShow(m){ - var pm = m.parentMenu; - if(!pm && !m.allowOtherMenus){ - hideAll(); - }else if(pm && pm.activeChild && active != m){ - pm.activeChild.hide(); - } - } - - // private this should really trigger on mouseup.. - function onMouseDown(e){ - Roo.log("on Mouse Up"); - - if(lastShow.getElapsed() > 50 && active.length > 0 && !e.getTarget(".dropdown-menu") && !e.getTarget('.user-menu')){ - Roo.log("MenuManager hideAll"); - hideAll(); - e.stopEvent(); - } - - - } - - // private - function onBeforeCheck(mi, state){ - if(state){ - var g = groups[mi.group]; - for(var i = 0, l = g.length; i < l; i++){ - if(g[i] != mi){ - g[i].setChecked(false); - } - } - } - } - - return { - - /** - * Hides all menus that are currently visible - */ - hideAll : function(){ - hideAll(); - }, - - // private - register : function(menu){ - if(!menus){ - init(); - } - menus[menu.id] = menu; - menu.on("beforehide", onBeforeHide); - menu.on("hide", onHide); - menu.on("beforeshow", onBeforeShow); - menu.on("show", onShow); - var g = menu.group; - if(g && menu.events["checkchange"]){ - if(!groups[g]){ - groups[g] = []; - } - groups[g].push(menu); - menu.on("checkchange", onCheck); - } - }, - - /** - * Returns a {@link Roo.menu.Menu} object - * @param {String/Object} menu The string menu id, an existing menu object reference, or a Menu config that will - * be used to generate and return a new Menu instance. - */ - get : function(menu){ - if(typeof menu == "string"){ // menu id - return menus[menu]; - }else if(menu.events){ // menu instance - return menu; - } - /*else if(typeof menu.length == 'number'){ // array of menu items? - return new Roo.bootstrap.Menu({items:menu}); - }else{ // otherwise, must be a config - return new Roo.bootstrap.Menu(menu); - } - */ - return false; - }, - - // private - unregister : function(menu){ - delete menus[menu.id]; - menu.un("beforehide", onBeforeHide); - menu.un("hide", onHide); - menu.un("beforeshow", onBeforeShow); - menu.un("show", onShow); - var g = menu.group; - if(g && menu.events["checkchange"]){ - groups[g].remove(menu); - menu.un("checkchange", onCheck); - } - }, - - // private - registerCheckable : function(menuItem){ - var g = menuItem.group; - if(g){ - if(!groups[g]){ - groups[g] = []; - } - groups[g].push(menuItem); - menuItem.on("beforecheckchange", onBeforeCheck); - } - }, - - // private - unregisterCheckable : function(menuItem){ - var g = menuItem.group; - if(g){ - groups[g].remove(menuItem); - menuItem.un("beforecheckchange", onBeforeCheck); - } - } - }; -}(); \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_MenuSeparator.js.html b/docs/src/Roo_bootstrap_MenuSeparator.js.html deleted file mode 100644 index 4348957f82..0000000000 --- a/docs/src/Roo_bootstrap_MenuSeparator.js.html +++ /dev/null @@ -1,39 +0,0 @@ -Roo/bootstrap/MenuSeparator.js/* - * - LGPL - * - * menu separator - * - */ - - -/** - * @class Roo.bootstrap.MenuSeparator - * @extends Roo.bootstrap.Component - * Bootstrap MenuSeparator class - * - * @constructor - * Create a new MenuItem - * @param {Object} config The config object - */ - - -Roo.bootstrap.MenuSeparator = function(config){ - Roo.bootstrap.MenuSeparator.superclass.constructor.call(this, config); -}; - -Roo.extend(Roo.bootstrap.MenuSeparator, Roo.bootstrap.Component, { - - getAutoCreate : function(){ - var cfg = { - cls: 'divider', - tag : 'li' - }; - - return cfg; - } - -}); - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_MoneyField.js.html b/docs/src/Roo_bootstrap_MoneyField.js.html deleted file mode 100644 index 23dc08a456..0000000000 --- a/docs/src/Roo_bootstrap_MoneyField.js.html +++ /dev/null @@ -1,722 +0,0 @@ -Roo/bootstrap/MoneyField.js -/** - * @class Roo.bootstrap.MoneyField - * @extends Roo.bootstrap.ComboBox - * Bootstrap MoneyField class - * - * @constructor - * Create a new MoneyField. - * @param {Object} config Configuration options - */ - -Roo.bootstrap.MoneyField = function(config) { - - Roo.bootstrap.MoneyField.superclass.constructor.call(this, config); - -}; - -Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { - - /** - * @cfg {Boolean} allowDecimals False to disallow decimal values (defaults to true) - */ - allowDecimals : true, - /** - * @cfg {String} decimalSeparator Character(s) to allow as the decimal separator (defaults to '.') - */ - decimalSeparator : ".", - /** - * @cfg {Number} decimalPrecision The maximum precision to display after the decimal separator (defaults to 2) - */ - decimalPrecision : 0, - /** - * @cfg {Boolean} allowNegative False to prevent entering a negative sign (defaults to true) - */ - allowNegative : true, - /** - * @cfg {Boolean} allowZero False to blank out if the user enters '0' (defaults to true) - */ - allowZero: true, - /** - * @cfg {Number} minValue The minimum allowed value (defaults to Number.NEGATIVE_INFINITY) - */ - minValue : Number.NEGATIVE_INFINITY, - /** - * @cfg {Number} maxValue The maximum allowed value (defaults to Number.MAX_VALUE) - */ - maxValue : Number.MAX_VALUE, - /** - * @cfg {String} minText Error text to display if the minimum value validation fails (defaults to "The minimum value for this field is {minValue}") - */ - minText : "The minimum value for this field is {0}", - /** - * @cfg {String} maxText Error text to display if the maximum value validation fails (defaults to "The maximum value for this field is {maxValue}") - */ - maxText : "The maximum value for this field is {0}", - /** - * @cfg {String} nanText Error text to display if the value is not a valid number. For example, this can happen - * if a valid character like '.' or '-' is left in the field with no number (defaults to "{value} is not a valid number") - */ - nanText : "{0} is not a valid number", - /** - * @cfg {Boolean} castInt (true|false) cast int if true (defalut true) - */ - castInt : true, - /** - * @cfg {String} defaults currency of the MoneyField - * value should be in lkey - */ - defaultCurrency : false, - /** - * @cfg {String} thousandsDelimiter Symbol of thousandsDelimiter - */ - thousandsDelimiter : false, - /** - * @cfg {Number} max_length Maximum input field length allowed (defaults to Number.MAX_VALUE) - */ - max_length: false, - - inputlg : 9, - inputmd : 9, - inputsm : 9, - inputxs : 6, - /** - * @cfg {Roo.data.Store} store Store to lookup currency?? - */ - store : false, - - getAutoCreate : function() - { - var align = this.labelAlign || this.parentLabelAlign(); - - var id = Roo.id(); - - var cfg = { - cls: 'form-group', - cn: [] - }; - - var input = { - tag: 'input', - id : id, - cls : 'form-control roo-money-amount-input', - autocomplete: 'new-password' - }; - - var hiddenInput = { - tag: 'input', - type: 'hidden', - id: Roo.id(), - cls: 'hidden-number-input' - }; - - if(this.max_length) { - input.maxlength = this.max_length; - } - - if (this.name) { - hiddenInput.name = this.name; - } - - if (this.disabled) { - input.disabled = true; - } - - var clg = 12 - this.inputlg; - var cmd = 12 - this.inputmd; - var csm = 12 - this.inputsm; - var cxs = 12 - this.inputxs; - - var container = { - tag : 'div', - cls : 'row roo-money-field', - cn : [ - { - tag : 'div', - cls : 'roo-money-currency column col-lg-' + clg + ' col-md-' + cmd + ' col-sm-' + csm + ' col-xs-' + cxs, - cn : [ - { - tag : 'div', - cls: 'roo-select2-container input-group', - cn: [ - { - tag : 'input', - cls : 'form-control roo-money-currency-input', - autocomplete: 'new-password', - readOnly : 1, - name : this.currencyName - }, - { - tag :'span', - cls : 'input-group-addon', - cn : [ - { - tag: 'span', - cls: 'caret' - } - ] - } - ] - } - ] - }, - { - tag : 'div', - cls : 'roo-money-amount column col-lg-' + this.inputlg + ' col-md-' + this.inputmd + ' col-sm-' + this.inputsm + ' col-xs-' + this.inputxs, - cn : [ - { - tag: 'div', - cls: this.hasFeedback ? 'has-feedback' : '', - cn: [ - input - ] - } - ] - } - ] - - }; - - if (this.fieldLabel.length) { - var indicator = { - tag: 'i', - tooltip: 'This field is required' - }; - - var label = { - tag: 'label', - 'for': id, - cls: 'control-label', - cn: [] - }; - - var label_text = { - tag: 'span', - html: this.fieldLabel - }; - - indicator.cls = 'roo-required-indicator text-danger fa fa-lg fa-star left-indicator'; - label.cn = [ - indicator, - label_text - ]; - - if(this.indicatorpos == 'right') { - indicator.cls = 'roo-required-indicator text-danger fa fa-lg fa-star right-indicator'; - label.cn = [ - label_text, - indicator - ]; - } - - if(align == 'left') { - container = { - tag: 'div', - cn: [ - container - ] - }; - - if(this.labelWidth > 12){ - label.style = "width: " + this.labelWidth + 'px'; - } - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - if(this.labellg > 0){ - label.cls += ' col-lg-' + this.labellg; - input.cls += ' col-lg-' + (12 - this.labellg); - } - if(this.labelmd > 0){ - label.cls += ' col-md-' + this.labelmd; - container.cls += ' col-md-' + (12 - this.labelmd); - } - if(this.labelsm > 0){ - label.cls += ' col-sm-' + this.labelsm; - container.cls += ' col-sm-' + (12 - this.labelsm); - } - if(this.labelxs > 0){ - label.cls += ' col-xs-' + this.labelxs; - container.cls += ' col-xs-' + (12 - this.labelxs); - } - } - } - - cfg.cn = [ - label, - container, - hiddenInput - ]; - - var settings = this; - - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - return cfg; - }, - - initEvents : function() - { - this.indicator = this.indicatorEl(); - - this.initCurrencyEvent(); - - this.initNumberEvent(); - }, - - initCurrencyEvent : function() - { - if (!this.store) { - throw "can not find store for combo"; - } - - this.store = Roo.factory(this.store, Roo.data); - this.store.parent = this; - - this.createList(); - - this.triggerEl = this.el.select('.input-group-addon', true).first(); - - this.triggerEl.on("click", this.onTriggerClick, this, { preventDefault : true }); - - var _this = this; - - (function(){ - var lw = _this.listWidth || Math.max(_this.inputEl().getWidth(), _this.minListWidth); - _this.list.setWidth(lw); - }).defer(100); - - this.list.on('mouseover', this.onViewOver, this); - this.list.on('mousemove', this.onViewMove, this); - this.list.on('scroll', this.onViewScroll, this); - - if(!this.tpl){ - this.tpl = '<li><a href="#">{' + this.currencyField + '}</a></li>'; - } - - this.view = new Roo.View(this.list, this.tpl, { - singleSelect:true, store: this.store, selectedClass: this.selectedClass - }); - - this.view.on('click', this.onViewClick, this); - - this.store.on('beforeload', this.onBeforeLoad, this); - this.store.on('load', this.onLoad, this); - this.store.on('loadexception', this.onLoadException, this); - - this.keyNav = new Roo.KeyNav(this.currencyEl(), { - "up" : function(e){ - this.inKeyMode = true; - this.selectPrev(); - }, - - "down" : function(e){ - if(!this.isExpanded()){ - this.onTriggerClick(); - }else{ - this.inKeyMode = true; - this.selectNext(); - } - }, - - "enter" : function(e){ - this.collapse(); - - if(this.fireEvent("specialkey", this, e)){ - this.onViewClick(false); - } - - return true; - }, - - "esc" : function(e){ - this.collapse(); - }, - - "tab" : function(e){ - this.collapse(); - - if(this.fireEvent("specialkey", this, e)){ - this.onViewClick(false); - } - - return true; - }, - - scope : this, - - doRelay : function(foo, bar, hname){ - if(hname == 'down' || this.scope.isExpanded()){ - return Roo.KeyNav.prototype.doRelay.apply(this, arguments); - } - return true; - }, - - forceKeyDown: true - }); - - this.currencyEl().on("click", this.onTriggerClick, this, { preventDefault : true }); - - }, - - initNumberEvent : function(e) - { - this.inputEl().on("keydown" , this.fireKey, this); - this.inputEl().on("focus", this.onFocus, this); - this.inputEl().on("blur", this.onBlur, this); - - this.inputEl().relayEvent('keyup', this); - - if(this.indicator){ - this.indicator.addClass('invisible'); - } - - this.originalValue = this.getValue(); - - if(this.validationEvent == 'keyup'){ - this.validationTask = new Roo.util.DelayedTask(this.validate, this); - this.inputEl().on('keyup', this.filterValidation, this); - } - else if(this.validationEvent !== false){ - this.inputEl().on(this.validationEvent, this.validate, this, {buffer: this.validationDelay}); - } - - if(this.selectOnFocus){ - this.on("focus", this.preFocus, this); - - } - if(this.maskRe || (this.vtype && this.disableKeyFilter !== true && (this.maskRe = Roo.form.VTypes[this.vtype+'Mask']))){ - this.inputEl().on("keypress", this.filterKeys, this); - } else { - this.inputEl().relayEvent('keypress', this); - } - - var allowed = "0123456789"; - - if(this.allowDecimals){ - allowed += this.decimalSeparator; - } - - if(this.allowNegative){ - allowed += "-"; - } - - if(this.thousandsDelimiter) { - allowed += ","; - } - - this.stripCharsRe = new RegExp('[^'+allowed+']', 'gi'); - - var keyPress = function(e){ - - var k = e.getKey(); - - var c = e.getCharCode(); - - if( - (String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-') && - allowed.indexOf(String.fromCharCode(c)) === -1 - ){ - e.stopEvent(); - return; - } - - if(!Roo.isIE && (e.isSpecialKey() || k == e.BACKSPACE || k == e.DELETE)){ - return; - } - - if(allowed.indexOf(String.fromCharCode(c)) === -1){ - e.stopEvent(); - } - }; - - this.inputEl().on("keypress", keyPress, this); - - }, - - onTriggerClick : function(e) - { - if(this.disabled){ - return; - } - - this.page = 0; - this.loadNext = false; - - if(this.isExpanded()){ - this.collapse(); - return; - } - - this.hasFocus = true; - - if(this.triggerAction == 'all') { - this.doQuery(this.allQuery, true); - return; - } - - this.doQuery(this.getRawValue()); - }, - - getCurrency : function() - { - var v = this.currencyEl().getValue(); - - return v; - }, - - restrictHeight : function() - { - this.list.alignTo(this.currencyEl(), this.listAlign); - this.list.alignTo(this.currencyEl(), this.listAlign); - }, - - onViewClick : function(view, doFocus, el, e) - { - var index = this.view.getSelectedIndexes()[0]; - - var r = this.store.getAt(index); - - if(r){ - this.onSelect(r, index); - } - }, - - onSelect : function(record, index){ - - if(this.fireEvent('beforeselect', this, record, index) !== false){ - - this.setFromCurrencyData(index > -1 ? record.data : false); - - this.collapse(); - - this.fireEvent('select', this, record, index); - } - }, - - setFromCurrencyData : function(o) - { - var currency = ''; - - this.lastCurrency = o; - - if (this.currencyField) { - currency = !o || typeof(o[this.currencyField]) == 'undefined' ? '' : o[this.currencyField]; - } else { - Roo.log('no currencyField value set for '+ (this.name ? this.name : this.id)); - } - - this.lastSelectionText = currency; - - //setting default currency - if(o[this.currencyField] * 1 == 0 && this.defaultCurrency) { - this.setCurrency(this.defaultCurrency); - return; - } - - this.setCurrency(currency); - }, - - setFromData : function(o) - { - var c = {}; - - c[this.currencyField] = !o || typeof(o[this.currencyName]) == 'undefined' ? '' : o[this.currencyName]; - - this.setFromCurrencyData(c); - - var value = ''; - - if (this.name) { - value = !o || typeof(o[this.name]) == 'undefined' ? '' : o[this.name]; - } else { - Roo.log('no value set for '+ (this.name ? this.name : this.id)); - } - - this.setValue(value); - - }, - - setCurrency : function(v) - { - this.currencyValue = v; - - if(this.rendered){ - this.currencyEl().dom.value = (v === null || v === undefined ? '' : v); - this.validate(); - } - }, - - setValue : function(v) - { - v = String(this.fixPrecision(v)).replace(".", this.decimalSeparator); - - this.value = v; - - if(this.rendered){ - - this.hiddenEl().dom.value = (v === null || v === undefined ? '' : v); - - this.inputEl().dom.value = (v == '') ? '' : - Roo.util.Format.number(v, this.decimalPrecision, this.thousandsDelimiter || ''); - - if(!this.allowZero && v === '0') { - this.hiddenEl().dom.value = ''; - this.inputEl().dom.value = ''; - } - - this.validate(); - } - }, - - getRawValue : function() - { - var v = this.inputEl().getValue(); - - return v; - }, - - getValue : function() - { - return this.fixPrecision(this.parseValue(this.getRawValue())); - }, - - parseValue : function(value) - { - if(this.thousandsDelimiter) { - value += ""; - r = new RegExp(",", "g"); - value = value.replace(r, ""); - } - - value = parseFloat(String(value).replace(this.decimalSeparator, ".")); - return isNaN(value) ? '' : value; - - }, - - fixPrecision : function(value) - { - if(this.thousandsDelimiter) { - value += ""; - r = new RegExp(",", "g"); - value = value.replace(r, ""); - } - - var nan = isNaN(value); - - if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){ - return nan ? '' : value; - } - return parseFloat(value).toFixed(this.decimalPrecision); - }, - - decimalPrecisionFcn : function(v) - { - return Math.floor(v); - }, - - validateValue : function(value) - { - if(!Roo.bootstrap.MoneyField.superclass.validateValue.call(this, value)){ - return false; - } - - var num = this.parseValue(value); - - if(isNaN(num)){ - this.markInvalid(String.format(this.nanText, value)); - return false; - } - - if(num < this.minValue){ - this.markInvalid(String.format(this.minText, this.minValue)); - return false; - } - - if(num > this.maxValue){ - this.markInvalid(String.format(this.maxText, this.maxValue)); - return false; - } - - return true; - }, - - validate : function() - { - if(this.disabled || this.allowBlank){ - this.markValid(); - return true; - } - - var currency = this.getCurrency(); - - if(this.validateValue(this.getRawValue()) && currency.length){ - this.markValid(); - return true; - } - - this.markInvalid(); - return false; - }, - - getName: function() - { - return this.name; - }, - - beforeBlur : function() - { - if(!this.castInt){ - return; - } - - var v = this.parseValue(this.getRawValue()); - - if(v || v == 0){ - this.setValue(v); - } - }, - - onBlur : function() - { - this.beforeBlur(); - - if(!Roo.isOpera && this.focusClass){ // don't touch in Opera - //this.el.removeClass(this.focusClass); - } - - this.hasFocus = false; - - if(this.validationEvent !== false && this.validateOnBlur && this.validationEvent != "blur"){ - this.validate(); - } - - var v = this.getValue(); - - if(String(v) !== String(this.startValue)){ - this.fireEvent('change', this, v, this.startValue); - } - - this.fireEvent("blur", this); - }, - - inputEl : function() - { - return this.el.select('.roo-money-amount-input', true).first(); - }, - - currencyEl : function() - { - return this.el.select('.roo-money-currency-input', true).first(); - }, - - hiddenEl : function() - { - return this.el.select('input.hidden-number-input',true).first(); - } - -}); \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_MonthField.js.html b/docs/src/Roo_bootstrap_MonthField.js.html deleted file mode 100644 index 5f26385c79..0000000000 --- a/docs/src/Roo_bootstrap_MonthField.js.html +++ /dev/null @@ -1,393 +0,0 @@ -Roo/bootstrap/MonthField.js/* - * - LGPL - * - * MonthField - * - */ - -/** - * @class Roo.bootstrap.MonthField - * @extends Roo.bootstrap.Input - * Bootstrap MonthField class - * - * @cfg {String} language default en - * - * @constructor - * Create a new MonthField - * @param {Object} config The config object - */ - -Roo.bootstrap.MonthField = function(config){ - Roo.bootstrap.MonthField.superclass.constructor.call(this, config); - - this.addEvents({ - /** - * @event show - * Fires when this field show. - * @param {Roo.bootstrap.MonthField} this - * @param {Mixed} date The date value - */ - show : true, - /** - * @event show - * Fires when this field hide. - * @param {Roo.bootstrap.MonthField} this - * @param {Mixed} date The date value - */ - hide : true, - /** - * @event select - * Fires when select a date. - * @param {Roo.bootstrap.MonthField} this - * @param {String} oldvalue The old value - * @param {String} newvalue The new value - */ - select : true - }); -}; - -Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { - - onRender: function(ct, position) - { - - Roo.bootstrap.MonthField.superclass.onRender.call(this, ct, position); - - this.language = this.language || 'en'; - this.language = this.language in Roo.bootstrap.MonthField.dates ? this.language : this.language.split('-')[0]; - this.language = this.language in Roo.bootstrap.MonthField.dates ? this.language : "en"; - - this.isRTL = Roo.bootstrap.MonthField.dates[this.language].rtl || false; - this.isInline = false; - this.isInput = true; - this.component = this.el.select('.add-on', true).first() || false; - this.component = (this.component && this.component.length === 0) ? false : this.component; - this.hasInput = this.component && this.inputEL().length; - - this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.MonthField.template); - - this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - this.picker().on('mousedown', this.onMousedown, this); - this.picker().on('click', this.onClick, this); - - this.picker().addClass('datepicker-dropdown'); - - Roo.each(this.picker().select('tbody > tr > td', true).elements, function(v){ - v.setStyle('width', '189px'); - }); - - this.fillMonths(); - - this.update(); - - if(this.isInline) { - this.show(); - } - - }, - - setValue: function(v, suppressEvent) - { - var o = this.getValue(); - - Roo.bootstrap.MonthField.superclass.setValue.call(this, v); - - this.update(); - - if(suppressEvent !== true){ - this.fireEvent('select', this, o, v); - } - - }, - - getValue: function() - { - return this.value; - }, - - onClick: function(e) - { - e.stopPropagation(); - e.preventDefault(); - - var target = e.getTarget(); - - if(target.nodeName.toLowerCase() === 'i'){ - target = Roo.get(target).dom.parentNode; - } - - var nodeName = target.nodeName; - var className = target.className; - var html = target.innerHTML; - - if(nodeName.toLowerCase() != 'span' || className.indexOf('disabled') > -1 || className.indexOf('month') == -1){ - return; - } - - this.vIndex = Roo.bootstrap.MonthField.dates[this.language].monthsShort.indexOf(html); - - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); - - this.hide(); - - }, - - picker : function() - { - return this.pickerEl; - }, - - fillMonths: function() - { - var i = 0; - var months = this.picker().select('>.datepicker-months td', true).first(); - - months.dom.innerHTML = ''; - - while (i < 12) { - var month = { - tag: 'span', - cls: 'month', - html: Roo.bootstrap.MonthField.dates[this.language].monthsShort[i++] - }; - - months.createChild(month); - } - - }, - - update: function() - { - var _this = this; - - if(typeof(this.vIndex) == 'undefined' && this.value.length){ - this.vIndex = Roo.bootstrap.MonthField.dates[this.language].months.indexOf(this.value); - } - - Roo.each(this.pickerEl.select('> .datepicker-months tbody > tr > td > span', true).elements, function(e, k){ - e.removeClass('active'); - - if(typeof(_this.vIndex) != 'undefined' && k == _this.vIndex){ - e.addClass('active'); - } - }) - }, - - place: function() - { - if(this.isInline) { - return; - } - - this.picker().removeClass(['bottom', 'top']); - - if((Roo.lib.Dom.getViewHeight() + Roo.get(document.body).getScroll().top) - (this.inputEl().getBottom() + this.picker().getHeight()) < 0){ - /* - * place to the top of element! - * - */ - - this.picker().addClass('top'); - this.picker().setTop(this.inputEl().getTop() - this.picker().getHeight()).setLeft(this.inputEl().getLeft()); - - return; - } - - this.picker().addClass('bottom'); - - this.picker().setTop(this.inputEl().getBottom()).setLeft(this.inputEl().getLeft()); - }, - - onFocus : function() - { - Roo.bootstrap.MonthField.superclass.onFocus.call(this); - this.show(); - }, - - onBlur : function() - { - Roo.bootstrap.MonthField.superclass.onBlur.call(this); - - var d = this.inputEl().getValue(); - - this.setValue(d); - - this.hide(); - }, - - show : function() - { - this.picker().show(); - this.picker().select('>.datepicker-months', true).first().show(); - this.update(); - this.place(); - - this.fireEvent('show', this, this.date); - }, - - hide : function() - { - if(this.isInline) { - return; - } - this.picker().hide(); - this.fireEvent('hide', this, this.date); - - }, - - onMousedown: function(e) - { - e.stopPropagation(); - e.preventDefault(); - }, - - keyup: function(e) - { - Roo.bootstrap.MonthField.superclass.keyup.call(this); - this.update(); - }, - - fireKey: function(e) - { - if (!this.picker().isVisible()){ - if (e.keyCode == 27) {// allow escape to hide and re-show picker - this.show(); - } - return; - } - - var dir; - - switch(e.keyCode){ - case 27: // escape - this.hide(); - e.preventDefault(); - break; - case 37: // left - case 39: // right - dir = e.keyCode == 37 ? -1 : 1; - - this.vIndex = this.vIndex + dir; - - if(this.vIndex < 0){ - this.vIndex = 0; - } - - if(this.vIndex > 11){ - this.vIndex = 11; - } - - if(isNaN(this.vIndex)){ - this.vIndex = 0; - } - - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); - - break; - case 38: // up - case 40: // down - - dir = e.keyCode == 38 ? -1 : 1; - - this.vIndex = this.vIndex + dir * 4; - - if(this.vIndex < 0){ - this.vIndex = 0; - } - - if(this.vIndex > 11){ - this.vIndex = 11; - } - - if(isNaN(this.vIndex)){ - this.vIndex = 0; - } - - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); - break; - - case 13: // enter - - if(typeof(this.vIndex) != 'undefined' && !isNaN(this.vIndex)){ - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); - } - - this.hide(); - e.preventDefault(); - break; - case 9: // tab - if(typeof(this.vIndex) != 'undefined' && !isNaN(this.vIndex)){ - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); - } - this.hide(); - break; - case 16: // shift - case 17: // ctrl - case 18: // alt - break; - default : - this.hide(); - - } - }, - - remove: function() - { - this.picker().remove(); - } - -}); - -Roo.apply(Roo.bootstrap.MonthField, { - - content : { - tag: 'tbody', - cn: [ - { - tag: 'tr', - cn: [ - { - tag: 'td', - colspan: '7' - } - ] - } - ] - }, - - dates:{ - en: { - months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], - monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] - } - } -}); - -Roo.apply(Roo.bootstrap.MonthField, { - - template : { - tag: 'div', - cls: 'datepicker dropdown-menu roo-dynamic', - cn: [ - { - tag: 'div', - cls: 'datepicker-months', - cn: [ - { - tag: 'table', - cls: 'table-condensed', - cn:[ - Roo.bootstrap.DateField.content - ] - } - ] - } - ] - } -}); - - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavGroup.js.html b/docs/src/Roo_bootstrap_NavGroup.js.html deleted file mode 100644 index 003a0c0333..0000000000 --- a/docs/src/Roo_bootstrap_NavGroup.js.html +++ /dev/null @@ -1,299 +0,0 @@ -Roo/bootstrap/NavGroup.js/* - * - LGPL - * - * nav group - * - */ - -/** - * @class Roo.bootstrap.NavGroup - * @extends Roo.bootstrap.Component - * Bootstrap NavGroup class - * @cfg {String} align (left|right) - * @cfg {Boolean} inverse - * @cfg {String} type (nav|pills|tab) default nav - * @cfg {String} navId - reference Id for navbar. - * @cfg {Boolean} pilltype default true (turn to off to disable active toggle) - * - * @constructor - * Create a new nav group - * @param {Object} config The config object - */ - -Roo.bootstrap.NavGroup = function(config){ - Roo.bootstrap.NavGroup.superclass.constructor.call(this, config); - this.navItems = []; - - Roo.bootstrap.NavGroup.register(this); - this.addEvents({ - /** - * @event changed - * Fires when the active item changes - * @param {Roo.bootstrap.NavGroup} this - * @param {Roo.bootstrap.Navbar.Item} selected The item selected - * @param {Roo.bootstrap.Navbar.Item} prev The previously selected item - */ - 'changed': true - }); - -}; - -Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component, { - - align: '', - inverse: false, - form: false, - type: 'nav', - navId : '', - // private - pilltype : true, - - navItems : false, - - getAutoCreate : function() - { - var cfg = Roo.apply({}, Roo.bootstrap.NavGroup.superclass.getAutoCreate.call(this)); - - cfg = { - tag : 'ul', - cls: 'nav' - }; - if (Roo.bootstrap.version == 4) { - if (['tabs','pills'].indexOf(this.type) != -1) { - cfg.cls += ' nav-' + this.type; - } else { - // trying to remove so header bar can right align top? - if (this.parent() && this.parent().xtype != 'NavHeaderbar') { - // do not use on header bar... - cfg.cls += ' navbar-nav'; - } - } - - } else { - if (['tabs','pills'].indexOf(this.type) != -1) { - cfg.cls += ' nav-' + this.type - } else { - if (this.type !== 'nav') { - Roo.log('nav type must be nav/tabs/pills') - } - cfg.cls += ' navbar-nav' - } - } - - if (this.parent() && this.parent().sidebar) { - cfg = { - tag: 'ul', - cls: 'dashboard-menu sidebar-menu' - }; - - return cfg; - } - - if (this.form === true) { - cfg = { - tag: 'form', - cls: 'navbar-form form-inline' - }; - //nav navbar-right ml-md-auto - if (this.align === 'right') { - cfg.cls += ' navbar-right ml-md-auto'; - } else { - cfg.cls += ' navbar-left'; - } - } - - if (this.align === 'right') { - cfg.cls += ' navbar-right ml-md-auto'; - } else { - cfg.cls += ' mr-auto'; - } - - if (this.inverse) { - cfg.cls += ' navbar-inverse'; - - } - - - return cfg; - }, - /** - * sets the active Navigation item - * @param {Roo.bootstrap.NavItem} the new current navitem - */ - setActiveItem : function(item) - { - var prev = false; - Roo.each(this.navItems, function(v){ - if (v == item) { - return ; - } - if (v.isActive()) { - v.setActive(false, true); - prev = v; - - } - - }); - - item.setActive(true, true); - this.fireEvent('changed', this, item, prev); - - - }, - /** - * gets the active Navigation item - * @return {Roo.bootstrap.NavItem} the current navitem - */ - getActive : function() - { - - var prev = false; - Roo.each(this.navItems, function(v){ - - if (v.isActive()) { - prev = v; - - } - - }); - return prev; - }, - - indexOfNav : function() - { - - var prev = false; - Roo.each(this.navItems, function(v,i){ - - if (v.isActive()) { - prev = i; - - } - - }); - return prev; - }, - /** - * adds a Navigation item - * @param {Roo.bootstrap.NavItem} the navitem to add - */ - addItem : function(cfg) - { - if (this.form && Roo.bootstrap.version == 4) { - cfg.tag = 'div'; - } - var cn = new Roo.bootstrap.NavItem(cfg); - this.register(cn); - cn.parentId = this.id; - cn.onRender(this.el, null); - return cn; - }, - /** - * register a Navigation item - * @param {Roo.bootstrap.NavItem} the navitem to add - */ - register : function(item) - { - this.navItems.push( item); - item.navId = this.navId; - - }, - - /** - * clear all the Navigation item - */ - - clearAll : function() - { - this.navItems = []; - this.el.dom.innerHTML = ''; - }, - - getNavItem: function(tabId) - { - var ret = false; - Roo.each(this.navItems, function(e) { - if (e.tabId == tabId) { - ret = e; - return false; - } - return true; - - }); - return ret; - }, - - setActiveNext : function() - { - var i = this.indexOfNav(this.getActive()); - if (i > this.navItems.length) { - return; - } - this.setActiveItem(this.navItems[i+1]); - }, - setActivePrev : function() - { - var i = this.indexOfNav(this.getActive()); - if (i < 1) { - return; - } - this.setActiveItem(this.navItems[i-1]); - }, - clearWasActive : function(except) { - Roo.each(this.navItems, function(e) { - if (e.tabId != except.tabId && e.was_active) { - e.was_active = false; - return false; - } - return true; - - }); - }, - getWasActive : function () - { - var r = false; - Roo.each(this.navItems, function(e) { - if (e.was_active) { - r = e; - return false; - } - return true; - - }); - return r; - } - - -}); - - -Roo.apply(Roo.bootstrap.NavGroup, { - - groups: {}, - /** - * register a Navigation Group - * @param {Roo.bootstrap.NavGroup} the navgroup to add - */ - register : function(navgrp) - { - this.groups[navgrp.navId] = navgrp; - - }, - /** - * fetch a Navigation Group based on the navigation ID - * @param {string} the navgroup to add - * @returns {Roo.bootstrap.NavGroup} the navgroup - */ - get: function(navId) { - if (typeof(this.groups[navId]) == 'undefined') { - return false; - //this.register(new Roo.bootstrap.NavGroup({ navId : navId })); - } - return this.groups[navId] ; - } - - - -}); - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavHeaderbar.js.html b/docs/src/Roo_bootstrap_NavHeaderbar.js.html deleted file mode 100644 index ba5fa541c2..0000000000 --- a/docs/src/Roo_bootstrap_NavHeaderbar.js.html +++ /dev/null @@ -1,187 +0,0 @@ -Roo/bootstrap/NavHeaderbar.js/* - * - LGPL - * - * navbar - * navbar-fixed-top - * navbar-expand-md fixed-top - */ - -/** - * @class Roo.bootstrap.NavHeaderbar - * @extends Roo.bootstrap.NavSimplebar - * Bootstrap Sidebar class - * - * @cfg {String} brand what is brand - * @cfg {String} position (fixed-top|fixed-bottom|static-top) position - * @cfg {String} brand_href href of the brand - * @cfg {Boolean} srButton generate the (screen reader / mobile) sr-only button default true - * @cfg {Boolean} autohide a top nav bar header that hides on scroll. - * @cfg {Boolean} desktopCenter should the header be centered on desktop using a container class - * @cfg {Roo.bootstrap.Row} mobilerow - a row to display on mobile only.. - * - * @constructor - * Create a new Sidebar - * @param {Object} config The config object - */ - - -Roo.bootstrap.NavHeaderbar = function(config){ - Roo.bootstrap.NavHeaderbar.superclass.constructor.call(this, config); - -}; - -Roo.extend(Roo.bootstrap.NavHeaderbar, Roo.bootstrap.NavSimplebar, { - - position: '', - brand: '', - brand_href: false, - srButton : true, - autohide : false, - desktopCenter : false, - - - getAutoCreate : function(){ - - var cfg = { - tag: this.nav || 'nav', - cls: 'navbar navbar-expand-md', - role: 'navigation', - cn: [] - }; - - var cn = cfg.cn; - if (this.desktopCenter) { - cn.push({cls : 'container', cn : []}); - cn = cn[0].cn; - } - - if(this.srButton){ - var btn = { - tag: 'button', - type: 'button', - cls: 'navbar-toggle navbar-toggler', - 'data-toggle': 'collapse', - cn: [ - { - tag: 'span', - cls: 'sr-only', - html: 'Toggle navigation' - }, - { - tag: 'span', - cls: 'icon-bar navbar-toggler-icon' - }, - { - tag: 'span', - cls: 'icon-bar' - }, - { - tag: 'span', - cls: 'icon-bar' - } - ] - }; - - cn.push( Roo.bootstrap.version == 4 ? btn : { - tag: 'div', - cls: 'navbar-header', - cn: [ - btn - ] - }); - } - - cn.push({ - tag: 'div', - cls: Roo.bootstrap.version == 4 ? 'nav flex-row roo-navbar-collapse collapse navbar-collapse' : 'collapse navbar-collapse roo-navbar-collapse', - cn : [] - }); - - cfg.cls += this.inverse ? ' navbar-inverse navbar-dark bg-dark' : ' navbar-default'; - - if (['light','white'].indexOf(this.weight) > -1) { - cfg.cls += ['light','white'].indexOf(this.weight) > -1 ? ' navbar-light' : ' navbar-dark'; - } - cfg.cls += ' bg-' + this.weight; - - - if (['fixed-top','fixed-bottom','static-top'].indexOf(this.position)>-1) { - cfg.cls += ' navbar-' + this.position + ' ' + this.position ; - - // tag can override this.. - - cfg.tag = this.tag || (this.position == 'fixed-bottom' ? 'footer' : 'header'); - } - - if (this.brand !== '') { - var cp = Roo.bootstrap.version == 4 ? cn : cn[0].cn; - cp.unshift({ // changed from push ?? BS4 needs it at the start? - does this break or exsiting? - tag: 'a', - href: this.brand_href ? this.brand_href : '#', - cls: 'navbar-brand', - cn: [ - this.brand - ] - }); - } - - if(this.main){ - cfg.cls += ' main-nav'; - } - - - return cfg; - - - }, - getHeaderChildContainer : function() - { - if (this.srButton && this.el.select('.navbar-header').getCount()) { - return this.el.select('.navbar-header',true).first(); - } - - return this.getChildContainer(); - }, - - getChildContainer : function() - { - - return this.el.select('.roo-navbar-collapse',true).first(); - - - }, - - initEvents : function() - { - Roo.bootstrap.NavHeaderbar.superclass.initEvents.call(this); - - if (this.autohide) { - - var prevScroll = 0; - var ft = this.el; - - Roo.get(document).on('scroll',function(e) { - var ns = Roo.get(document).getScroll().top; - var os = prevScroll; - prevScroll = ns; - - if(ns > os){ - ft.removeClass('slideDown'); - ft.addClass('slideUp'); - return; - } - ft.removeClass('slideUp'); - ft.addClass('slideDown'); - - - },this); - } - } - -}); - - - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavItem.js.html b/docs/src/Roo_bootstrap_NavItem.js.html deleted file mode 100644 index 6bac955ca4..0000000000 --- a/docs/src/Roo_bootstrap_NavItem.js.html +++ /dev/null @@ -1,378 +0,0 @@ -Roo/bootstrap/NavItem.js/** - * @class Roo.bootstrap.NavItem - * @extends Roo.bootstrap.Component - * @licence LGPL - * Bootstrap Navbar.NavItem class - * - * @cfg {String} href link to - * @cfg {String} button_weight (default|primary|secondary|success|info|warning|danger|link|light|dark) default none - * @cfg {Boolean} button_outline show and outlined button - * @cfg {String} html content of button - * @cfg {String} badge text inside badge - * @cfg {String} badgecls (bg-green|bg-red|bg-yellow)the extra classes for the badge - * @cfg {String} glyphicon DEPRICATED - use fa - * @cfg {String} icon DEPRICATED - use fa - * @cfg {String} fa - Fontawsome icon name (can add stuff to it like fa-2x) - * @cfg {Boolean} active Is item active - * @cfg {Boolean} disabled Is item disabled - * @cfg {String} linkcls Link Class - * @cfg {Boolean} preventDefault (true | false) default false - * @cfg {String} tabId the tab that this item activates. - * @cfg {String} tagtype (a|span) render as a href or span? - * @cfg {Boolean} animateRef (true|false) link to element default false - * @cfg {Roo.bootstrap.menu.Menu} menu a Menu - - * @constructor - * Create a new Navbar Item - * @param {Object} config The config object - */ -Roo.bootstrap.NavItem = function(config){ - Roo.bootstrap.NavItem.superclass.constructor.call(this, config); - this.addEvents({ - // raw events - /** - * @event click - * The raw click event for the entire grid. - * @param {Roo.EventObject} e - */ - "click" : true, - /** - * @event changed - * Fires when the active item active state changes - * @param {Roo.bootstrap.NavItem} this - * @param {boolean} state the new state - - */ - 'changed': true, - /** - * @event scrollto - * Fires when scroll to element - * @param {Roo.bootstrap.NavItem} this - * @param {Object} options - * @param {Roo.EventObject} e - - */ - 'scrollto': true - }); - -}; - -Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { - - href: false, - html: '', - badge: '', - icon: false, - fa : false, - glyphicon: false, - active: false, - preventDefault : false, - tabId : false, - tagtype : 'a', - tag: 'li', - disabled : false, - animateRef : false, - was_active : false, - button_weight : '', - button_outline : false, - linkcls : '', - navLink: false, - - getAutoCreate : function(){ - - var cfg = { - tag: this.tag, - cls: 'nav-item' - }; - - cfg.cls = typeof(cfg.cls) == 'undefined' ? '' : cfg.cls; - - if (this.active) { - cfg.cls += ' active' ; - } - if (this.disabled) { - cfg.cls += ' disabled'; - } - - // BS4 only? - if (this.button_weight.length) { - cfg.tag = this.href ? 'a' : 'button'; - cfg.html = this.html || ''; - cfg.cls += ' btn btn' + (this.button_outline ? '-outline' : '') + '-' + this.button_weight; - if (this.href) { - cfg.href = this.href; - } - if (this.fa) { - cfg.html = '<i class="fa fas fa-'+this.fa+'"></i> <span class="nav-html">' + this.html + '</span>'; - } else { - cfg.cls += " nav-html"; - } - - // menu .. should add dropdown-menu class - so no need for carat.. - - if (this.badge !== '') { - - cfg.html += ' <span class="badge badge-secondary">' + this.badge + '</span>'; - } - return cfg; - } - - if (this.href || this.html || this.glyphicon || this.icon || this.fa) { - cfg.cn = [ - { - tag: this.tagtype, - href : this.href || "#", - html: this.html || '', - cls : '' - } - ]; - if (this.tagtype == 'a') { - cfg.cn[0].cls = 'nav-link' + (this.active ? ' active' : '') + ' ' + this.linkcls; - - } - if (this.icon) { - cfg.cn[0].html = '<i class="'+this.icon+'"></i> <span class="nav-html">' + cfg.cn[0].html + '</span>'; - } else if (this.fa) { - cfg.cn[0].html = '<i class="fa fas fa-'+this.fa+'"></i> <span class="nav-html">' + cfg.cn[0].html + '</span>'; - } else if(this.glyphicon) { - cfg.cn[0].html = '<span class="glyphicon glyphicon-' + this.glyphicon + '"></span> ' + cfg.cn[0].html; - } else { - cfg.cn[0].cls += " nav-html"; - } - - if (this.menu) { - cfg.cn[0].html += " <span class='caret'></span>"; - - } - - if (this.badge !== '') { - cfg.cn[0].html += ' <span class="badge badge-secondary">' + this.badge + '</span>'; - } - } - - - - return cfg; - }, - onRender : function(ct, position) - { - // Roo.log("Call onRender: " + this.xtype); - if (Roo.bootstrap.version == 4 && ct.dom.type != 'ul') { - this.tag = 'div'; - } - - var ret = Roo.bootstrap.NavItem.superclass.onRender.call(this, ct, position); - this.navLink = this.el.select('.nav-link',true).first(); - this.htmlEl = this.el.hasClass('nav-html') ? this.el : this.el.select('.nav-html',true).first(); - return ret; - }, - - - initEvents: function() - { - if (typeof (this.menu) != 'undefined') { - this.menu.parentType = this.xtype; - this.menu.triggerEl = this.el; - this.menu = this.addxtype(Roo.apply({}, this.menu)); - } - - this.el.on('click', this.onClick, this); - - //if(this.tagtype == 'span'){ - // this.el.select('span',true).on('click', this.onClick, this); - //} - - // at this point parent should be available.. - this.parent().register(this); - }, - - onClick : function(e) - { - if (e.getTarget('.dropdown-menu-item')) { - // did you click on a menu itemm.... - then don't trigger onclick.. - return; - } - - if( - this.preventDefault || - this.href == '#' - ){ - Roo.log("NavItem - prevent Default?"); - e.preventDefault(); - } - - if (this.disabled) { - return; - } - - var tg = Roo.bootstrap.TabGroup.get(this.navId); - if (tg && tg.transition) { - Roo.log("waiting for the transitionend"); - return; - } - - - - //Roo.log("fire event clicked"); - if(this.fireEvent('click', this, e) === false){ - return; - }; - - if(this.tagtype == 'span'){ - return; - } - - //Roo.log(this.href); - var ael = this.el.select('a',true).first(); - //Roo.log(ael); - - if(ael && this.animateRef && this.href.indexOf('#') > -1){ - //Roo.log(["test:",ael.dom.href.split("#")[0], document.location.toString().split("#")[0]]); - if (ael.dom.href.split("#")[0] != document.location.toString().split("#")[0]) { - return; // ignore... - it's a 'hash' to another page. - } - Roo.log("NavItem - prevent Default?"); - e.preventDefault(); - this.scrollToElement(e); - } - - - var p = this.parent(); - - if (['tabs','pills'].indexOf(p.type)!==-1 && p.pilltype) { - if (typeof(p.setActiveItem) !== 'undefined') { - p.setActiveItem(this); - } - } - - // if parent is a navbarheader....- and link is probably a '#' page ref.. then remove the expanded menu. - if (p.parentType == 'NavHeaderbar' && !this.menu) { - // remove the collapsed menu expand... - p.parent().el.select('.roo-navbar-collapse',true).removeClass('in'); - } - }, - - isActive: function () { - return this.active - }, - setActive : function(state, fire, is_was_active) - { - if (this.active && !state && this.navId) { - this.was_active = true; - var nv = Roo.bootstrap.NavGroup.get(this.navId); - if (nv) { - nv.clearWasActive(this); - } - - } - this.active = state; - - if (!state ) { - this.el.removeClass('active'); - this.navLink ? this.navLink.removeClass('active') : false; - } else if (!this.el.hasClass('active')) { - - this.el.addClass('active'); - if (Roo.bootstrap.version == 4 && this.navLink ) { - this.navLink.addClass('active'); - } - - } - if (fire) { - this.fireEvent('changed', this, state); - } - - // show a panel if it's registered and related.. - - if (!this.navId || !this.tabId || !state || is_was_active) { - return; - } - - var tg = Roo.bootstrap.TabGroup.get(this.navId); - if (!tg) { - return; - } - var pan = tg.getPanelByName(this.tabId); - if (!pan) { - return; - } - // if we can not flip to new panel - go back to old nav highlight.. - if (false == tg.showPanel(pan)) { - var nv = Roo.bootstrap.NavGroup.get(this.navId); - if (nv) { - var onav = nv.getWasActive(); - if (onav) { - onav.setActive(true, false, true); - } - } - - } - - - - }, - // this should not be here... - setDisabled : function(state) - { - this.disabled = state; - if (!state ) { - this.el.removeClass('disabled'); - } else if (!this.el.hasClass('disabled')) { - this.el.addClass('disabled'); - } - - }, - - /** - * Fetch the element to display the tooltip on. - * @return {Roo.Element} defaults to this.el - */ - tooltipEl : function() - { - return this.el; //this.tagtype == 'a' ? this.el : this.el.select('' + this.tagtype + '', true).first(); - }, - - scrollToElement : function(e) - { - var c = document.body; - - /* - * Firefox / IE places the overflow at the html level, unless specifically styled to behave differently. - */ - if(Roo.isFirefox || Roo.isIE || Roo.isIE11){ - c = document.documentElement; - } - - var target = Roo.get(c).select('a[name=' + this.href.split('#')[1] +']', true).first(); - - if(!target){ - return; - } - - var o = target.calcOffsetsTo(c); - - var options = { - target : target, - value : o[1] - }; - - this.fireEvent('scrollto', this, options, e); - - Roo.get(c).scrollTo('top', options.value, true); - - return; - }, - /** - * Set the HTML (text content) of the item - * @param {string} html content for the nav item - */ - setHtml : function(html) - { - this.html = html; - this.htmlEl.dom.innerHTML = html; - - } -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavProgressBar.js.html b/docs/src/Roo_bootstrap_NavProgressBar.js.html deleted file mode 100644 index 32531f5b01..0000000000 --- a/docs/src/Roo_bootstrap_NavProgressBar.js.html +++ /dev/null @@ -1,252 +0,0 @@ -Roo/bootstrap/NavProgressBar.js/* - * - LGPL - * - * nav progress bar - * - */ - -/** - * @class Roo.bootstrap.NavProgressBar - * @extends Roo.bootstrap.Component - * Bootstrap NavProgressBar class - * - * @constructor - * Create a new nav progress bar - a bar indicating step along a process - * @param {Object} config The config object - */ - -Roo.bootstrap.NavProgressBar = function(config){ - Roo.bootstrap.NavProgressBar.superclass.constructor.call(this, config); - - this.bullets = this.bullets || []; - -// Roo.bootstrap.NavProgressBar.register(this); - this.addEvents({ - /** - * @event changed - * Fires when the active item changes - * @param {Roo.bootstrap.NavProgressBar} this - * @param {Roo.bootstrap.NavProgressItem} selected The item selected - * @param {Roo.bootstrap.NavProgressItem} prev The previously selected item - */ - 'changed': true - }); - -}; - -Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component, { - /** - * @cfg {Roo.bootstrap.NavProgressItem} NavProgressBar:bullets[] - * Bullets for the Nav Progress bar for the toolbar - */ - bullets : [], - barItems : [], - - getAutoCreate : function() - { - var cfg = Roo.apply({}, Roo.bootstrap.NavProgressBar.superclass.getAutoCreate.call(this)); - - cfg = { - tag : 'div', - cls : 'roo-navigation-bar-group', - cn : [ - { - tag : 'div', - cls : 'roo-navigation-top-bar' - }, - { - tag : 'div', - cls : 'roo-navigation-bullets-bar', - cn : [ - { - tag : 'ul', - cls : 'roo-navigation-bar' - } - ] - }, - - { - tag : 'div', - cls : 'roo-navigation-bottom-bar' - } - ] - - }; - - return cfg; - - }, - - initEvents: function() - { - - }, - - onRender : function(ct, position) - { - Roo.bootstrap.NavProgressBar.superclass.onRender.call(this, ct, position); - - if(this.bullets.length){ - Roo.each(this.bullets, function(b){ - this.addItem(b); - }, this); - } - - this.format(); - - }, - - addItem : function(cfg) - { - var item = new Roo.bootstrap.NavProgressItem(cfg); - - item.parentId = this.id; - item.render(this.el.select('.roo-navigation-bar', true).first(), null); - - if(cfg.html){ - var top = new Roo.bootstrap.Element({ - tag : 'div', - cls : 'roo-navigation-bar-text' - }); - - var bottom = new Roo.bootstrap.Element({ - tag : 'div', - cls : 'roo-navigation-bar-text' - }); - - top.onRender(this.el.select('.roo-navigation-top-bar', true).first(), null); - bottom.onRender(this.el.select('.roo-navigation-bottom-bar', true).first(), null); - - var topText = new Roo.bootstrap.Element({ - tag : 'span', - html : (typeof(cfg.position) != 'undefined' && cfg.position == 'top') ? cfg.html : '' - }); - - var bottomText = new Roo.bootstrap.Element({ - tag : 'span', - html : (typeof(cfg.position) != 'undefined' && cfg.position == 'top') ? '' : cfg.html - }); - - topText.onRender(top.el, null); - bottomText.onRender(bottom.el, null); - - item.topEl = top; - item.bottomEl = bottom; - } - - this.barItems.push(item); - - return item; - }, - - getActive : function() - { - var active = false; - - Roo.each(this.barItems, function(v){ - - if (!v.isActive()) { - return; - } - - active = v; - return false; - - }); - - return active; - }, - - setActiveItem : function(item) - { - var prev = false; - - Roo.each(this.barItems, function(v){ - if (v.rid == item.rid) { - return ; - } - - if (v.isActive()) { - v.setActive(false); - prev = v; - } - }); - - item.setActive(true); - - this.fireEvent('changed', this, item, prev); - }, - - getBarItem: function(rid) - { - var ret = false; - - Roo.each(this.barItems, function(e) { - if (e.rid != rid) { - return; - } - - ret = e; - return false; - }); - - return ret; - }, - - indexOfItem : function(item) - { - var index = false; - - Roo.each(this.barItems, function(v, i){ - - if (v.rid != item.rid) { - return; - } - - index = i; - return false - }); - - return index; - }, - - setActiveNext : function() - { - var i = this.indexOfItem(this.getActive()); - - if (i > this.barItems.length) { - return; - } - - this.setActiveItem(this.barItems[i+1]); - }, - - setActivePrev : function() - { - var i = this.indexOfItem(this.getActive()); - - if (i < 1) { - return; - } - - this.setActiveItem(this.barItems[i-1]); - }, - - format : function() - { - if(!this.barItems.length){ - return; - } - - var width = 100 / this.barItems.length; - - Roo.each(this.barItems, function(i){ - i.el.setStyle('width', width + '%'); - i.topEl.el.setStyle('width', width + '%'); - i.bottomEl.el.setStyle('width', width + '%'); - }, this); - - } - -}); - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavProgressItem.js.html b/docs/src/Roo_bootstrap_NavProgressItem.js.html deleted file mode 100644 index 9604ad2973..0000000000 --- a/docs/src/Roo_bootstrap_NavProgressItem.js.html +++ /dev/null @@ -1,152 +0,0 @@ -Roo/bootstrap/NavProgressItem.js/* - * - LGPL - * - * Nav Progress Item - * - */ - -/** - * @class Roo.bootstrap.NavProgressItem - * @extends Roo.bootstrap.Component - * Bootstrap NavProgressItem class - * @cfg {String} rid the reference id - * @cfg {Boolean} active (true|false) Is item active default false - * @cfg {Boolean} disabled (true|false) Is item active default false - * @cfg {String} html - * @cfg {String} position (top|bottom) text position default bottom - * @cfg {String} icon show icon instead of number - * - * @constructor - * Create a new NavProgressItem - * @param {Object} config The config object - */ -Roo.bootstrap.NavProgressItem = function(config){ - Roo.bootstrap.NavProgressItem.superclass.constructor.call(this, config); - this.addEvents({ - // raw events - /** - * @event click - * The raw click event for the entire grid. - * @param {Roo.bootstrap.NavProgressItem} this - * @param {Roo.EventObject} e - */ - "click" : true - }); - -}; - -Roo.extend(Roo.bootstrap.NavProgressItem, Roo.bootstrap.Component, { - - rid : '', - active : false, - disabled : false, - html : '', - position : 'bottom', - icon : false, - - getAutoCreate : function() - { - var iconCls = 'roo-navigation-bar-item-icon'; - - iconCls += ((this.icon) ? (' ' + this.icon) : (' step-number')) ; - - var cfg = { - tag: 'li', - cls: 'roo-navigation-bar-item', - cn : [ - { - tag : 'i', - cls : iconCls - } - ] - }; - - if(this.active){ - cfg.cls += ' active'; - } - if(this.disabled){ - cfg.cls += ' disabled'; - } - - return cfg; - }, - - disable : function() - { - this.setDisabled(true); - }, - - enable : function() - { - this.setDisabled(false); - }, - - initEvents: function() - { - this.iconEl = this.el.select('.roo-navigation-bar-item-icon', true).first(); - - this.iconEl.on('click', this.onClick, this); - }, - - onClick : function(e) - { - e.preventDefault(); - - if(this.disabled){ - return; - } - - if(this.fireEvent('click', this, e) === false){ - return; - }; - - this.parent().setActiveItem(this); - }, - - isActive: function () - { - return this.active; - }, - - setActive : function(state) - { - if(this.active == state){ - return; - } - - this.active = state; - - if (state) { - this.el.addClass('active'); - return; - } - - this.el.removeClass('active'); - - return; - }, - - setDisabled : function(state) - { - if(this.disabled == state){ - return; - } - - this.disabled = state; - - if (state) { - this.el.addClass('disabled'); - return; - } - - this.el.removeClass('disabled'); - }, - - tooltipEl : function() - { - return this.el.select('.roo-navigation-bar-item-icon', true).first();; - } -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavSidebar.js.html b/docs/src/Roo_bootstrap_NavSidebar.js.html deleted file mode 100644 index eba6db8051..0000000000 --- a/docs/src/Roo_bootstrap_NavSidebar.js.html +++ /dev/null @@ -1,46 +0,0 @@ -Roo/bootstrap/NavSidebar.js/* - * - LGPL - * - * navbar - * - */ - -/** - * @class Roo.bootstrap.NavSidebar - * @extends Roo.bootstrap.Navbar - * Bootstrap Sidebar class - * - * @constructor - * Create a new Sidebar - * @param {Object} config The config object - */ - - -Roo.bootstrap.NavSidebar = function(config){ - Roo.bootstrap.NavSidebar.superclass.constructor.call(this, config); -}; - -Roo.extend(Roo.bootstrap.NavSidebar, Roo.bootstrap.Navbar, { - - sidebar : true, // used by Navbar Item and NavbarGroup at present... - - getAutoCreate : function(){ - - - return { - tag: 'div', - cls: 'sidebar sidebar-nav' - }; - - - } - - - -}); - - - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavSidebarItem.js.html b/docs/src/Roo_bootstrap_NavSidebarItem.js.html deleted file mode 100644 index 0a39d4b134..0000000000 --- a/docs/src/Roo_bootstrap_NavSidebarItem.js.html +++ /dev/null @@ -1,227 +0,0 @@ -Roo/bootstrap/NavSidebarItem.js/* - * - LGPL - * - * sidebar item - * - * li - * <span> icon </span> - * <span> text </span> - * <span>badge </span> - */ - -/** - * @class Roo.bootstrap.NavSidebarItem - * @extends Roo.bootstrap.NavItem - * Bootstrap Navbar.NavSidebarItem class - * {String} badgeWeight (default|primary|success|info|warning|danger)the extra classes for the badge - * {Boolean} open is the menu open - * {Boolean} buttonView use button as the tigger el rather that a (default false) - * {String} buttonWeight (default|primary|success|info|warning|danger)the extra classes for the button - * {String} buttonSize (sm|md|lg)the extra classes for the button - * {Boolean} showArrow show arrow next to the text (default true) - * @constructor - * Create a new Navbar Button - * @param {Object} config The config object - */ -Roo.bootstrap.NavSidebarItem = function(config){ - Roo.bootstrap.NavSidebarItem.superclass.constructor.call(this, config); - this.addEvents({ - // raw events - /** - * @event click - * The raw click event for the entire grid. - * @param {Roo.EventObject} e - */ - "click" : true, - /** - * @event changed - * Fires when the active item active state changes - * @param {Roo.bootstrap.NavSidebarItem} this - * @param {boolean} state the new state - - */ - 'changed': true - }); - -}; - -Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem, { - - badgeWeight : 'default', - - open: false, - - buttonView : false, - - buttonWeight : 'default', - - buttonSize : 'md', - - showArrow : true, - - getAutoCreate : function(){ - - - var a = { - tag: 'a', - href : this.href || '#', - cls: '', - html : '', - cn : [] - }; - - if(this.buttonView){ - a = { - tag: 'button', - href : this.href || '#', - cls: 'btn btn-' + this.buttonWeight + ' btn-' + this.buttonSize + 'roo-button-dropdown-toggle', - html : this.html, - cn : [] - }; - } - - var cfg = { - tag: 'li', - cls: '', - cn: [ a ] - }; - - if (this.active) { - cfg.cls += ' active'; - } - - if (this.disabled) { - cfg.cls += ' disabled'; - } - if (this.open) { - cfg.cls += ' open x-open'; - } - // left icon.. - if (this.glyphicon || this.icon) { - var c = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon; - a.cn.push({ tag : 'i', cls : c }) ; - } - - if(!this.buttonView){ - var span = { - tag: 'span', - html : this.html || '' - }; - - a.cn.push(span); - - } - - if (this.badge !== '') { - a.cn.push({ tag: 'span', cls : 'badge pull-right badge-' + this.badgeWeight, html: this.badge }); - } - - if (this.menu) { - - if(this.showArrow){ - a.cn.push({ tag : 'i', cls : 'glyphicon glyphicon-chevron-down pull-right'}); - } - - a.cls += ' dropdown-toggle treeview' ; - } - - return cfg; - }, - - initEvents : function() - { - if (typeof (this.menu) != 'undefined') { - this.menu.parentType = this.xtype; - this.menu.triggerEl = this.el; - this.menu = this.addxtype(Roo.apply({}, this.menu)); - } - - this.el.on('click', this.onClick, this); - - if(this.badge !== ''){ - this.badgeEl = this.el.select('.badge', true).first().setVisibilityMode(Roo.Element.DISPLAY); - } - - }, - - onClick : function(e) - { - if(this.disabled){ - e.preventDefault(); - return; - } - - if(this.preventDefault){ - e.preventDefault(); - } - - this.fireEvent('click', this, e); - }, - - disable : function() - { - this.setDisabled(true); - }, - - enable : function() - { - this.setDisabled(false); - }, - - setDisabled : function(state) - { - if(this.disabled == state){ - return; - } - - this.disabled = state; - - if (state) { - this.el.addClass('disabled'); - return; - } - - this.el.removeClass('disabled'); - - return; - }, - - setActive : function(state) - { - if(this.active == state){ - return; - } - - this.active = state; - - if (state) { - this.el.addClass('active'); - return; - } - - this.el.removeClass('active'); - - return; - }, - - isActive: function () - { - return this.active; - }, - - setBadge : function(str) - { - if(!this.badgeEl){ - return; - } - - this.badgeEl.dom.innerHTML = str; - } - - - - -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NavSimplebar.js.html b/docs/src/Roo_bootstrap_NavSimplebar.js.html deleted file mode 100644 index a5d7bf4cda..0000000000 --- a/docs/src/Roo_bootstrap_NavSimplebar.js.html +++ /dev/null @@ -1,128 +0,0 @@ -Roo/bootstrap/NavSimplebar.js/* - * - LGPL - * - * navbar - * - */ - -/** - * @class Roo.bootstrap.NavSimplebar - * @extends Roo.bootstrap.Navbar - * Bootstrap Sidebar class - * - * @cfg {Boolean} inverse is inverted color - * - * @cfg {String} type (nav | pills | tabs) - * @cfg {Boolean} arrangement stacked | justified - * @cfg {String} align (left | right) alignment - * - * @cfg {Boolean} main (true|false) main nav bar? default false - * @cfg {Boolean} loadMask (true|false) loadMask on the bar - * - * @cfg {String} tag (header|footer|nav|div) default is nav - - * @cfg {String} weight (light|primary|secondary|success|danger|warning|info|dark|white) default is light. - * - * - * @constructor - * Create a new Sidebar - * @param {Object} config The config object - */ - - -Roo.bootstrap.NavSimplebar = function(config){ - Roo.bootstrap.NavSimplebar.superclass.constructor.call(this, config); -}; - -Roo.extend(Roo.bootstrap.NavSimplebar, Roo.bootstrap.Navbar, { - - inverse: false, - - type: false, - arrangement: '', - align : false, - - weight : 'light', - - main : false, - - - tag : false, - - - getAutoCreate : function(){ - - - var cfg = { - tag : this.tag || 'div', - cls : 'navbar roo-navbar-simple' //navbar-expand-lg ?? - }; - if (['light','white'].indexOf(this.weight) > -1) { - cfg.cls += ['light','white'].indexOf(this.weight) > -1 ? ' navbar-light' : ' navbar-dark'; - } - cfg.cls += ' bg-' + this.weight; - - if (this.inverse) { - cfg.cls += ' navbar-inverse'; - - } - - // i'm not actually sure these are really used - normally we add a navGroup to a navbar - - if (Roo.bootstrap.version == 4 && this.xtype == 'NavSimplebar') { - return cfg; - } - - - - - cfg.cn = [ - { - cls: 'nav nav-' + this.xtype, - tag : 'ul' - } - ]; - - - this.type = this.type || 'nav'; - if (['tabs','pills'].indexOf(this.type) != -1) { - cfg.cn[0].cls += ' nav-' + this.type - - - } else { - if (this.type!=='nav') { - Roo.log('nav type must be nav/tabs/pills') - } - cfg.cn[0].cls += ' navbar-nav' - } - - - - - if (['stacked','justified'].indexOf(this.arrangement) != -1) { - cfg.cn[0].cls += ' nav-' + this.arrangement; - } - - - if (this.align === 'right') { - cfg.cn[0].cls += ' navbar-right'; - } - - - - - return cfg; - - - } - - - -}); - - - - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Navbar.js.html b/docs/src/Roo_bootstrap_Navbar.js.html deleted file mode 100644 index 45ed0c1384..0000000000 --- a/docs/src/Roo_bootstrap_Navbar.js.html +++ /dev/null @@ -1,171 +0,0 @@ -Roo/bootstrap/Navbar.js/* - * - LGPL - * - * navbar - * - */ - -/** - * @class Roo.bootstrap.Navbar - * @extends Roo.bootstrap.Component - * Bootstrap Navbar class - - * @constructor - * Create a new Navbar - * @param {Object} config The config object - */ - - -Roo.bootstrap.Navbar = function(config){ - Roo.bootstrap.Navbar.superclass.constructor.call(this, config); - this.addEvents({ - // raw events - /** - * @event beforetoggle - * Fire before toggle the menu - * @param {Roo.EventObject} e - */ - "beforetoggle" : true - }); -}; - -Roo.extend(Roo.bootstrap.Navbar, Roo.bootstrap.Component, { - - - - // private - navItems : false, - loadMask : false, - - - getAutoCreate : function(){ - - - throw { message : "nav bar is now a abstract base class - use NavSimplebar / NavHeaderbar / NavSidebar etc..."}; - - }, - - initEvents :function () - { - //Roo.log(this.el.select('.navbar-toggle',true)); - this.el.select('.navbar-toggle',true).on('click', this.onToggle , this); - - var mark = { - tag: "div", - cls:"x-dlg-mask" - }; - - this.maskEl = Roo.DomHelper.append(this.el, mark, true); - - var size = this.el.getSize(); - this.maskEl.setSize(size.width, size.height); - this.maskEl.enableDisplayMode("block"); - this.maskEl.hide(); - - if(this.loadMask){ - this.maskEl.show(); - } - }, - - - getChildContainer : function() - { - if (this.el && this.el.select('.collapse').getCount()) { - return this.el.select('.collapse',true).first(); - } - - return this.el; - }, - - mask : function() - { - this.maskEl.show(); - }, - - unmask : function() - { - this.maskEl.hide(); - }, - onToggle : function() - { - - if(this.fireEvent('beforetoggle', this) === false){ - return; - } - var ce = this.el.select('.navbar-collapse',true).first(); - - if (!ce.hasClass('show')) { - this.expand(); - } else { - this.collapse(); - } - - - - }, - /** - * Expand the navbar pulldown - */ - expand : function () - { - - var ce = this.el.select('.navbar-collapse',true).first(); - if (ce.hasClass('collapsing')) { - return; - } - ce.dom.style.height = ''; - // show it... - ce.addClass('in'); // old... - ce.removeClass('collapse'); - ce.addClass('show'); - var h = ce.getHeight(); - Roo.log(h); - ce.removeClass('show'); - // at this point we should be able to see it.. - ce.addClass('collapsing'); - - ce.setHeight(0); // resize it ... - ce.on('transitionend', function() { - //Roo.log('done transition'); - ce.removeClass('collapsing'); - ce.addClass('show'); - ce.removeClass('collapse'); - - ce.dom.style.height = ''; - }, this, { single: true} ); - ce.setHeight(h); - ce.dom.scrollTop = 0; - }, - /** - * Collapse the navbar pulldown - */ - collapse : function() - { - var ce = this.el.select('.navbar-collapse',true).first(); - - if (ce.hasClass('collapsing') || ce.hasClass('collapse') ) { - // it's collapsed or collapsing.. - return; - } - ce.removeClass('in'); // old... - ce.setHeight(ce.getHeight()); - ce.removeClass('show'); - ce.addClass('collapsing'); - - ce.on('transitionend', function() { - ce.dom.style.height = ''; - ce.removeClass('collapsing'); - ce.addClass('collapse'); - }, this, { single: true} ); - ce.setHeight(0); - } - - - -}); - - - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_NumberField.js.html b/docs/src/Roo_bootstrap_NumberField.js.html deleted file mode 100644 index 35b93b1714..0000000000 --- a/docs/src/Roo_bootstrap_NumberField.js.html +++ /dev/null @@ -1,256 +0,0 @@ -Roo/bootstrap/NumberField.js/* - * - LGPL - * - * Number field - */ - -/** - * @class Roo.bootstrap.NumberField - * @extends Roo.bootstrap.Input - * Bootstrap NumberField class - * - * - * - * - * @constructor - * Create a new NumberField - * @param {Object} config The config object - */ - -Roo.bootstrap.NumberField = function(config){ - Roo.bootstrap.NumberField.superclass.constructor.call(this, config); -}; - -Roo.extend(Roo.bootstrap.NumberField, Roo.bootstrap.Input, { - - /** - * @cfg {Boolean} allowDecimals False to disallow decimal values (defaults to true) - */ - allowDecimals : true, - /** - * @cfg {String} decimalSeparator Character(s) to allow as the decimal separator (defaults to '.') - */ - decimalSeparator : ".", - /** - * @cfg {Number} decimalPrecision The maximum precision to display after the decimal separator (defaults to 2) - */ - decimalPrecision : 2, - /** - * @cfg {Boolean} allowNegative False to prevent entering a negative sign (defaults to true) - */ - allowNegative : true, - - /** - * @cfg {Boolean} allowZero False to blank out if the user enters '0' (defaults to true) - */ - allowZero: true, - /** - * @cfg {Number} minValue The minimum allowed value (defaults to Number.NEGATIVE_INFINITY) - */ - minValue : Number.NEGATIVE_INFINITY, - /** - * @cfg {Number} maxValue The maximum allowed value (defaults to Number.MAX_VALUE) - */ - maxValue : Number.MAX_VALUE, - /** - * @cfg {String} minText Error text to display if the minimum value validation fails (defaults to "The minimum value for this field is {minValue}") - */ - minText : "The minimum value for this field is {0}", - /** - * @cfg {String} maxText Error text to display if the maximum value validation fails (defaults to "The maximum value for this field is {maxValue}") - */ - maxText : "The maximum value for this field is {0}", - /** - * @cfg {String} nanText Error text to display if the value is not a valid number. For example, this can happen - * if a valid character like '.' or '-' is left in the field with no number (defaults to "{value} is not a valid number") - */ - nanText : "{0} is not a valid number", - /** - * @cfg {String} thousandsDelimiter Symbol of thousandsDelimiter - */ - thousandsDelimiter : false, - /** - * @cfg {String} valueAlign alignment of value - */ - valueAlign : "left", - - getAutoCreate : function() - { - var hiddenInput = { - tag: 'input', - type: 'hidden', - id: Roo.id(), - cls: 'hidden-number-input' - }; - - if (this.name) { - hiddenInput.name = this.name; - } - - this.name = ''; - - var cfg = Roo.bootstrap.NumberField.superclass.getAutoCreate.call(this); - - this.name = hiddenInput.name; - - if(cfg.cn.length > 0) { - cfg.cn.push(hiddenInput); - } - - return cfg; - }, - - // private - initEvents : function() - { - Roo.bootstrap.NumberField.superclass.initEvents.call(this); - - var allowed = "0123456789"; - - if(this.allowDecimals){ - allowed += this.decimalSeparator; - } - - if(this.allowNegative){ - allowed += "-"; - } - - if(this.thousandsDelimiter) { - allowed += ","; - } - - this.stripCharsRe = new RegExp('[^'+allowed+']', 'gi'); - - var keyPress = function(e){ - - var k = e.getKey(); - - var c = e.getCharCode(); - - if( - (String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-') && - allowed.indexOf(String.fromCharCode(c)) === -1 - ){ - e.stopEvent(); - return; - } - - if(!Roo.isIE && (e.isSpecialKey() || k == e.BACKSPACE || k == e.DELETE)){ - return; - } - - if(allowed.indexOf(String.fromCharCode(c)) === -1){ - e.stopEvent(); - } - }; - - this.el.on("keypress", keyPress, this); - }, - - validateValue : function(value) - { - - if(!Roo.bootstrap.NumberField.superclass.validateValue.call(this, value)){ - return false; - } - - var num = this.parseValue(value); - - if(isNaN(num)){ - this.markInvalid(String.format(this.nanText, value)); - return false; - } - - if(num < this.minValue){ - this.markInvalid(String.format(this.minText, this.minValue)); - return false; - } - - if(num > this.maxValue){ - this.markInvalid(String.format(this.maxText, this.maxValue)); - return false; - } - - return true; - }, - - getValue : function() - { - var v = this.hiddenEl().getValue(); - - return this.fixPrecision(this.parseValue(v)); - }, - - parseValue : function(value) - { - if(this.thousandsDelimiter) { - value += ""; - r = new RegExp(",", "g"); - value = value.replace(r, ""); - } - - value = parseFloat(String(value).replace(this.decimalSeparator, ".")); - return isNaN(value) ? '' : value; - }, - - fixPrecision : function(value) - { - if(this.thousandsDelimiter) { - value += ""; - r = new RegExp(",", "g"); - value = value.replace(r, ""); - } - - var nan = isNaN(value); - - if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){ - return nan ? '' : value; - } - return parseFloat(value).toFixed(this.decimalPrecision); - }, - - setValue : function(v) - { - v = String(this.fixPrecision(v)).replace(".", this.decimalSeparator); - - this.value = v; - - if(this.rendered){ - - this.hiddenEl().dom.value = (v === null || v === undefined ? '' : v); - - this.inputEl().dom.value = (v == '') ? '' : - Roo.util.Format.number(v, this.decimalPrecision, this.thousandsDelimiter || ''); - - if(!this.allowZero && v === '0') { - this.hiddenEl().dom.value = ''; - this.inputEl().dom.value = ''; - } - - this.validate(); - } - }, - - decimalPrecisionFcn : function(v) - { - return Math.floor(v); - }, - - beforeBlur : function() - { - var v = this.parseValue(this.getRawValue()); - - if(v || v === 0 || v === ''){ - this.setValue(v); - } - }, - - hiddenEl : function() - { - return this.el.select('input.hidden-number-input',true).first(); - } - -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_PhoneInput.js.html b/docs/src/Roo_bootstrap_PhoneInput.js.html deleted file mode 100644 index 5b4301a24b..0000000000 --- a/docs/src/Roo_bootstrap_PhoneInput.js.html +++ /dev/null @@ -1,562 +0,0 @@ -Roo/bootstrap/PhoneInput.js/** -* This script refer to: -* Title: International Telephone Input -* Author: Jack O'Connor -* Code version: v12.1.12 -* Availability: https://github.com/jackocnr/intl-tel-input.git -**/ - -/** - * @class Roo.bootstrap.PhoneInput - * @extends Roo.bootstrap.TriggerField - * An input with International dial-code selection - - * @cfg {String} defaultDialCode default '+852' - * @cfg {Array} preferedCountries default [] - - * @constructor - * Create a new PhoneInput. - * @param {Object} config Configuration options - */ - -Roo.bootstrap.PhoneInput = function(config) { - Roo.bootstrap.PhoneInput.superclass.constructor.call(this, config); -}; - -Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { - /** - * @cfg {Roo.data.Store} store [required] The data store to which this combo is bound (defaults to undefined) - */ - listWidth: undefined, - - selectedClass: 'active', - - invalidClass : "has-warning", - - validClass: 'has-success', - - allowed: '0123456789', - - max_length: 15, - - /** - * @cfg {String} defaultDialCode The default dial code when initializing the input - */ - defaultDialCode: '+852', - - /** - * @cfg {Array} preferedCountries A list of iso2 in array (e.g. ['hk','us']). Those related countries will show at the top of the input's choices - */ - preferedCountries: false, - - getAutoCreate : function() - { - var data = Roo.bootstrap.PhoneInputData(); - var align = this.labelAlign || this.parentLabelAlign(); - var id = Roo.id(); - - this.allCountries = []; - this.dialCodeMapping = []; - - for (var i = 0; i < data.length; i++) { - var c = data[i]; - this.allCountries[i] = { - name: c[0], - iso2: c[1], - dialCode: c[2], - priority: c[3] || 0, - areaCodes: c[4] || null - }; - this.dialCodeMapping[c[2]] = { - name: c[0], - iso2: c[1], - priority: c[3] || 0, - areaCodes: c[4] || null - }; - } - - var cfg = { - cls: 'form-group', - cn: [] - }; - - var input = { - tag: 'input', - id : id, - // type: 'number', -- do not use number - we get the flaky up/down arrows. - maxlength: this.max_length, - cls : 'form-control tel-input', - autocomplete: 'new-password' - }; - - var hiddenInput = { - tag: 'input', - type: 'hidden', - cls: 'hidden-tel-input' - }; - - if (this.name) { - hiddenInput.name = this.name; - } - - if (this.disabled) { - input.disabled = true; - } - - var flag_container = { - tag: 'div', - cls: 'flag-box', - cn: [ - { - tag: 'div', - cls: 'flag' - }, - { - tag: 'div', - cls: 'caret' - } - ] - }; - - var box = { - tag: 'div', - cls: this.hasFeedback ? 'has-feedback' : '', - cn: [ - hiddenInput, - input, - { - tag: 'input', - cls: 'dial-code-holder', - disabled: true - } - ] - }; - - var container = { - cls: 'roo-select2-container input-group', - cn: [ - flag_container, - box - ] - }; - - if (this.fieldLabel.length) { - var indicator = { - tag: 'i', - tooltip: 'This field is required' - }; - - var label = { - tag: 'label', - 'for': id, - cls: 'control-label', - cn: [] - }; - - var label_text = { - tag: 'span', - html: this.fieldLabel - }; - - indicator.cls = 'roo-required-indicator text-danger fa fa-lg fa-star left-indicator'; - label.cn = [ - indicator, - label_text - ]; - - if(this.indicatorpos == 'right') { - indicator.cls = 'roo-required-indicator text-danger fa fa-lg fa-star right-indicator'; - label.cn = [ - label_text, - indicator - ]; - } - - if(align == 'left') { - container = { - tag: 'div', - cn: [ - container - ] - }; - - if(this.labelWidth > 12){ - label.style = "width: " + this.labelWidth + 'px'; - } - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - if(this.labellg > 0){ - label.cls += ' col-lg-' + this.labellg; - input.cls += ' col-lg-' + (12 - this.labellg); - } - if(this.labelmd > 0){ - label.cls += ' col-md-' + this.labelmd; - container.cls += ' col-md-' + (12 - this.labelmd); - } - if(this.labelsm > 0){ - label.cls += ' col-sm-' + this.labelsm; - container.cls += ' col-sm-' + (12 - this.labelsm); - } - if(this.labelxs > 0){ - label.cls += ' col-xs-' + this.labelxs; - container.cls += ' col-xs-' + (12 - this.labelxs); - } - } - } - - cfg.cn = [ - label, - container - ]; - - var settings = this; - - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - this.store = new Roo.data.Store({ - proxy : new Roo.data.MemoryProxy({}), - reader : new Roo.data.JsonReader({ - fields : [ - { - 'name' : 'name', - 'type' : 'string' - }, - { - 'name' : 'iso2', - 'type' : 'string' - }, - { - 'name' : 'dialCode', - 'type' : 'string' - }, - { - 'name' : 'priority', - 'type' : 'string' - }, - { - 'name' : 'areaCodes', - 'type' : 'string' - } - ] - }) - }); - - if(!this.preferedCountries) { - this.preferedCountries = [ - 'hk', - 'gb', - 'us' - ]; - } - - var p = this.preferedCountries.reverse(); - - if(p) { - for (var i = 0; i < p.length; i++) { - for (var j = 0; j < this.allCountries.length; j++) { - if(this.allCountries[j].iso2 == p[i]) { - var t = this.allCountries[j]; - this.allCountries.splice(j,1); - this.allCountries.unshift(t); - } - } - } - } - - this.store.proxy.data = { - success: true, - data: this.allCountries - }; - - return cfg; - }, - - initEvents : function() - { - this.createList(); - Roo.bootstrap.PhoneInput.superclass.initEvents.call(this); - - this.indicator = this.indicatorEl(); - this.flag = this.flagEl(); - this.dialCodeHolder = this.dialCodeHolderEl(); - - this.trigger = this.el.select('div.flag-box',true).first(); - this.trigger.on("click", this.onTriggerClick, this, {preventDefault:true}); - - var _this = this; - - (function(){ - var lw = _this.listWidth || Math.max(_this.inputEl().getWidth(), _this.minListWidth); - _this.list.setWidth(lw); - }).defer(100); - - this.list.on('mouseover', this.onViewOver, this); - this.list.on('mousemove', this.onViewMove, this); - this.inputEl().on("keyup", this.onKeyUp, this); - this.inputEl().on("keypress", this.onKeyPress, this); - - this.tpl = '<li><a href="#"><div class="flag {iso2}"></div>{name} <span class="dial-code">+{dialCode}</span></a></li>'; - - this.view = new Roo.View(this.list, this.tpl, { - singleSelect:true, store: this.store, selectedClass: this.selectedClass - }); - - this.view.on('click', this.onViewClick, this); - this.setValue(this.defaultDialCode); - }, - - onTriggerClick : function(e) - { - Roo.log('trigger click'); - if(this.disabled){ - return; - } - - if(this.isExpanded()){ - this.collapse(); - this.hasFocus = false; - }else { - this.store.load({}); - this.hasFocus = true; - this.expand(); - } - }, - - isExpanded : function() - { - return this.list.isVisible(); - }, - - collapse : function() - { - if(!this.isExpanded()){ - return; - } - this.list.hide(); - Roo.get(document).un('mousedown', this.collapseIf, this); - Roo.get(document).un('mousewheel', this.collapseIf, this); - this.fireEvent('collapse', this); - this.validate(); - }, - - expand : function() - { - Roo.log('expand'); - - if(this.isExpanded() || !this.hasFocus){ - return; - } - - var lw = this.listWidth || Math.max(this.inputEl().getWidth(), this.minListWidth); - this.list.setWidth(lw); - - this.list.show(); - this.restrictHeight(); - - Roo.get(document).on('mousedown', this.collapseIf, this); - Roo.get(document).on('mousewheel', this.collapseIf, this); - - this.fireEvent('expand', this); - }, - - restrictHeight : function() - { - this.list.alignTo(this.inputEl(), this.listAlign); - this.list.alignTo(this.inputEl(), this.listAlign); - }, - - onViewOver : function(e, t) - { - if(this.inKeyMode){ - return; - } - var item = this.view.findItemFromChild(t); - - if(item){ - var index = this.view.indexOf(item); - this.select(index, false); - } - }, - - // private - onViewClick : function(view, doFocus, el, e) - { - var index = this.view.getSelectedIndexes()[0]; - - var r = this.store.getAt(index); - - if(r){ - this.onSelect(r, index); - } - if(doFocus !== false && !this.blockFocus){ - this.inputEl().focus(); - } - }, - - onViewMove : function(e, t) - { - this.inKeyMode = false; - }, - - select : function(index, scrollIntoView) - { - this.selectedIndex = index; - this.view.select(index); - if(scrollIntoView !== false){ - var el = this.view.getNode(index); - if(el){ - this.list.scrollChildIntoView(el, false); - } - } - }, - - createList : function() - { - this.list = Roo.get(document.body).createChild({ - tag: 'ul', - cls: 'typeahead typeahead-long dropdown-menu tel-list', - style: 'display:none' - }); - - this.list.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - }, - - collapseIf : function(e) - { - var in_combo = e.within(this.el); - var in_list = e.within(this.list); - var is_list = (Roo.get(e.getTarget()).id == this.list.id) ? true : false; - - if (in_combo || in_list || is_list) { - return; - } - this.collapse(); - }, - - onSelect : function(record, index) - { - if(this.fireEvent('beforeselect', this, record, index) !== false){ - - this.setFlagClass(record.data.iso2); - this.setDialCode(record.data.dialCode); - this.hasFocus = false; - this.collapse(); - this.fireEvent('select', this, record, index); - } - }, - - flagEl : function() - { - var flag = this.el.select('div.flag',true).first(); - if(!flag){ - return false; - } - return flag; - }, - - dialCodeHolderEl : function() - { - var d = this.el.select('input.dial-code-holder',true).first(); - if(!d){ - return false; - } - return d; - }, - - setDialCode : function(v) - { - this.dialCodeHolder.dom.value = '+'+v; - }, - - setFlagClass : function(n) - { - this.flag.dom.className = 'flag '+n; - }, - - getValue : function() - { - var v = this.inputEl().getValue(); - if(this.dialCodeHolder) { - v = this.dialCodeHolder.dom.value+this.inputEl().getValue(); - } - return v; - }, - - setValue : function(v) - { - var d = this.getDialCode(v); - - //invalid dial code - if(v.length == 0 || !d || d.length == 0) { - if(this.rendered){ - this.inputEl().dom.value = (v === null || v === undefined ? '' : v); - this.hiddenEl().dom.value = (v === null || v === undefined ? '' : v); - } - return; - } - - //valid dial code - this.setFlagClass(this.dialCodeMapping[d].iso2); - this.setDialCode(d); - this.inputEl().dom.value = v.replace('+'+d,''); - this.hiddenEl().dom.value = this.getValue(); - - this.validate(); - }, - - getDialCode : function(v) - { - v = v || ''; - - if (v.length == 0) { - return this.dialCodeHolder.dom.value; - } - - var dialCode = ""; - if (v.charAt(0) != "+") { - return false; - } - var numericChars = ""; - for (var i = 1; i < v.length; i++) { - var c = v.charAt(i); - if (!isNaN(c)) { - numericChars += c; - if (this.dialCodeMapping[numericChars]) { - dialCode = v.substr(1, i); - } - if (numericChars.length == 4) { - break; - } - } - } - return dialCode; - }, - - reset : function() - { - this.setValue(this.defaultDialCode); - this.validate(); - }, - - hiddenEl : function() - { - return this.el.select('input.hidden-tel-input',true).first(); - }, - - // after setting val - onKeyUp : function(e){ - this.setValue(this.getValue()); - }, - - onKeyPress : function(e){ - if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ - e.stopEvent(); - } - } - -}); \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_PhoneInputData.js.html b/docs/src/Roo_bootstrap_PhoneInputData.js.html deleted file mode 100644 index 5981d6291c..0000000000 --- a/docs/src/Roo_bootstrap_PhoneInputData.js.html +++ /dev/null @@ -1,1260 +0,0 @@ -Roo/bootstrap/PhoneInputData.js/** -* This script refer to: -* Title: International Telephone Input -* Author: Jack O'Connor -* Code version: v12.1.12 -* Availability: https://github.com/jackocnr/intl-tel-input.git -**/ - -Roo.bootstrap.PhoneInputData = function() { - var d = [ - [ - "Afghanistan (‫افغانستان‬‎)", - "af", - "93" - ], - [ - "Albania (Shqipëri)", - "al", - "355" - ], - [ - "Algeria (‫الجزائر‬‎)", - "dz", - "213" - ], - [ - "American Samoa", - "as", - "1684" - ], - [ - "Andorra", - "ad", - "376" - ], - [ - "Angola", - "ao", - "244" - ], - [ - "Anguilla", - "ai", - "1264" - ], - [ - "Antigua and Barbuda", - "ag", - "1268" - ], - [ - "Argentina", - "ar", - "54" - ], - [ - "Armenia (Հայաստան)", - "am", - "374" - ], - [ - "Aruba", - "aw", - "297" - ], - [ - "Australia", - "au", - "61", - 0 - ], - [ - "Austria (Österreich)", - "at", - "43" - ], - [ - "Azerbaijan (Azərbaycan)", - "az", - "994" - ], - [ - "Bahamas", - "bs", - "1242" - ], - [ - "Bahrain (‫البحرين‬‎)", - "bh", - "973" - ], - [ - "Bangladesh (বাংলাদেশ)", - "bd", - "880" - ], - [ - "Barbados", - "bb", - "1246" - ], - [ - "Belarus (Беларусь)", - "by", - "375" - ], - [ - "Belgium (België)", - "be", - "32" - ], - [ - "Belize", - "bz", - "501" - ], - [ - "Benin (Bénin)", - "bj", - "229" - ], - [ - "Bermuda", - "bm", - "1441" - ], - [ - "Bhutan (འབྲུག)", - "bt", - "975" - ], - [ - "Bolivia", - "bo", - "591" - ], - [ - "Bosnia and Herzegovina (Босна и Херцеговина)", - "ba", - "387" - ], - [ - "Botswana", - "bw", - "267" - ], - [ - "Brazil (Brasil)", - "br", - "55" - ], - [ - "British Indian Ocean Territory", - "io", - "246" - ], - [ - "British Virgin Islands", - "vg", - "1284" - ], - [ - "Brunei", - "bn", - "673" - ], - [ - "Bulgaria (България)", - "bg", - "359" - ], - [ - "Burkina Faso", - "bf", - "226" - ], - [ - "Burundi (Uburundi)", - "bi", - "257" - ], - [ - "Cambodia (កម្ពុជា)", - "kh", - "855" - ], - [ - "Cameroon (Cameroun)", - "cm", - "237" - ], - [ - "Canada", - "ca", - "1", - 1, - ["204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905"] - ], - [ - "Cape Verde (Kabu Verdi)", - "cv", - "238" - ], - [ - "Caribbean Netherlands", - "bq", - "599", - 1 - ], - [ - "Cayman Islands", - "ky", - "1345" - ], - [ - "Central African Republic (République centrafricaine)", - "cf", - "236" - ], - [ - "Chad (Tchad)", - "td", - "235" - ], - [ - "Chile", - "cl", - "56" - ], - [ - "China (中国)", - "cn", - "86" - ], - [ - "Christmas Island", - "cx", - "61", - 2 - ], - [ - "Cocos (Keeling) Islands", - "cc", - "61", - 1 - ], - [ - "Colombia", - "co", - "57" - ], - [ - "Comoros (‫جزر القمر‬‎)", - "km", - "269" - ], - [ - "Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)", - "cd", - "243" - ], - [ - "Congo (Republic) (Congo-Brazzaville)", - "cg", - "242" - ], - [ - "Cook Islands", - "ck", - "682" - ], - [ - "Costa Rica", - "cr", - "506" - ], - [ - "Côte d’Ivoire", - "ci", - "225" - ], - [ - "Croatia (Hrvatska)", - "hr", - "385" - ], - [ - "Cuba", - "cu", - "53" - ], - [ - "Curaçao", - "cw", - "599", - 0 - ], - [ - "Cyprus (Κύπρος)", - "cy", - "357" - ], - [ - "Czech Republic (Česká republika)", - "cz", - "420" - ], - [ - "Denmark (Danmark)", - "dk", - "45" - ], - [ - "Djibouti", - "dj", - "253" - ], - [ - "Dominica", - "dm", - "1767" - ], - [ - "Dominican Republic (República Dominicana)", - "do", - "1", - 2, - ["809", "829", "849"] - ], - [ - "Ecuador", - "ec", - "593" - ], - [ - "Egypt (‫مصر‬‎)", - "eg", - "20" - ], - [ - "El Salvador", - "sv", - "503" - ], - [ - "Equatorial Guinea (Guinea Ecuatorial)", - "gq", - "240" - ], - [ - "Eritrea", - "er", - "291" - ], - [ - "Estonia (Eesti)", - "ee", - "372" - ], - [ - "Ethiopia", - "et", - "251" - ], - [ - "Falkland Islands (Islas Malvinas)", - "fk", - "500" - ], - [ - "Faroe Islands (Føroyar)", - "fo", - "298" - ], - [ - "Fiji", - "fj", - "679" - ], - [ - "Finland (Suomi)", - "fi", - "358", - 0 - ], - [ - "France", - "fr", - "33" - ], - [ - "French Guiana (Guyane française)", - "gf", - "594" - ], - [ - "French Polynesia (Polynésie française)", - "pf", - "689" - ], - [ - "Gabon", - "ga", - "241" - ], - [ - "Gambia", - "gm", - "220" - ], - [ - "Georgia (საქართველო)", - "ge", - "995" - ], - [ - "Germany (Deutschland)", - "de", - "49" - ], - [ - "Ghana (Gaana)", - "gh", - "233" - ], - [ - "Gibraltar", - "gi", - "350" - ], - [ - "Greece (Ελλάδα)", - "gr", - "30" - ], - [ - "Greenland (Kalaallit Nunaat)", - "gl", - "299" - ], - [ - "Grenada", - "gd", - "1473" - ], - [ - "Guadeloupe", - "gp", - "590", - 0 - ], - [ - "Guam", - "gu", - "1671" - ], - [ - "Guatemala", - "gt", - "502" - ], - [ - "Guernsey", - "gg", - "44", - 1 - ], - [ - "Guinea (Guinée)", - "gn", - "224" - ], - [ - "Guinea-Bissau (Guiné Bissau)", - "gw", - "245" - ], - [ - "Guyana", - "gy", - "592" - ], - [ - "Haiti", - "ht", - "509" - ], - [ - "Honduras", - "hn", - "504" - ], - [ - "Hong Kong (香港)", - "hk", - "852" - ], - [ - "Hungary (Magyarország)", - "hu", - "36" - ], - [ - "Iceland (Ísland)", - "is", - "354" - ], - [ - "India (भारत)", - "in", - "91" - ], - [ - "Indonesia", - "id", - "62" - ], - [ - "Iran (‫ایران‬‎)", - "ir", - "98" - ], - [ - "Iraq (‫العراق‬‎)", - "iq", - "964" - ], - [ - "Ireland", - "ie", - "353" - ], - [ - "Isle of Man", - "im", - "44", - 2 - ], - [ - "Israel (‫ישראל‬‎)", - "il", - "972" - ], - [ - "Italy (Italia)", - "it", - "39", - 0 - ], - [ - "Jamaica", - "jm", - "1876" - ], - [ - "Japan (日本)", - "jp", - "81" - ], - [ - "Jersey", - "je", - "44", - 3 - ], - [ - "Jordan (‫الأردن‬‎)", - "jo", - "962" - ], - [ - "Kazakhstan (Казахстан)", - "kz", - "7", - 1 - ], - [ - "Kenya", - "ke", - "254" - ], - [ - "Kiribati", - "ki", - "686" - ], - [ - "Kosovo", - "xk", - "383" - ], - [ - "Kuwait (‫الكويت‬‎)", - "kw", - "965" - ], - [ - "Kyrgyzstan (Кыргызстан)", - "kg", - "996" - ], - [ - "Laos (ລາວ)", - "la", - "856" - ], - [ - "Latvia (Latvija)", - "lv", - "371" - ], - [ - "Lebanon (‫لبنان‬‎)", - "lb", - "961" - ], - [ - "Lesotho", - "ls", - "266" - ], - [ - "Liberia", - "lr", - "231" - ], - [ - "Libya (‫ليبيا‬‎)", - "ly", - "218" - ], - [ - "Liechtenstein", - "li", - "423" - ], - [ - "Lithuania (Lietuva)", - "lt", - "370" - ], - [ - "Luxembourg", - "lu", - "352" - ], - [ - "Macau (澳門)", - "mo", - "853" - ], - [ - "Macedonia (FYROM) (Македонија)", - "mk", - "389" - ], - [ - "Madagascar (Madagasikara)", - "mg", - "261" - ], - [ - "Malawi", - "mw", - "265" - ], - [ - "Malaysia", - "my", - "60" - ], - [ - "Maldives", - "mv", - "960" - ], - [ - "Mali", - "ml", - "223" - ], - [ - "Malta", - "mt", - "356" - ], - [ - "Marshall Islands", - "mh", - "692" - ], - [ - "Martinique", - "mq", - "596" - ], - [ - "Mauritania (‫موريتانيا‬‎)", - "mr", - "222" - ], - [ - "Mauritius (Moris)", - "mu", - "230" - ], - [ - "Mayotte", - "yt", - "262", - 1 - ], - [ - "Mexico (México)", - "mx", - "52" - ], - [ - "Micronesia", - "fm", - "691" - ], - [ - "Moldova (Republica Moldova)", - "md", - "373" - ], - [ - "Monaco", - "mc", - "377" - ], - [ - "Mongolia (Монгол)", - "mn", - "976" - ], - [ - "Montenegro (Crna Gora)", - "me", - "382" - ], - [ - "Montserrat", - "ms", - "1664" - ], - [ - "Morocco (‫المغرب‬‎)", - "ma", - "212", - 0 - ], - [ - "Mozambique (Moçambique)", - "mz", - "258" - ], - [ - "Myanmar (Burma) (မြန်မာ)", - "mm", - "95" - ], - [ - "Namibia (Namibië)", - "na", - "264" - ], - [ - "Nauru", - "nr", - "674" - ], - [ - "Nepal (नेपाल)", - "np", - "977" - ], - [ - "Netherlands (Nederland)", - "nl", - "31" - ], - [ - "New Caledonia (Nouvelle-Calédonie)", - "nc", - "687" - ], - [ - "New Zealand", - "nz", - "64" - ], - [ - "Nicaragua", - "ni", - "505" - ], - [ - "Niger (Nijar)", - "ne", - "227" - ], - [ - "Nigeria", - "ng", - "234" - ], - [ - "Niue", - "nu", - "683" - ], - [ - "Norfolk Island", - "nf", - "672" - ], - [ - "North Korea (조선 민주주의 인민 공화국)", - "kp", - "850" - ], - [ - "Northern Mariana Islands", - "mp", - "1670" - ], - [ - "Norway (Norge)", - "no", - "47", - 0 - ], - [ - "Oman (‫عُمان‬‎)", - "om", - "968" - ], - [ - "Pakistan (‫پاکستان‬‎)", - "pk", - "92" - ], - [ - "Palau", - "pw", - "680" - ], - [ - "Palestine (‫فلسطين‬‎)", - "ps", - "970" - ], - [ - "Panama (Panamá)", - "pa", - "507" - ], - [ - "Papua New Guinea", - "pg", - "675" - ], - [ - "Paraguay", - "py", - "595" - ], - [ - "Peru (Perú)", - "pe", - "51" - ], - [ - "Philippines", - "ph", - "63" - ], - [ - "Poland (Polska)", - "pl", - "48" - ], - [ - "Portugal", - "pt", - "351" - ], - [ - "Puerto Rico", - "pr", - "1", - 3, - ["787", "939"] - ], - [ - "Qatar (‫قطر‬‎)", - "qa", - "974" - ], - [ - "Réunion (La Réunion)", - "re", - "262", - 0 - ], - [ - "Romania (România)", - "ro", - "40" - ], - [ - "Russia (Россия)", - "ru", - "7", - 0 - ], - [ - "Rwanda", - "rw", - "250" - ], - [ - "Saint Barthélemy", - "bl", - "590", - 1 - ], - [ - "Saint Helena", - "sh", - "290" - ], - [ - "Saint Kitts and Nevis", - "kn", - "1869" - ], - [ - "Saint Lucia", - "lc", - "1758" - ], - [ - "Saint Martin (Saint-Martin (partie française))", - "mf", - "590", - 2 - ], - [ - "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)", - "pm", - "508" - ], - [ - "Saint Vincent and the Grenadines", - "vc", - "1784" - ], - [ - "Samoa", - "ws", - "685" - ], - [ - "San Marino", - "sm", - "378" - ], - [ - "São Tomé and Príncipe (São Tomé e Príncipe)", - "st", - "239" - ], - [ - "Saudi Arabia (‫المملكة العربية السعودية‬‎)", - "sa", - "966" - ], - [ - "Senegal (Sénégal)", - "sn", - "221" - ], - [ - "Serbia (Србија)", - "rs", - "381" - ], - [ - "Seychelles", - "sc", - "248" - ], - [ - "Sierra Leone", - "sl", - "232" - ], - [ - "Singapore", - "sg", - "65" - ], - [ - "Sint Maarten", - "sx", - "1721" - ], - [ - "Slovakia (Slovensko)", - "sk", - "421" - ], - [ - "Slovenia (Slovenija)", - "si", - "386" - ], - [ - "Solomon Islands", - "sb", - "677" - ], - [ - "Somalia (Soomaaliya)", - "so", - "252" - ], - [ - "South Africa", - "za", - "27" - ], - [ - "South Korea (대한민국)", - "kr", - "82" - ], - [ - "South Sudan (‫جنوب السودان‬‎)", - "ss", - "211" - ], - [ - "Spain (España)", - "es", - "34" - ], - [ - "Sri Lanka (ශ්‍රී ලංකාව)", - "lk", - "94" - ], - [ - "Sudan (‫السودان‬‎)", - "sd", - "249" - ], - [ - "Suriname", - "sr", - "597" - ], - [ - "Svalbard and Jan Mayen", - "sj", - "47", - 1 - ], - [ - "Swaziland", - "sz", - "268" - ], - [ - "Sweden (Sverige)", - "se", - "46" - ], - [ - "Switzerland (Schweiz)", - "ch", - "41" - ], - [ - "Syria (‫سوريا‬‎)", - "sy", - "963" - ], - [ - "Taiwan (台灣)", - "tw", - "886" - ], - [ - "Tajikistan", - "tj", - "992" - ], - [ - "Tanzania", - "tz", - "255" - ], - [ - "Thailand (ไทย)", - "th", - "66" - ], - [ - "Timor-Leste", - "tl", - "670" - ], - [ - "Togo", - "tg", - "228" - ], - [ - "Tokelau", - "tk", - "690" - ], - [ - "Tonga", - "to", - "676" - ], - [ - "Trinidad and Tobago", - "tt", - "1868" - ], - [ - "Tunisia (‫تونس‬‎)", - "tn", - "216" - ], - [ - "Turkey (Türkiye)", - "tr", - "90" - ], - [ - "Turkmenistan", - "tm", - "993" - ], - [ - "Turks and Caicos Islands", - "tc", - "1649" - ], - [ - "Tuvalu", - "tv", - "688" - ], - [ - "U.S. Virgin Islands", - "vi", - "1340" - ], - [ - "Uganda", - "ug", - "256" - ], - [ - "Ukraine (Україна)", - "ua", - "380" - ], - [ - "United Arab Emirates (‫الإمارات العربية المتحدة‬‎)", - "ae", - "971" - ], - [ - "United Kingdom", - "gb", - "44", - 0 - ], - [ - "United States", - "us", - "1", - 0 - ], - [ - "Uruguay", - "uy", - "598" - ], - [ - "Uzbekistan (Oʻzbekiston)", - "uz", - "998" - ], - [ - "Vanuatu", - "vu", - "678" - ], - [ - "Vatican City (Città del Vaticano)", - "va", - "39", - 1 - ], - [ - "Venezuela", - "ve", - "58" - ], - [ - "Vietnam (Việt Nam)", - "vn", - "84" - ], - [ - "Wallis and Futuna (Wallis-et-Futuna)", - "wf", - "681" - ], - [ - "Western Sahara (‫الصحراء الغربية‬‎)", - "eh", - "212", - 1 - ], - [ - "Yemen (‫اليمن‬‎)", - "ye", - "967" - ], - [ - "Zambia", - "zm", - "260" - ], - [ - "Zimbabwe", - "zw", - "263" - ], - [ - "Åland Islands", - "ax", - "358", - 1 - ] - ]; - - return d; -} \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Radio.js.html b/docs/src/Roo_bootstrap_Radio.js.html deleted file mode 100644 index a18871e299..0000000000 --- a/docs/src/Roo_bootstrap_Radio.js.html +++ /dev/null @@ -1,80 +0,0 @@ -Roo/bootstrap/Radio.js/* - * - LGPL - * - * RadioItem - * - */ - -/** - * @class Roo.bootstrap.Radio - * @extends Roo.bootstrap.Component - * Bootstrap Radio class - * @cfg {String} boxLabel - the label associated - * @cfg {String} value - the value of radio - * - * @constructor - * Create a new Radio - * @param {Object} config The config object - */ -Roo.bootstrap.Radio = function(config){ - Roo.bootstrap.Radio.superclass.constructor.call(this, config); - -}; - -Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, { - - boxLabel : '', - - value : '', - - getAutoCreate : function() - { - var cfg = { - tag : 'div', - cls : 'form-group radio', - cn : [ - { - tag : 'label', - cls : 'box-label', - html : this.boxLabel - } - ] - }; - - return cfg; - }, - - initEvents : function() - { - this.parent().register(this); - - this.el.on('click', this.onClick, this); - - }, - - onClick : function(e) - { - if(this.parent().fireEvent('click', this.parent(), this, e) !== false){ - this.setChecked(true); - } - }, - - setChecked : function(state, suppressEvent) - { - this.parent().setValue(this.value, suppressEvent); - - }, - - setBoxLabel : function(v) - { - this.boxLabel = v; - - if(this.rendered){ - this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v); - } - } - -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_RadioSet.js.html b/docs/src/Roo_bootstrap_RadioSet.js.html deleted file mode 100644 index fadc73bd34..0000000000 --- a/docs/src/Roo_bootstrap_RadioSet.js.html +++ /dev/null @@ -1,345 +0,0 @@ -Roo/bootstrap/RadioSet.js/* - * - LGPL - * - * RadioSet - * - * - */ - -/** - * @class Roo.bootstrap.RadioSet - * @extends Roo.bootstrap.Input - * @children Roo.bootstrap.Radio - * Bootstrap RadioSet class - * @cfg {String} indicatorpos (left|right) default left - * @cfg {Boolean} inline (true|false) inline the element (default true) - * @cfg {String} weight (primary|warning|info|danger|success) The text that appears beside the radio - * @constructor - * Create a new RadioSet - * @param {Object} config The config object - */ - -Roo.bootstrap.RadioSet = function(config){ - - Roo.bootstrap.RadioSet.superclass.constructor.call(this, config); - - this.radioes = []; - - Roo.bootstrap.RadioSet.register(this); - - this.addEvents({ - /** - * @event check - * Fires when the element is checked or unchecked. - * @param {Roo.bootstrap.RadioSet} this This radio - * @param {Roo.bootstrap.Radio} item The checked item - */ - check : true, - /** - * @event click - * Fires when the element is click. - * @param {Roo.bootstrap.RadioSet} this This radio set - * @param {Roo.bootstrap.Radio} item The checked item - * @param {Roo.EventObject} e The event object - */ - click : true - }); - -}; - -Roo.extend(Roo.bootstrap.RadioSet, Roo.bootstrap.Input, { - - radioes : false, - - inline : true, - - weight : '', - - indicatorpos : 'left', - - getAutoCreate : function() - { - var label = { - tag : 'label', - cls : 'roo-radio-set-label', - cn : [ - { - tag : 'span', - html : this.fieldLabel - } - ] - }; - if (Roo.bootstrap.version == 3) { - - - if(this.indicatorpos == 'left'){ - label.cn.unshift({ - tag : 'i', - cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required' - }); - } else { - label.cn.push({ - tag : 'i', - cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required' - }); - } - } - var items = { - tag : 'div', - cls : 'roo-radio-set-items' - }; - - var align = (!this.labelAlign) ? this.parentLabelAlign() : this.labelAlign; - - if (align === 'left' && this.fieldLabel.length) { - - items = { - cls : "roo-radio-set-right", - cn: [ - items - ] - }; - - if(this.labelWidth > 12){ - label.style = "width: " + this.labelWidth + 'px'; - } - - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - - if(this.labellg > 0){ - label.cls += ' col-lg-' + this.labellg; - items.cls += ' col-lg-' + (12 - this.labellg); - } - - if(this.labelmd > 0){ - label.cls += ' col-md-' + this.labelmd; - items.cls += ' col-md-' + (12 - this.labelmd); - } - - if(this.labelsm > 0){ - label.cls += ' col-sm-' + this.labelsm; - items.cls += ' col-sm-' + (12 - this.labelsm); - } - - if(this.labelxs > 0){ - label.cls += ' col-xs-' + this.labelxs; - items.cls += ' col-xs-' + (12 - this.labelxs); - } - } - - var cfg = { - tag : 'div', - cls : 'roo-radio-set', - cn : [ - { - tag : 'input', - cls : 'roo-radio-set-input', - type : 'hidden', - name : this.name, - value : this.value ? this.value : '' - }, - label, - items - ] - }; - - if(this.weight.length){ - cfg.cls += ' roo-radio-' + this.weight; - } - - if(this.inline) { - cfg.cls += ' roo-radio-set-inline'; - } - - var settings=this; - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - return cfg; - - }, - - initEvents : function() - { - this.labelEl = this.el.select('.roo-radio-set-label', true).first(); - this.labelEl.setVisibilityMode(Roo.Element.DISPLAY); - - if(!this.fieldLabel.length){ - this.labelEl.hide(); - } - - this.itemsEl = this.el.select('.roo-radio-set-items', true).first(); - this.itemsEl.setVisibilityMode(Roo.Element.DISPLAY); - - this.indicator = this.indicatorEl(); - - if(this.indicator){ - this.indicator.addClass('invisible'); - } - - this.originalValue = this.getValue(); - - }, - - inputEl: function () - { - return this.el.select('.roo-radio-set-input', true).first(); - }, - - getChildContainer : function() - { - return this.itemsEl; - }, - - register : function(item) - { - this.radioes.push(item); - - }, - - validate : function() - { - if(this.getVisibilityEl().hasClass('hidden')){ - return true; - } - - var valid = false; - - Roo.each(this.radioes, function(i){ - if(!i.checked){ - return; - } - - valid = true; - return false; - }); - - if(this.allowBlank) { - return true; - } - - if(this.disabled || valid){ - this.markValid(); - return true; - } - - this.markInvalid(); - return false; - - }, - - markValid : function() - { - if(this.labelEl.isVisible(true) && this.indicatorEl()){ - this.indicatorEl().removeClass('visible'); - this.indicatorEl().addClass('invisible'); - } - - - if (Roo.bootstrap.version == 3) { - this.el.removeClass([this.invalidClass, this.validClass]); - this.el.addClass(this.validClass); - } else { - this.el.removeClass(['is-invalid','is-valid']); - this.el.addClass(['is-valid']); - } - this.fireEvent('valid', this); - }, - - markInvalid : function(msg) - { - if(this.allowBlank || this.disabled){ - return; - } - - if(this.labelEl.isVisible(true) && this.indicatorEl()){ - this.indicatorEl().removeClass('invisible'); - this.indicatorEl().addClass('visible'); - } - if (Roo.bootstrap.version == 3) { - this.el.removeClass([this.invalidClass, this.validClass]); - this.el.addClass(this.invalidClass); - } else { - this.el.removeClass(['is-invalid','is-valid']); - this.el.addClass(['is-invalid']); - } - - this.fireEvent('invalid', this, msg); - - }, - - setValue : function(v, suppressEvent) - { - if(this.value === v){ - return; - } - - this.value = v; - - if(this.rendered){ - this.inputEl().dom.value = (v === null || v === undefined ? '' : v); - } - - Roo.each(this.radioes, function(i){ - i.checked = false; - i.el.removeClass('checked'); - }); - - Roo.each(this.radioes, function(i){ - - if(i.value === v || i.value.toString() === v.toString()){ - i.checked = true; - i.el.addClass('checked'); - - if(suppressEvent !== true){ - this.fireEvent('check', this, i); - } - - return false; - } - - }, this); - - this.validate(); - }, - - clearInvalid : function(){ - - if(!this.el || this.preventMark){ - return; - } - - this.el.removeClass([this.invalidClass]); - - this.fireEvent('valid', this); - } - -}); - -Roo.apply(Roo.bootstrap.RadioSet, { - - groups: {}, - - register : function(set) - { - this.groups[set.name] = set; - }, - - get: function(name) - { - if (typeof(this.groups[name]) == 'undefined') { - return false; - } - - return this.groups[name] ; - } - -}); - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_SecurePass.js.html b/docs/src/Roo_bootstrap_SecurePass.js.html deleted file mode 100644 index 6406cd5af0..0000000000 --- a/docs/src/Roo_bootstrap_SecurePass.js.html +++ /dev/null @@ -1,354 +0,0 @@ -Roo/bootstrap/SecurePass.js/* - * - LGPL - * - * Input - * - */ - -/** - * @class Roo.bootstrap.SecurePass - * @extends Roo.bootstrap.Input - * Bootstrap SecurePass class - * - * - * @constructor - * Create a new SecurePass - * @param {Object} config The config object - */ - -Roo.bootstrap.SecurePass = function (config) { - // these go here, so the translation tool can replace them.. - this.errors = { - PwdEmpty: "Please type a password, and then retype it to confirm.", - PwdShort: "Your password must be at least 6 characters long. Please type a different password.", - PwdLong: "Your password can't contain more than 16 characters. Please type a different password.", - PwdBadChar: "The password contains characters that aren't allowed. Please type a different password.", - IDInPwd: "Your password can't include the part of your ID. Please type a different password.", - FNInPwd: "Your password can't contain your first name. Please type a different password.", - LNInPwd: "Your password can't contain your last name. Please type a different password.", - TooWeak: "Your password is Too Weak." - }, - this.meterLabel = "Password strength:"; - this.pwdStrengths = ["Too Weak", "Weak", "Medium", "Strong"]; - this.meterClass = [ - "roo-password-meter-tooweak", - "roo-password-meter-weak", - "roo-password-meter-medium", - "roo-password-meter-strong", - "roo-password-meter-grey" - ]; - - this.errors = {}; - - Roo.bootstrap.SecurePass.superclass.constructor.call(this, config); -} - -Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { - /** - * @cfg {String/Object} errors A Error spec, or true for a default spec (defaults to - * { - * PwdEmpty: "Please type a password, and then retype it to confirm.", - * PwdShort: "Your password must be at least 6 characters long. Please type a different password.", - * PwdLong: "Your password can't contain more than 16 characters. Please type a different password.", - * PwdBadChar: "The password contains characters that aren't allowed. Please type a different password.", - * IDInPwd: "Your password can't include the part of your ID. Please type a different password.", - * FNInPwd: "Your password can't contain your first name. Please type a different password.", - * LNInPwd: "Your password can't contain your last name. Please type a different password." - * }) - */ - // private - - meterWidth: 300, - errorMsg :'', - errors: false, - imageRoot: '/', - /** - * @cfg {String/Object} Label for the strength meter (defaults to - * 'Password strength:') - */ - // private - meterLabel: '', - /** - * @cfg {String/Object} pwdStrengths A pwdStrengths spec, or true for a default spec (defaults to - * ['Weak', 'Medium', 'Strong']) - */ - // private - pwdStrengths: false, - // private - strength: 0, - // private - _lastPwd: null, - // private - kCapitalLetter: 0, - kSmallLetter: 1, - kDigit: 2, - kPunctuation: 3, - - insecure: false, - // private - initEvents: function () - { - Roo.bootstrap.SecurePass.superclass.initEvents.call(this); - - if (this.el.is('input[type=password]') && Roo.isSafari) { - this.el.on('keydown', this.SafariOnKeyDown, this); - } - - this.el.on('keyup', this.checkStrength, this, {buffer: 50}); - }, - // private - onRender: function (ct, position) - { - Roo.bootstrap.SecurePass.superclass.onRender.call(this, ct, position); - this.wrap = this.el.wrap({cls: 'x-form-field-wrap'}); - this.trigger = this.wrap.createChild({tag: 'div', cls: 'StrengthMeter ' + this.triggerClass}); - - this.trigger.createChild({ - cn: [ - { - //id: 'PwdMeter', - tag: 'div', - cls: 'roo-password-meter-grey col-xs-12', - style: { - //width: 0, - //width: this.meterWidth + 'px' - } - }, - { - cls: 'roo-password-meter-text' - } - ] - }); - - - if (this.hideTrigger) { - this.trigger.setDisplayed(false); - } - this.setSize(this.width || '', this.height || ''); - }, - // private - onDestroy: function () - { - if (this.trigger) { - this.trigger.removeAllListeners(); - this.trigger.remove(); - } - if (this.wrap) { - this.wrap.remove(); - } - Roo.bootstrap.TriggerField.superclass.onDestroy.call(this); - }, - // private - checkStrength: function () - { - var pwd = this.inputEl().getValue(); - if (pwd == this._lastPwd) { - return; - } - - var strength; - if (this.ClientSideStrongPassword(pwd)) { - strength = 3; - } else if (this.ClientSideMediumPassword(pwd)) { - strength = 2; - } else if (this.ClientSideWeakPassword(pwd)) { - strength = 1; - } else { - strength = 0; - } - - Roo.log('strength1: ' + strength); - - //var pm = this.trigger.child('div/div/div').dom; - var pm = this.trigger.child('div/div'); - pm.removeClass(this.meterClass); - pm.addClass(this.meterClass[strength]); - - - var pt = this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom; - - pt.innerHTML = this.meterLabel + '&nbsp;' + this.pwdStrengths[strength]; - - this._lastPwd = pwd; - }, - reset: function () - { - Roo.bootstrap.SecurePass.superclass.reset.call(this); - - this._lastPwd = ''; - - var pm = this.trigger.child('div/div'); - pm.removeClass(this.meterClass); - pm.addClass('roo-password-meter-grey'); - - - var pt = this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom; - - pt.innerHTML = ''; - this.inputEl().dom.type='password'; - }, - // private - validateValue: function (value) - { - if (!Roo.bootstrap.SecurePass.superclass.validateValue.call(this, value)) { - return false; - } - if (value.length == 0) { - if (this.allowBlank) { - this.clearInvalid(); - return true; - } - - this.markInvalid(this.errors.PwdEmpty); - this.errorMsg = this.errors.PwdEmpty; - return false; - } - - if(this.insecure){ - return true; - } - - if (!value.match(/[\x21-\x7e]+/)) { - this.markInvalid(this.errors.PwdBadChar); - this.errorMsg = this.errors.PwdBadChar; - return false; - } - if (value.length < 6) { - this.markInvalid(this.errors.PwdShort); - this.errorMsg = this.errors.PwdShort; - return false; - } - if (value.length > 16) { - this.markInvalid(this.errors.PwdLong); - this.errorMsg = this.errors.PwdLong; - return false; - } - var strength; - if (this.ClientSideStrongPassword(value)) { - strength = 3; - } else if (this.ClientSideMediumPassword(value)) { - strength = 2; - } else if (this.ClientSideWeakPassword(value)) { - strength = 1; - } else { - strength = 0; - } - - - if (strength < 2) { - //this.markInvalid(this.errors.TooWeak); - this.errorMsg = this.errors.TooWeak; - //return false; - } - - - console.log('strength2: ' + strength); - - //var pm = this.trigger.child('div/div/div').dom; - - var pm = this.trigger.child('div/div'); - pm.removeClass(this.meterClass); - pm.addClass(this.meterClass[strength]); - - var pt = this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom; - - pt.innerHTML = this.meterLabel + '&nbsp;' + this.pwdStrengths[strength]; - - this.errorMsg = ''; - return true; - }, - // private - CharacterSetChecks: function (type) - { - this.type = type; - this.fResult = false; - }, - // private - isctype: function (character, type) - { - switch (type) { - case this.kCapitalLetter: - if (character >= 'A' && character <= 'Z') { - return true; - } - break; - - case this.kSmallLetter: - if (character >= 'a' && character <= 'z') { - return true; - } - break; - - case this.kDigit: - if (character >= '0' && character <= '9') { - return true; - } - break; - - case this.kPunctuation: - if ('!@#$%^&*()_+-=\'";:[{]}|.>,</?`~'.indexOf(character) >= 0) { - return true; - } - break; - - default: - return false; - } - - }, - // private - IsLongEnough: function (pwd, size) - { - return !(pwd == null || isNaN(size) || pwd.length < size); - }, - // private - SpansEnoughCharacterSets: function (word, nb) - { - if (!this.IsLongEnough(word, nb)) - { - return false; - } - - var characterSetChecks = new Array( - new this.CharacterSetChecks(this.kCapitalLetter), new this.CharacterSetChecks(this.kSmallLetter), - new this.CharacterSetChecks(this.kDigit), new this.CharacterSetChecks(this.kPunctuation) - ); - - for (var index = 0; index < word.length; ++index) { - for (var nCharSet = 0; nCharSet < characterSetChecks.length; ++nCharSet) { - if (!characterSetChecks[nCharSet].fResult && this.isctype(word.charAt(index), characterSetChecks[nCharSet].type)) { - characterSetChecks[nCharSet].fResult = true; - break; - } - } - } - - var nCharSets = 0; - for (var nCharSet = 0; nCharSet < characterSetChecks.length; ++nCharSet) { - if (characterSetChecks[nCharSet].fResult) { - ++nCharSets; - } - } - - if (nCharSets < nb) { - return false; - } - return true; - }, - // private - ClientSideStrongPassword: function (pwd) - { - return this.IsLongEnough(pwd, 8) && this.SpansEnoughCharacterSets(pwd, 3); - }, - // private - ClientSideMediumPassword: function (pwd) - { - return this.IsLongEnough(pwd, 7) && this.SpansEnoughCharacterSets(pwd, 2); - }, - // private - ClientSideWeakPassword: function (pwd) - { - return this.IsLongEnough(pwd, 6) || !this.IsLongEnough(pwd, 0); - } - -}) \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Table_AbstractSelectionModel.js.html b/docs/src/Roo_bootstrap_Table_AbstractSelectionModel.js.html deleted file mode 100644 index ecb1a1d9b6..0000000000 --- a/docs/src/Roo_bootstrap_Table_AbstractSelectionModel.js.html +++ /dev/null @@ -1,6 +0,0 @@ -Roo/bootstrap/Table/AbstractSelectionModel.js -/** - * @depricated - * Just use grid selection model - */ - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_Table_RowSelectionModel.js.html b/docs/src/Roo_bootstrap_Table_RowSelectionModel.js.html deleted file mode 100644 index 26696a87ea..0000000000 --- a/docs/src/Roo_bootstrap_Table_RowSelectionModel.js.html +++ /dev/null @@ -1,499 +0,0 @@ -Roo/bootstrap/Table/RowSelectionModel.js -/** - * @extends Roo.bootstrap.Table.AbstractSelectionModel - * @class Roo.bootstrap.Table.RowSelectionModel - * The default SelectionModel used by {@link Roo.bootstrap.Table}. - * It supports multiple selections and keyboard selection/navigation. - * @constructor - * @param {Object} config - */ - -Roo.bootstrap.Table.RowSelectionModel = function(config){ - Roo.apply(this, config); - this.selections = new Roo.util.MixedCollection(false, function(o){ - return o.id; - }); - - this.last = false; - this.lastActive = false; - - this.addEvents({ - /** - * @event selectionchange - * Fires when the selection changes - * @param {SelectionModel} this - */ - "selectionchange" : true, - /** - * @event afterselectionchange - * Fires after the selection changes (eg. by key press or clicking) - * @param {SelectionModel} this - */ - "afterselectionchange" : true, - /** - * @event beforerowselect - * Fires when a row is selected being selected, return false to cancel. - * @param {SelectionModel} this - * @param {Number} rowIndex The selected index - * @param {Boolean} keepExisting False if other selections will be cleared - */ - "beforerowselect" : true, - /** - * @event rowselect - * Fires when a row is selected. - * @param {SelectionModel} this - * @param {Number} rowIndex The selected index - * @param {Roo.data.Record} r The record - */ - "rowselect" : true, - /** - * @event rowdeselect - * Fires when a row is deselected. - * @param {SelectionModel} this - * @param {Number} rowIndex The selected index - */ - "rowdeselect" : true - }); - Roo.bootstrap.Table.RowSelectionModel.superclass.constructor.call(this); - this.locked = false; - }; - -Roo.extend(Roo.bootstrap.Table.RowSelectionModel, Roo.bootstrap.Table.AbstractSelectionModel, { - /** - * @cfg {Boolean} singleSelect - * True to allow selection of only one row at a time (defaults to false) - */ - singleSelect : false, - - // private - initEvents : function() - { - - //if(!this.grid.enableDragDrop && !this.grid.enableDrag){ - // this.growclickrid.on("mousedown", this.handleMouseDown, this); - //}else{ // allow click to work like normal - // this.grid.on("rowclick", this.handleDragableRowClick, this); - //} - //this.grid.on("rowdblclick", this.handleMouseDBClick, this); - this.grid.on("rowclick", this.handleMouseDown, this); - - this.rowNav = new Roo.KeyNav(this.grid.getGridEl(), { - "up" : function(e){ - if(!e.shiftKey){ - this.selectPrevious(e.shiftKey); - }else if(this.last !== false && this.lastActive !== false){ - var last = this.last; - this.selectRange(this.last, this.lastActive-1); - this.grid.getView().focusRow(this.lastActive); - if(last !== false){ - this.last = last; - } - }else{ - this.selectFirstRow(); - } - this.fireEvent("afterselectionchange", this); - }, - "down" : function(e){ - if(!e.shiftKey){ - this.selectNext(e.shiftKey); - }else if(this.last !== false && this.lastActive !== false){ - var last = this.last; - this.selectRange(this.last, this.lastActive+1); - this.grid.getView().focusRow(this.lastActive); - if(last !== false){ - this.last = last; - } - }else{ - this.selectFirstRow(); - } - this.fireEvent("afterselectionchange", this); - }, - scope: this - }); - this.grid.store.on('load', function(){ - this.selections.clear(); - },this); - /* - var view = this.grid.view; - view.on("refresh", this.onRefresh, this); - view.on("rowupdated", this.onRowUpdated, this); - view.on("rowremoved", this.onRemove, this); - */ - }, - - // private - onRefresh : function() - { - var ds = this.grid.store, i, v = this.grid.view; - var s = this.selections; - s.each(function(r){ - if((i = ds.indexOfId(r.id)) != -1){ - v.onRowSelect(i); - }else{ - s.remove(r); - } - }); - }, - - // private - onRemove : function(v, index, r){ - this.selections.remove(r); - }, - - // private - onRowUpdated : function(v, index, r){ - if(this.isSelected(r)){ - v.onRowSelect(index); - } - }, - - /** - * Select records. - * @param {Array} records The records to select - * @param {Boolean} keepExisting (optional) True to keep existing selections - */ - selectRecords : function(records, keepExisting) - { - if(!keepExisting){ - this.clearSelections(); - } - var ds = this.grid.store; - for(var i = 0, len = records.length; i < len; i++){ - this.selectRow(ds.indexOf(records[i]), true); - } - }, - - /** - * Gets the number of selected rows. - * @return {Number} - */ - getCount : function(){ - return this.selections.length; - }, - - /** - * Selects the first row in the grid. - */ - selectFirstRow : function(){ - this.selectRow(0); - }, - - /** - * Select the last row. - * @param {Boolean} keepExisting (optional) True to keep existing selections - */ - selectLastRow : function(keepExisting){ - //this.selectRow(this.grid.dataSource.getCount() - 1, keepExisting); - this.selectRow(this.grid.store.getCount() - 1, keepExisting); - }, - - /** - * Selects the row immediately following the last selected row. - * @param {Boolean} keepExisting (optional) True to keep existing selections - */ - selectNext : function(keepExisting) - { - if(this.last !== false && (this.last+1) < this.grid.store.getCount()){ - this.selectRow(this.last+1, keepExisting); - this.grid.getView().focusRow(this.last); - } - }, - - /** - * Selects the row that precedes the last selected row. - * @param {Boolean} keepExisting (optional) True to keep existing selections - */ - selectPrevious : function(keepExisting){ - if(this.last){ - this.selectRow(this.last-1, keepExisting); - this.grid.getView().focusRow(this.last); - } - }, - - /** - * Returns the selected records - * @return {Array} Array of selected records - */ - getSelections : function(){ - return [].concat(this.selections.items); - }, - - /** - * Returns the first selected record. - * @return {Record} - */ - getSelected : function(){ - return this.selections.itemAt(0); - }, - - - /** - * Clears all selections. - */ - clearSelections : function(fast) - { - if(this.locked) { - return; - } - if(fast !== true){ - var ds = this.grid.store; - var s = this.selections; - s.each(function(r){ - this.deselectRow(ds.indexOfId(r.id)); - }, this); - s.clear(); - }else{ - this.selections.clear(); - } - this.last = false; - }, - - - /** - * Selects all rows. - */ - selectAll : function(){ - if(this.locked) { - return; - } - this.selections.clear(); - for(var i = 0, len = this.grid.store.getCount(); i < len; i++){ - this.selectRow(i, true); - } - }, - - /** - * Returns True if there is a selection. - * @return {Boolean} - */ - hasSelection : function(){ - return this.selections.length > 0; - }, - - /** - * Returns True if the specified row is selected. - * @param {Number/Record} record The record or index of the record to check - * @return {Boolean} - */ - isSelected : function(index){ - var r = typeof index == "number" ? this.grid.store.getAt(index) : index; - return (r && this.selections.key(r.id) ? true : false); - }, - - /** - * Returns True if the specified record id is selected. - * @param {String} id The id of record to check - * @return {Boolean} - */ - isIdSelected : function(id){ - return (this.selections.key(id) ? true : false); - }, - - - // private - handleMouseDBClick : function(e, t){ - - }, - // private - handleMouseDown : function(e, t) - { - var rowIndex = this.grid.headerShow ? t.dom.rowIndex - 1 : t.dom.rowIndex ; // first row is header??? - if(this.isLocked() || rowIndex < 0 ){ - return; - }; - if(e.shiftKey && this.last !== false){ - var last = this.last; - this.selectRange(last, rowIndex, e.ctrlKey); - this.last = last; // reset the last - t.focus(); - - }else{ - var isSelected = this.isSelected(rowIndex); - //Roo.log("select row:" + rowIndex); - if(isSelected){ - this.deselectRow(rowIndex); - } else { - this.selectRow(rowIndex, true); - } - - /* - if(e.button !== 0 && isSelected){ - alert('rowIndex 2: ' + rowIndex); - view.focusRow(rowIndex); - }else if(e.ctrlKey && isSelected){ - this.deselectRow(rowIndex); - }else if(!isSelected){ - this.selectRow(rowIndex, e.button === 0 && (e.ctrlKey || e.shiftKey)); - view.focusRow(rowIndex); - } - */ - } - this.fireEvent("afterselectionchange", this); - }, - // private - handleDragableRowClick : function(grid, rowIndex, e) - { - if(e.button === 0 && !e.shiftKey && !e.ctrlKey) { - this.selectRow(rowIndex, false); - grid.view.focusRow(rowIndex); - this.fireEvent("afterselectionchange", this); - } - }, - - /** - * Selects multiple rows. - * @param {Array} rows Array of the indexes of the row to select - * @param {Boolean} keepExisting (optional) True to keep existing selections - */ - selectRows : function(rows, keepExisting){ - if(!keepExisting){ - this.clearSelections(); - } - for(var i = 0, len = rows.length; i < len; i++){ - this.selectRow(rows[i], true); - } - }, - - /** - * Selects a range of rows. All rows in between startRow and endRow are also selected. - * @param {Number} startRow The index of the first row in the range - * @param {Number} endRow The index of the last row in the range - * @param {Boolean} keepExisting (optional) True to retain existing selections - */ - selectRange : function(startRow, endRow, keepExisting){ - if(this.locked) { - return; - } - if(!keepExisting){ - this.clearSelections(); - } - if(startRow <= endRow){ - for(var i = startRow; i <= endRow; i++){ - this.selectRow(i, true); - } - }else{ - for(var i = startRow; i >= endRow; i--){ - this.selectRow(i, true); - } - } - }, - - /** - * Deselects a range of rows. All rows in between startRow and endRow are also deselected. - * @param {Number} startRow The index of the first row in the range - * @param {Number} endRow The index of the last row in the range - */ - deselectRange : function(startRow, endRow, preventViewNotify){ - if(this.locked) { - return; - } - for(var i = startRow; i <= endRow; i++){ - this.deselectRow(i, preventViewNotify); - } - }, - - /** - * Selects a row. - * @param {Number} row The index of the row to select - * @param {Boolean} keepExisting (optional) True to keep existing selections - */ - selectRow : function(index, keepExisting, preventViewNotify) - { - if(this.locked || (index < 0 || index > this.grid.store.getCount())) { - return; - } - if(this.fireEvent("beforerowselect", this, index, keepExisting) !== false){ - if(!keepExisting || this.singleSelect){ - this.clearSelections(); - } - - var r = this.grid.store.getAt(index); - //console.log('selectRow - record id :' + r.id); - - this.selections.add(r); - this.last = this.lastActive = index; - if(!preventViewNotify){ - var proxy = new Roo.Element( - this.grid.getRowDom(index) - ); - proxy.addClass('bg-info info'); - } - this.fireEvent("rowselect", this, index, r); - this.fireEvent("selectionchange", this); - } - }, - - /** - * Deselects a row. - * @param {Number} row The index of the row to deselect - */ - deselectRow : function(index, preventViewNotify) - { - if(this.locked) { - return; - } - if(this.last == index){ - this.last = false; - } - if(this.lastActive == index){ - this.lastActive = false; - } - - var r = this.grid.store.getAt(index); - if (!r) { - return; - } - - this.selections.remove(r); - //.console.log('deselectRow - record id :' + r.id); - if(!preventViewNotify){ - - var proxy = new Roo.Element( - this.grid.getRowDom(index) - ); - proxy.removeClass('bg-info info'); - } - this.fireEvent("rowdeselect", this, index); - this.fireEvent("selectionchange", this); - }, - - // private - restoreLast : function(){ - if(this._last){ - this.last = this._last; - } - }, - - // private - acceptsNav : function(row, col, cm){ - return !cm.isHidden(col) && cm.isCellEditable(col, row); - }, - - // private - onEditorKey : function(field, e){ - var k = e.getKey(), newCell, g = this.grid, ed = g.activeEditor; - if(k == e.TAB){ - e.stopEvent(); - ed.completeEdit(); - if(e.shiftKey){ - newCell = g.walkCells(ed.row, ed.col-1, -1, this.acceptsNav, this); - }else{ - newCell = g.walkCells(ed.row, ed.col+1, 1, this.acceptsNav, this); - } - }else if(k == e.ENTER && !e.ctrlKey){ - e.stopEvent(); - ed.completeEdit(); - if(e.shiftKey){ - newCell = g.walkCells(ed.row-1, ed.col, -1, this.acceptsNav, this); - }else{ - newCell = g.walkCells(ed.row+1, ed.col, 1, this.acceptsNav, this); - } - }else if(k == e.ESC){ - ed.cancelEdit(); - } - if(newCell){ - g.startEditing(newCell[0], newCell[1]); - } - } -}); - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_TextArea.js.html b/docs/src/Roo_bootstrap_TextArea.js.html deleted file mode 100644 index 6320c3f8f8..0000000000 --- a/docs/src/Roo_bootstrap_TextArea.js.html +++ /dev/null @@ -1,370 +0,0 @@ -Roo/bootstrap/TextArea.js/* - * - LGPL - * - * Input - * - */ - -/** - * @class Roo.bootstrap.TextArea - * @extends Roo.bootstrap.Input - * Bootstrap TextArea class - * @cfg {Number} cols Specifies the visible width of a text area - * @cfg {Number} rows Specifies the visible number of lines in a text area - * @cfg {string} wrap (soft|hard)Specifies how the text in a text area is to be wrapped when submitted in a form - * @cfg {string} resize (none|both|horizontal|vertical|inherit|initial) - * @cfg {string} html text - * - * @constructor - * Create a new TextArea - * @param {Object} config The config object - */ - -Roo.bootstrap.TextArea = function(config){ - Roo.bootstrap.TextArea.superclass.constructor.call(this, config); - -}; - -Roo.extend(Roo.bootstrap.TextArea, Roo.bootstrap.Input, { - - cols : false, - rows : 5, - readOnly : false, - warp : 'soft', - resize : false, - value: false, - html: false, - - getAutoCreate : function(){ - - var align = (!this.labelAlign) ? this.parentLabelAlign() : this.labelAlign; - - var id = Roo.id(); - - var cfg = {}; - - if(this.inputType != 'hidden'){ - cfg.cls = 'form-group' //input-group - } - - var input = { - tag: 'textarea', - id : id, - warp : this.warp, - rows : this.rows, - value : this.value || '', - html: this.html || '', - cls : 'form-control', - placeholder : this.placeholder || '' - - }; - - if(this.maxLength && this.maxLength != Number.MAX_VALUE){ - input.maxLength = this.maxLength; - } - - if(this.resize){ - input.style = (typeof(input.style) == 'undefined') ? 'resize:' + this.resize : input.style + 'resize:' + this.resize; - } - - if(this.cols){ - input.cols = this.cols; - } - - if (this.readOnly) { - input.readonly = true; - } - - if (this.name) { - input.name = this.name; - } - - if (this.size) { - input.cls = (typeof(input.cls) == 'undefined') ? 'input-' + this.size : input.cls + ' input-' + this.size; - } - - var settings=this; - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - var inputblock = input; - - if(this.hasFeedback && !this.allowBlank){ - - var feedback = { - tag: 'span', - cls: 'glyphicon form-control-feedback' - }; - - inputblock = { - cls : 'has-feedback', - cn : [ - input, - feedback - ] - }; - } - - - if (this.before || this.after) { - - inputblock = { - cls : 'input-group', - cn : [] - }; - if (this.before) { - inputblock.cn.push({ - tag :'span', - cls : 'input-group-addon', - html : this.before - }); - } - - inputblock.cn.push(input); - - if(this.hasFeedback && !this.allowBlank){ - inputblock.cls += ' has-feedback'; - inputblock.cn.push(feedback); - } - - if (this.after) { - inputblock.cn.push({ - tag :'span', - cls : 'input-group-addon', - html : this.after - }); - } - - } - - if (align ==='left' && this.fieldLabel.length) { - cfg.cn = [ - { - tag: 'label', - 'for' : id, - cls : 'control-label', - html : this.fieldLabel - }, - { - cls : "", - cn: [ - inputblock - ] - } - - ]; - - if(this.labelWidth > 12){ - cfg.cn[0].style = "width: " + this.labelWidth + 'px'; - } - - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - - if(this.labellg > 0){ - cfg.cn[0].cls += ' col-lg-' + this.labellg; - cfg.cn[1].cls += ' col-lg-' + (12 - this.labellg); - } - - if(this.labelmd > 0){ - cfg.cn[0].cls += ' col-md-' + this.labelmd; - cfg.cn[1].cls += ' col-md-' + (12 - this.labelmd); - } - - if(this.labelsm > 0){ - cfg.cn[0].cls += ' col-sm-' + this.labelsm; - cfg.cn[1].cls += ' col-sm-' + (12 - this.labelsm); - } - - if(this.labelxs > 0){ - cfg.cn[0].cls += ' col-xs-' + this.labelxs; - cfg.cn[1].cls += ' col-xs-' + (12 - this.labelxs); - } - - } else if ( this.fieldLabel.length) { - cfg.cn = [ - - { - tag: 'label', - //cls : 'input-group-addon', - html : this.fieldLabel - - }, - - inputblock - - ]; - - } else { - - cfg.cn = [ - - inputblock - - ]; - - } - - if (this.disabled) { - input.disabled=true; - } - - return cfg; - - }, - /** - * return the real textarea element. - */ - inputEl: function () - { - return this.el.select('textarea.form-control',true).first(); - }, - - /** - * Clear any invalid styles/messages for this field - */ - clearInvalid : function() - { - - if(!this.el || this.preventMark){ // not rendered - return; - } - - var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); - - if(label && icon){ - icon.remove(); - } - this.el.removeClass( this.validClass); - this.inputEl().removeClass('is-invalid'); - - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){ - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass(this.invalidFeedbackClass); - } - - } - - this.fireEvent('valid', this); - }, - - /** - * Mark this field as valid - */ - markValid : function() - { - if(!this.el || this.preventMark){ // not rendered - return; - } - - this.el.removeClass([this.invalidClass, this.validClass]); - this.inputEl().removeClass(['is-valid', 'is-invalid']); - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); - } - - if(this.disabled || this.allowBlank){ - return; - } - - var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); - - if(label && icon){ - icon.remove(); - } - if (Roo.bootstrap.version == 3) { - this.el.addClass(this.validClass); - } else { - this.inputEl().addClass('is-valid'); - } - - - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank && (this.getValue().length || this.forceFeedback)){ - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); - this.el.select('.form-control-feedback', true).first().addClass([this.validFeedbackClass]); - } - - } - - this.fireEvent('valid', this); - }, - - /** - * Mark this field as invalid - * @param {String} msg The validation message - */ - markInvalid : function(msg) - { - if(!this.el || this.preventMark){ // not rendered - return; - } - - this.el.removeClass([this.invalidClass, this.validClass]); - this.inputEl().removeClass(['is-valid', 'is-invalid']); - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); - } - - if(this.disabled || this.allowBlank){ - return; - } - - var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); - - if(!this.getValue().length && label && !icon){ - this.el.createChild({ - tag : 'i', - cls : 'text-danger fa fa-lg fa-star', - tooltip : 'This field is required', - style : 'margin-right:5px;' - }, label, true); - } - - if (Roo.bootstrap.version == 3) { - this.el.addClass(this.invalidClass); - } else { - this.inputEl().addClass('is-invalid'); - } - - // fixme ... this may be depricated need to test.. - if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){ - - var feedback = this.el.select('.form-control-feedback', true).first(); - - if(feedback){ - this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); - - if(this.getValue().length || this.forceFeedback){ - this.el.select('.form-control-feedback', true).first().addClass([this.invalidFeedbackClass]); - } - - } - - } - - this.fireEvent('invalid', this, msg); - } -}); - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_TimeField.js.html b/docs/src/Roo_bootstrap_TimeField.js.html deleted file mode 100644 index 43fa72603a..0000000000 --- a/docs/src/Roo_bootstrap_TimeField.js.html +++ /dev/null @@ -1,517 +0,0 @@ -Roo/bootstrap/TimeField.js/* - * - LGPL - * - * TimeField - * - */ - -/** - * @class Roo.bootstrap.TimeField - * @extends Roo.bootstrap.Input - * Bootstrap DateField class - * - * - * @constructor - * Create a new TimeField - * @param {Object} config The config object - */ - -Roo.bootstrap.TimeField = function(config){ - Roo.bootstrap.TimeField.superclass.constructor.call(this, config); - this.addEvents({ - /** - * @event show - * Fires when this field show. - * @param {Roo.bootstrap.DateField} thisthis - * @param {Mixed} date The date value - */ - show : true, - /** - * @event show - * Fires when this field hide. - * @param {Roo.bootstrap.DateField} this - * @param {Mixed} date The date value - */ - hide : true, - /** - * @event select - * Fires when select a date. - * @param {Roo.bootstrap.DateField} this - * @param {Mixed} date The date value - */ - select : true - }); -}; - -Roo.extend(Roo.bootstrap.TimeField, Roo.bootstrap.Input, { - - /** - * @cfg {String} format - * The default time format string which can be overriden for localization support. The format must be - * valid according to {@link Date#parseDate} (defaults to 'H:i'). - */ - format : "H:i", - - getAutoCreate : function() - { - this.after = '<i class="fa far fa-clock"></i>'; - return Roo.bootstrap.TimeField.superclass.getAutoCreate.call(this); - - - }, - onRender: function(ct, position) - { - - Roo.bootstrap.TimeField.superclass.onRender.call(this, ct, position); - - this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.TimeField.template); - - this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - this.pop = this.picker().select('>.datepicker-time',true).first(); - this.pop.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; - - this.picker().on('mousedown', this.onMousedown, this); - this.picker().on('click', this.onClick, this); - - this.picker().addClass('datepicker-dropdown'); - - this.fillTime(); - this.update(); - - this.pop.select('.hours-up', true).first().on('click', this.onIncrementHours, this); - this.pop.select('.hours-down', true).first().on('click', this.onDecrementHours, this); - this.pop.select('.minutes-up', true).first().on('click', this.onIncrementMinutes, this); - this.pop.select('.minutes-down', true).first().on('click', this.onDecrementMinutes, this); - this.pop.select('button.period', true).first().on('click', this.onTogglePeriod, this); - this.pop.select('button.ok', true).first().on('click', this.setTime, this); - - }, - - fireKey: function(e){ - if (!this.picker().isVisible()){ - if (e.keyCode == 27) { // allow escape to hide and re-show picker - this.show(); - } - return; - } - - e.preventDefault(); - - switch(e.keyCode){ - case 27: // escape - this.hide(); - break; - case 37: // left - case 39: // right - this.onTogglePeriod(); - break; - case 38: // up - this.onIncrementMinutes(); - break; - case 40: // down - this.onDecrementMinutes(); - break; - case 13: // enter - case 9: // tab - this.setTime(); - break; - } - }, - - onClick: function(e) { - e.stopPropagation(); - e.preventDefault(); - }, - - picker : function() - { - return this.pickerEl; - }, - - fillTime: function() - { - var time = this.pop.select('tbody', true).first(); - - time.dom.innerHTML = ''; - - time.createChild({ - tag: 'tr', - cn: [ - { - tag: 'td', - cn: [ - { - tag: 'a', - href: '#', - cls: 'btn', - cn: [ - { - tag: 'i', - cls: 'hours-up fa fas fa-chevron-up' - } - ] - } - ] - }, - { - tag: 'td', - cls: 'separator' - }, - { - tag: 'td', - cn: [ - { - tag: 'a', - href: '#', - cls: 'btn', - cn: [ - { - tag: 'i', - cls: 'minutes-up fa fas fa-chevron-up' - } - ] - } - ] - }, - { - tag: 'td', - cls: 'separator' - } - ] - }); - - time.createChild({ - tag: 'tr', - cn: [ - { - tag: 'td', - cn: [ - { - tag: 'span', - cls: 'timepicker-hour', - html: '00' - } - ] - }, - { - tag: 'td', - cls: 'separator', - html: ':' - }, - { - tag: 'td', - cn: [ - { - tag: 'span', - cls: 'timepicker-minute', - html: '00' - } - ] - }, - { - tag: 'td', - cls: 'separator' - }, - { - tag: 'td', - cn: [ - { - tag: 'button', - type: 'button', - cls: 'btn btn-primary period', - html: 'AM' - - } - ] - } - ] - }); - - time.createChild({ - tag: 'tr', - cn: [ - { - tag: 'td', - cn: [ - { - tag: 'a', - href: '#', - cls: 'btn', - cn: [ - { - tag: 'span', - cls: 'hours-down fa fas fa-chevron-down' - } - ] - } - ] - }, - { - tag: 'td', - cls: 'separator' - }, - { - tag: 'td', - cn: [ - { - tag: 'a', - href: '#', - cls: 'btn', - cn: [ - { - tag: 'span', - cls: 'minutes-down fa fas fa-chevron-down' - } - ] - } - ] - }, - { - tag: 'td', - cls: 'separator' - } - ] - }); - - }, - - update: function() - { - - this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time; - - this.fill(); - }, - - fill: function() - { - var hours = this.time.getHours(); - var minutes = this.time.getMinutes(); - var period = 'AM'; - - if(hours > 11){ - period = 'PM'; - } - - if(hours == 0){ - hours = 12; - } - - - if(hours > 12){ - hours = hours - 12; - } - - if(hours < 10){ - hours = '0' + hours; - } - - if(minutes < 10){ - minutes = '0' + minutes; - } - - this.pop.select('.timepicker-hour', true).first().dom.innerHTML = hours; - this.pop.select('.timepicker-minute', true).first().dom.innerHTML = minutes; - this.pop.select('button', true).first().dom.innerHTML = period; - - }, - - place: function() - { - this.picker().removeClass(['bottom-left', 'bottom-right', 'top-left', 'top-right']); - - var cls = ['bottom']; - - if((Roo.lib.Dom.getViewHeight() + Roo.get(document.body).getScroll().top) - (this.inputEl().getBottom() + this.picker().getHeight()) < 0){ // top - cls.pop(); - cls.push('top'); - } - - cls.push('right'); - - if((Roo.lib.Dom.getViewWidth() + Roo.get(document.body).getScroll().left) - (this.inputEl().getLeft() + this.picker().getWidth()) < 0){ // left - cls.pop(); - cls.push('left'); - } - //this.picker().setXY(20000,20000); - this.picker().addClass(cls.join('-')); - - var _this = this; - - Roo.each(cls, function(c){ - if(c == 'bottom'){ - (function() { - // - }).defer(200); - _this.picker().alignTo(_this.inputEl(), "tr-br", [0, 10], false); - //_this.picker().setTop(_this.inputEl().getHeight()); - return; - } - if(c == 'top'){ - _this.picker().alignTo(_this.inputEl(), "br-tr", [0, 10], false); - - //_this.picker().setTop(0 - _this.picker().getHeight()); - return; - } - /* - if(c == 'left'){ - _this.picker().setLeft(_this.inputEl().getLeft() + _this.inputEl().getWidth() - _this.el.getLeft() - _this.picker().getWidth()); - return; - } - if(c == 'right'){ - _this.picker().setLeft(_this.inputEl().getLeft() - _this.el.getLeft()); - return; - } - */ - }); - - }, - - onFocus : function() - { - Roo.bootstrap.TimeField.superclass.onFocus.call(this); - this.show(); - }, - - onBlur : function() - { - Roo.bootstrap.TimeField.superclass.onBlur.call(this); - this.hide(); - }, - - show : function() - { - this.picker().show(); - this.pop.show(); - this.update(); - this.place(); - - this.fireEvent('show', this, this.date); - }, - - hide : function() - { - this.picker().hide(); - this.pop.hide(); - - this.fireEvent('hide', this, this.date); - }, - - setTime : function() - { - this.hide(); - this.setValue(this.time.format(this.format)); - - this.fireEvent('select', this, this.date); - - - }, - - onMousedown: function(e){ - e.stopPropagation(); - e.preventDefault(); - }, - - onIncrementHours: function() - { - Roo.log('onIncrementHours'); - this.time = this.time.add(Date.HOUR, 1); - this.update(); - - }, - - onDecrementHours: function() - { - Roo.log('onDecrementHours'); - this.time = this.time.add(Date.HOUR, -1); - this.update(); - }, - - onIncrementMinutes: function() - { - Roo.log('onIncrementMinutes'); - this.time = this.time.add(Date.MINUTE, 1); - this.update(); - }, - - onDecrementMinutes: function() - { - Roo.log('onDecrementMinutes'); - this.time = this.time.add(Date.MINUTE, -1); - this.update(); - }, - - onTogglePeriod: function() - { - Roo.log('onTogglePeriod'); - this.time = this.time.add(Date.HOUR, 12); - this.update(); - } - - -}); - - -Roo.apply(Roo.bootstrap.TimeField, { - - template : { - tag: 'div', - cls: 'datepicker dropdown-menu', - cn: [ - { - tag: 'div', - cls: 'datepicker-time', - cn: [ - { - tag: 'table', - cls: 'table-condensed', - cn:[ - { - tag: 'tbody', - cn: [ - { - tag: 'tr', - cn: [ - { - tag: 'td', - colspan: '7' - } - ] - } - ] - }, - { - tag: 'tfoot', - cn: [ - { - tag: 'tr', - cn: [ - { - tag: 'th', - colspan: '7', - cls: '', - cn: [ - { - tag: 'button', - cls: 'btn btn-info ok', - html: 'OK' - } - ] - } - - ] - } - ] - } - ] - } - ] - } - ] - } -}); - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_TriggerField.js.html b/docs/src/Roo_bootstrap_TriggerField.js.html deleted file mode 100644 index 8d6dd9e509..0000000000 --- a/docs/src/Roo_bootstrap_TriggerField.js.html +++ /dev/null @@ -1,606 +0,0 @@ -Roo/bootstrap/TriggerField.js/* - * - LGPL - * - * trigger field - base class for combo.. - * - */ - -/** - * @class Roo.bootstrap.TriggerField - * @extends Roo.bootstrap.Input - * Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default). - * The trigger has no default action, so you must assign a function to implement the trigger click handler by - * overriding {@link #onTriggerClick}. You can create a TriggerField directly, as it renders exactly like a combobox - * for which you can provide a custom implementation. For example: - * <pre><code> -var trigger = new Roo.bootstrap.TriggerField(); -trigger.onTriggerClick = myTriggerFn; -trigger.applyTo('my-field'); -</code></pre> - * - * However, in general you will most likely want to use TriggerField as the base class for a reusable component. - * {@link Roo.bootstrap.DateField} and {@link Roo.bootstrap.ComboBox} are perfect examples of this. - * @cfg {String} triggerClass An additional CSS class used to style the trigger button. The trigger will always get the - * class 'x-form-trigger' by default and triggerClass will be <b>appended</b> if specified. - * @cfg {String} caret (search|calendar) BS3 only - carat fa name - - * @constructor - * Create a new TriggerField. - * @param {Object} config Configuration options (valid {@Roo.bootstrap.Input} config options will also be applied - * to the base TextField) - */ -Roo.bootstrap.TriggerField = function(config){ - this.mimicing = false; - Roo.bootstrap.TriggerField.superclass.constructor.call(this, config); -}; - -Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { - /** - * @cfg {String} triggerClass A CSS class to apply to the trigger - */ - /** - * @cfg {Boolean} hideTrigger True to hide the trigger element and display only the base text field (defaults to false) - */ - hideTrigger:false, - - /** - * @cfg {Boolean} removable (true|false) special filter default false - */ - removable : false, - - /** @cfg {Boolean} grow @hide */ - /** @cfg {Number} growMin @hide */ - /** @cfg {Number} growMax @hide */ - - /** - * @hide - * @method - */ - autoSize: Roo.emptyFn, - // private - monitorTab : true, - // private - deferHeight : true, - - - actionMode : 'wrap', - - caret : false, - - - getAutoCreate : function(){ - - var align = this.labelAlign || this.parentLabelAlign(); - - var id = Roo.id(); - - var cfg = { - cls: 'form-group' //input-group - }; - - - var input = { - tag: 'input', - id : id, - type : this.inputType, - cls : 'form-control', - autocomplete: 'new-password', - placeholder : this.placeholder || '' - - }; - if (this.name) { - input.name = this.name; - } - if (this.size) { - input.cls += ' input-' + this.size; - } - - if (this.disabled) { - input.disabled=true; - } - - var inputblock = input; - - if(this.hasFeedback && !this.allowBlank){ - - var feedback = { - tag: 'span', - cls: 'glyphicon form-control-feedback' - }; - - if(this.removable && !this.editable ){ - inputblock = { - cls : 'has-feedback', - cn : [ - inputblock, - { - tag: 'button', - html : 'x', - cls : 'roo-combo-removable-btn close' - }, - feedback - ] - }; - } else { - inputblock = { - cls : 'has-feedback', - cn : [ - inputblock, - feedback - ] - }; - } - - } else { - if(this.removable && !this.editable ){ - inputblock = { - cls : 'roo-removable', - cn : [ - inputblock, - { - tag: 'button', - html : 'x', - cls : 'roo-combo-removable-btn close' - } - ] - }; - } - } - - if (this.before || this.after) { - - inputblock = { - cls : 'input-group', - cn : [] - }; - if (this.before) { - inputblock.cn.push({ - tag :'span', - cls : 'input-group-addon input-group-prepend input-group-text', - html : this.before - }); - } - - inputblock.cn.push(input); - - if(this.hasFeedback && !this.allowBlank){ - inputblock.cls += ' has-feedback'; - inputblock.cn.push(feedback); - } - - if (this.after) { - inputblock.cn.push({ - tag :'span', - cls : 'input-group-addon input-group-append input-group-text', - html : this.after - }); - } - - }; - - - - var ibwrap = inputblock; - - if(this.multiple){ - ibwrap = { - tag: 'ul', - cls: 'roo-select2-choices', - cn:[ - { - tag: 'li', - cls: 'roo-select2-search-field', - cn: [ - - inputblock - ] - } - ] - }; - - } - - var combobox = { - cls: 'roo-select2-container input-group', - cn: [ - { - tag: 'input', - type : 'hidden', - cls: 'form-hidden-field' - }, - ibwrap - ] - }; - - if(!this.multiple && this.showToggleBtn){ - - var caret = { - tag: 'span', - cls: 'caret' - }; - if (this.caret != false) { - caret = { - tag: 'i', - cls: 'fa fa-' + this.caret - }; - - } - - combobox.cn.push({ - tag :'span', - cls : 'input-group-addon input-group-append input-group-text btn dropdown-toggle', - cn : [ - Roo.bootstrap.version == 3 ? caret : '', - { - tag: 'span', - cls: 'combobox-clear', - cn : [ - { - tag : 'i', - cls: 'icon-remove' - } - ] - } - ] - - }) - } - - if(this.multiple){ - combobox.cls += ' roo-select2-container-multi'; - } - var indicator = { - tag : 'i', - cls : 'roo-required-indicator ' + (this.indicatorpos == 'right' ? 'right' : 'left') +'-indicator text-danger fa fa-lg fa-star', - tooltip : 'This field is required' - }; - if (Roo.bootstrap.version == 4) { - indicator = { - tag : 'i', - style : 'display:none' - }; - } - - - if (align ==='left' && this.fieldLabel.length) { - - cfg.cls += ' roo-form-group-label-left' + (Roo.bootstrap.version == 4 ? ' row' : ''); - - cfg.cn = [ - indicator, - { - tag: 'label', - 'for' : id, - cls : 'control-label', - html : this.fieldLabel - - }, - { - cls : "", - cn: [ - combobox - ] - } - - ]; - - var labelCfg = cfg.cn[1]; - var contentCfg = cfg.cn[2]; - - if(this.indicatorpos == 'right'){ - cfg.cn = [ - { - tag: 'label', - 'for' : id, - cls : 'control-label', - cn : [ - { - tag : 'span', - html : this.fieldLabel - }, - indicator - ] - }, - { - cls : "", - cn: [ - combobox - ] - } - - ]; - - labelCfg = cfg.cn[0]; - contentCfg = cfg.cn[1]; - } - - if(this.labelWidth > 12){ - labelCfg.style = "width: " + this.labelWidth + 'px'; - } - - if(this.labelWidth < 13 && this.labelmd == 0){ - this.labelmd = this.labelWidth; - } - - if(this.labellg > 0){ - labelCfg.cls += ' col-lg-' + this.labellg; - contentCfg.cls += ' col-lg-' + (12 - this.labellg); - } - - if(this.labelmd > 0){ - labelCfg.cls += ' col-md-' + this.labelmd; - contentCfg.cls += ' col-md-' + (12 - this.labelmd); - } - - if(this.labelsm > 0){ - labelCfg.cls += ' col-sm-' + this.labelsm; - contentCfg.cls += ' col-sm-' + (12 - this.labelsm); - } - - if(this.labelxs > 0){ - labelCfg.cls += ' col-xs-' + this.labelxs; - contentCfg.cls += ' col-xs-' + (12 - this.labelxs); - } - - } else if ( this.fieldLabel.length) { -// Roo.log(" label"); - cfg.cn = [ - indicator, - { - tag: 'label', - //cls : 'input-group-addon', - html : this.fieldLabel - - }, - - combobox - - ]; - - if(this.indicatorpos == 'right'){ - - cfg.cn = [ - { - tag: 'label', - cn : [ - { - tag : 'span', - html : this.fieldLabel - }, - indicator - ] - - }, - combobox - - ]; - - } - - } else { - -// Roo.log(" no label && no align"); - cfg = combobox - - - } - - var settings=this; - ['xs','sm','md','lg'].map(function(size){ - if (settings[size]) { - cfg.cls += ' col-' + size + '-' + settings[size]; - } - }); - - return cfg; - - }, - - - - // private - onResize : function(w, h){ -// Roo.bootstrap.TriggerField.superclass.onResize.apply(this, arguments); -// if(typeof w == 'number'){ -// var x = w - this.trigger.getWidth(); -// this.inputEl().setWidth(this.adjustWidth('input', x)); -// this.trigger.setStyle('left', x+'px'); -// } - }, - - // private - adjustSize : Roo.BoxComponent.prototype.adjustSize, - - // private - getResizeEl : function(){ - return this.inputEl(); - }, - - // private - getPositionEl : function(){ - return this.inputEl(); - }, - - // private - alignErrorIcon : function(){ - this.errorIcon.alignTo(this.inputEl(), 'tl-tr', [2, 0]); - }, - - // private - initEvents : function(){ - - this.createList(); - - Roo.bootstrap.TriggerField.superclass.initEvents.call(this); - //this.wrap = this.el.wrap({cls: "x-form-field-wrap"}); - if(!this.multiple && this.showToggleBtn){ - this.trigger = this.el.select('span.dropdown-toggle',true).first(); - if(this.hideTrigger){ - this.trigger.setDisplayed(false); - } - this.trigger.on("click", this.onTriggerClick, this, {preventDefault:true}); - } - - if(this.multiple){ - this.inputEl().on("click", this.onTriggerClick, this, {preventDefault:true}); - } - - if(this.removable && !this.editable && !this.tickable){ - var close = this.closeTriggerEl(); - - if(close){ - close.setVisibilityMode(Roo.Element.DISPLAY).hide(); - close.on('click', this.removeBtnClick, this, close); - } - } - - //this.trigger.addClassOnOver('x-form-trigger-over'); - //this.trigger.addClassOnClick('x-form-trigger-click'); - - //if(!this.width){ - // this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth()); - //} - }, - - closeTriggerEl : function() - { - var close = this.el.select('.roo-combo-removable-btn', true).first(); - return close ? close : false; - }, - - removeBtnClick : function(e, h, el) - { - e.preventDefault(); - - if(this.fireEvent("remove", this) !== false){ - this.reset(); - this.fireEvent("afterremove", this) - } - }, - - createList : function() - { - this.list = Roo.get(document.body).createChild({ - tag: Roo.bootstrap.version == 4 ? 'div' : 'ul', - cls: 'typeahead typeahead-long dropdown-menu shadow', - style: 'display:none' - }); - - this.list.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block';; - - }, - - // private - initTrigger : function(){ - - }, - - // private - onDestroy : function(){ - if(this.trigger){ - this.trigger.removeAllListeners(); - // this.trigger.remove(); - } - //if(this.wrap){ - // this.wrap.remove(); - //} - Roo.bootstrap.TriggerField.superclass.onDestroy.call(this); - }, - - // private - onFocus : function(){ - Roo.bootstrap.TriggerField.superclass.onFocus.call(this); - /* - if(!this.mimicing){ - this.wrap.addClass('x-trigger-wrap-focus'); - this.mimicing = true; - Roo.get(Roo.isIE ? document.body : document).on("mousedown", this.mimicBlur, this); - if(this.monitorTab){ - this.el.on("keydown", this.checkTab, this); - } - } - */ - }, - - // private - checkTab : function(e){ - if(e.getKey() == e.TAB){ - this.triggerBlur(); - } - }, - - // private - onBlur : function(){ - // do nothing - }, - - // private - mimicBlur : function(e, t){ - /* - if(!this.wrap.contains(t) && this.validateBlur()){ - this.triggerBlur(); - } - */ - }, - - // private - triggerBlur : function(){ - this.mimicing = false; - Roo.get(Roo.isIE ? document.body : document).un("mousedown", this.mimicBlur); - if(this.monitorTab){ - this.el.un("keydown", this.checkTab, this); - } - //this.wrap.removeClass('x-trigger-wrap-focus'); - Roo.bootstrap.TriggerField.superclass.onBlur.call(this); - }, - - // private - // This should be overriden by any subclass that needs to check whether or not the field can be blurred. - validateBlur : function(e, t){ - return true; - }, - - // private - onDisable : function(){ - this.inputEl().dom.disabled = true; - //Roo.bootstrap.TriggerField.superclass.onDisable.call(this); - //if(this.wrap){ - // this.wrap.addClass('x-item-disabled'); - //} - }, - - // private - onEnable : function(){ - this.inputEl().dom.disabled = false; - //Roo.bootstrap.TriggerField.superclass.onEnable.call(this); - //if(this.wrap){ - // this.el.removeClass('x-item-disabled'); - //} - }, - - // private - onShow : function(){ - var ae = this.getActionEl(); - - if(ae){ - ae.dom.style.display = ''; - ae.dom.style.visibility = 'visible'; - } - }, - - // private - - onHide : function(){ - var ae = this.getActionEl(); - ae.dom.style.display = 'none'; - }, - - /** - * The function that should handle the trigger's click event. This method does nothing by default until overridden - * by an implementing function. - * @method - * @param {EventObject} e - */ - onTriggerClick : Roo.emptyFn -}); - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_htmleditor_ToolbarStandard.js.html b/docs/src/Roo_bootstrap_htmleditor_ToolbarStandard.js.html deleted file mode 100644 index 813d29dbbe..0000000000 --- a/docs/src/Roo_bootstrap_htmleditor_ToolbarStandard.js.html +++ /dev/null @@ -1,288 +0,0 @@ -Roo/bootstrap/htmleditor/ToolbarStandard.js -Roo.namespace('Roo.bootstrap.htmleditor'); -/** - * @class Roo.bootstrap.HtmlEditorToolbar1 - * @extends Roo.bootstrap.nav.Simplebar - * Basic Toolbar - * - * @example - * Usage: - * - new Roo.bootstrap.HtmlEditor({ - .... - toolbars : [ - new Roo.bootstrap.HtmlEditorToolbar1({ - disable : { fonts: 1 , format: 1, ..., ... , ...], - btns : [ .... ] - }) - } - - * - * @cfg {Object} disable List of elements to disable.. - * @cfg {Array} btns List of additional buttons. - * - * - * NEEDS Extra CSS? - * .x-html-editor-tb .x-edit-none .x-btn-text { background: none; } - */ - -Roo.bootstrap.htmleditor.ToolbarStandard = function(config) -{ - - Roo.apply(this, config); - - // default disabled, based on 'good practice'.. - this.disable = this.disable || {}; - Roo.applyIf(this.disable, { - fontSize : true, - colors : true, - specialElements : true - }); - Roo.bootstrap.htmleditor.ToolbarStandard.superclass.constructor.call(this, config); - - this.editor = config.editor; - this.editorcore = config.editor.editorcore; - - this.buttons = new Roo.util.MixedCollection(false, function(o) { return o.cmd; }); - - //Roo.form.HtmlEditorToolbar1.superclass.constructor.call(this, editor.wrap.dom.firstChild, [], config); - // dont call parent... till later. -} -Roo.extend(Roo.bootstrap.htmleditor.ToolbarStandard, Roo.bootstrap.nav.Simplebar, { - - bar : true, - - editor : false, - editorcore : false, - - - formats : [ - "p" , - "h1","h2","h3","h4","h5","h6", - "pre", "code", - "abbr", "acronym", "address", "cite", "samp", "var", - 'div','span' - ], - - onRender : function(ct, position) - { - // Roo.log("Call onRender: " + this.xtype); - - Roo.bootstrap.htmleditor.ToolbarStandard.superclass.onRender.call(this, ct, position); - Roo.log(this.el); - this.el.dom.style.marginBottom = '0'; - var _this = this; - var editorcore = this.editorcore; - var editor= this.editor; - - var children = []; - var btn = function(id,cmd , toggle, handler, html){ - - var event = toggle ? 'toggle' : 'click'; - - var a = { - size : 'sm', - xtype: 'Button', - xns: Roo.bootstrap, - //glyphicon : id, - fa: id, - cmd : id || cmd, - enableToggle:toggle !== false, - html : html || '', - pressed : toggle ? false : null, - listeners : {} - }; - a.listeners[toggle ? 'toggle' : 'click'] = function() { - handler ? handler.call(_this,this) :_this.onBtnClick.call(_this, cmd || id); - }; - children.push(a); - return a; - } - - // var cb_box = function... - - var style = { - xtype: 'Button', - size : 'sm', - xns: Roo.bootstrap, - fa : 'font', - //html : 'submit' - menu : { - xtype: 'Menu', - xns: Roo.bootstrap, - items: [] - } - }; - Roo.each(this.formats, function(f) { - style.menu.items.push({ - xtype :'MenuItem', - xns: Roo.bootstrap, - html : '<'+ f+' style="margin:2px">'+f +'</'+ f+'>', - tagname : f, - listeners : { - click : function() - { - editorcore.insertTag(this.tagname); - editor.focus(); - } - } - - }); - }); - children.push(style); - - btn('bold',false,true); - btn('italic',false,true); - btn('align-left', 'justifyleft',true); - btn('align-center', 'justifycenter',true); - btn('align-right' , 'justifyright',true); - btn('link', false, false, function(btn) { - //Roo.log("create link?"); - var url = prompt(this.createLinkText, this.defaultLinkValue); - if(url && url != 'http:/'+'/'){ - this.editorcore.relayCmd('createlink', url); - } - }), - btn('list','insertunorderedlist',true); - btn('pencil', false,true, function(btn){ - Roo.log(this); - this.toggleSourceEdit(btn.pressed); - }); - - if (this.editor.btns.length > 0) { - for (var i = 0; i<this.editor.btns.length; i++) { - children.push(this.editor.btns[i]); - } - } - - /* - var cog = { - xtype: 'Button', - size : 'sm', - xns: Roo.bootstrap, - glyphicon : 'cog', - //html : 'submit' - menu : { - xtype: 'Menu', - xns: Roo.bootstrap, - items: [] - } - }; - - cog.menu.items.push({ - xtype :'MenuItem', - xns: Roo.bootstrap, - html : Clean styles, - tagname : f, - listeners : { - click : function() - { - editorcore.insertTag(this.tagname); - editor.focus(); - } - } - - }); - */ - - - this.xtype = 'NavSimplebar'; - - for(var i=0;i< children.length;i++) { - - this.buttons.add(this.addxtypeChild(children[i])); - - } - - editor.on('editorevent', this.updateToolbar, this); - }, - onBtnClick : function(id) - { - this.editorcore.relayCmd(id); - this.editorcore.focus(); - }, - - /** - * Protected method that will not generally be called directly. It triggers - * a toolbar update by reading the markup state of the current selection in the editor. - */ - updateToolbar: function(){ - - if(!this.editorcore.activated){ - this.editor.onFirstFocus(); // is this neeed? - return; - } - - var btns = this.buttons; - var doc = this.editorcore.doc; - btns.get('bold').setActive(doc.queryCommandState('bold')); - btns.get('italic').setActive(doc.queryCommandState('italic')); - //btns.get('underline').setActive(doc.queryCommandState('underline')); - - btns.get('align-left').setActive(doc.queryCommandState('justifyleft')); - btns.get('align-center').setActive(doc.queryCommandState('justifycenter')); - btns.get('align-right').setActive(doc.queryCommandState('justifyright')); - - //btns[frameId + '-insertorderedlist').setActive(doc.queryCommandState('insertorderedlist')); - btns.get('list').setActive(doc.queryCommandState('insertunorderedlist')); - /* - - var ans = this.editorcore.getAllAncestors(); - if (this.formatCombo) { - - - var store = this.formatCombo.store; - this.formatCombo.setValue(""); - for (var i =0; i < ans.length;i++) { - if (ans[i] && store.query('tag',ans[i].tagName.toLowerCase(), false).length) { - // select it.. - this.formatCombo.setValue(ans[i].tagName.toLowerCase()); - break; - } - } - } - - - - // hides menus... - so this cant be on a menu... - Roo.bootstrap.MenuMgr.hideAll(); - */ - Roo.bootstrap.menu.Manager.hideAll(); - //this.editorsyncValue(); - }, - onFirstFocus: function() { - this.buttons.each(function(item){ - item.enable(); - }); - }, - toggleSourceEdit : function(sourceEditMode){ - - - if(sourceEditMode){ - Roo.log("disabling buttons"); - this.buttons.each( function(item){ - if(item.cmd != 'pencil'){ - item.disable(); - } - }); - - }else{ - Roo.log("enabling buttons"); - if(this.editorcore.initialized){ - this.buttons.each( function(item){ - item.enable(); - }); - } - - } - Roo.log("calling toggole on editor"); - // tell the editor that it's been pressed.. - this.editor.toggleSourceEdit(sourceEditMode); - - } -}); - - - - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_layout_layout-ns.js.html b/docs/src/Roo_bootstrap_layout_layout-ns.js.html deleted file mode 100644 index 2a3a4c79b7..0000000000 --- a/docs/src/Roo_bootstrap_layout_layout-ns.js.html +++ /dev/null @@ -1 +0,0 @@ -Roo/bootstrap/layout/layout-ns.jsRoo.namespace("Roo.bootstrap.layout"); \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_menu_depricated.js.html b/docs/src/Roo_bootstrap_menu_depricated.js.html deleted file mode 100644 index 38fa1cb400..0000000000 --- a/docs/src/Roo_bootstrap_menu_depricated.js.html +++ /dev/null @@ -1,6 +0,0 @@ -Roo/bootstrap/menu/depricated.js// deprciated -Roo.bootstrap.Menu = Roo.bootstrap.menu.Menu; -Roo.bootstrap.MenuItem = Roo.bootstrap.menu.Item; -Roo.bootstrap.MenuSeparator = Roo.bootstrap.menu.Separator - - \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_nav_depricated.js.html b/docs/src/Roo_bootstrap_nav_depricated.js.html deleted file mode 100644 index 720f704e39..0000000000 --- a/docs/src/Roo_bootstrap_nav_depricated.js.html +++ /dev/null @@ -1,13 +0,0 @@ -Roo/bootstrap/nav/depricated.js// depricated. -Roo.bootstrap.Navbar = Roo.bootstrap.nav.Bar; -Roo.bootstrap.NavGroup = Roo.bootstrap.nav.Group; -Roo.bootstrap.NavHeaderbar = Roo.bootstrap.nav.Headerbar; -Roo.bootstrap.NavItem = Roo.bootstrap.nav.Item; - -Roo.bootstrap.NavProgressBar = Roo.bootstrap.nav.ProgressBar; -Roo.bootstrap.NavProgressBarItem = Roo.bootstrap.nav.ProgressBarItem; - -Roo.bootstrap.NavSidebar = Roo.bootstrap.nav.Sidebar; -Roo.bootstrap.NavSidebarItem = Roo.bootstrap.nav.SidebarItem; - -Roo.bootstrap.NavSimplebar = Roo.bootstrap.nav.Simplebar; \ No newline at end of file diff --git a/docs/src/Roo_bootstrap_panel_panel-ns.js.html b/docs/src/Roo_bootstrap_panel_panel-ns.js.html deleted file mode 100644 index aa6e6b304c..0000000000 --- a/docs/src/Roo_bootstrap_panel_panel-ns.js.html +++ /dev/null @@ -1 +0,0 @@ -Roo/bootstrap/panel/panel-ns.jsRoo.namespace("Roo.bootstrap.panel"); \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.CardImage.json b/docs/symbols/Roo.bootstrap.CardImage.json deleted file mode 100644 index 5a44bebf81..0000000000 --- a/docs/symbols/Roo.bootstrap.CardImage.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name" : "Roo.bootstrap.CardImage", - "augments" : [], - "desc" : "Bootstrap Element class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "CardImage", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "config" : [], - "methods" : [], - "events" : [] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.CardUploader.json b/docs/symbols/Roo.bootstrap.CardUploader.json deleted file mode 100644 index d52e645622..0000000000 --- a/docs/symbols/Roo.bootstrap.CardUploader.json +++ /dev/null @@ -1,1494 +0,0 @@ -{ - "name" : "Roo.bootstrap.CardUploader", - "augments" : [ - "Roo.bootstrap.Button", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap Card Uploader class - it's a button which when you add files to it, adds cards below with preview and the name...", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "CardUploader", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "toggle", - "type" : "Boolean", - "desc" : "is it a slidy toggle button", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "inverse", - "type" : "Boolean", - "desc" : "dark themed version", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "badge", - "type" : "String", - "desc" : "text for badge", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "images", - "type" : "Array", - "desc" : "an array of ?? Img objects ??? when loading existing files..", - "memberOf" : "Roo.bootstrap.CardUploader" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "default false;", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "weight", - "type" : "String", - "desc" : "k) default", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "grpup", - "type" : "Boolean", - "desc" : "if parent is a btn group - then it turns it into a toogleGroup.", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "ontext", - "type" : "String", - "desc" : "text for on slidy toggle state", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "preventDefault", - "type" : "Boolean", - "desc" : "default true (stop click event triggering the URL if it's a link.)", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "theme", - "type" : "String", - "desc" : "w)", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "target", - "type" : "String", - "desc" : "r) target for a href.", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "glyphicon", - "type" : "String", - "desc" : "depricated - use fa", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "isClose", - "type" : "Boolean", - "desc" : "default false;", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "errorTimeout", - "type" : "Number", - "desc" : "default 3000", - "memberOf" : "Roo.bootstrap.CardUploader" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "fa", - "type" : "String", - "desc" : "fontawesome icon - eg. 'comment' - without the fa/fas etc..", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "size", - "type" : "String", - "desc" : "s)", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "badge_weight", - "type" : "String", - "desc" : "k) default (same as button)", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "href", - "type" : "String", - "desc" : "empty or href", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "tag", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "outline", - "type" : "Boolean", - "desc" : "default false (except for weight=default which emulates old behaveiour with an outline)", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "offtext", - "type" : "String", - "desc" : "text for off slidy toggle state", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "removeClass", - "type" : "Boolean", - "desc" : "remove the standard class..", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "html", - "type" : "Array", - "desc" : "The button text.", - "memberOf" : "Roo.bootstrap.CardUploader" - }, - { - "name" : "pressed", - "type" : "Boolean", - "desc" : "default null - if the button ahs active state", - "memberOf" : "Roo.bootstrap.Button" - }, - { - "name" : "menu", - "type" : "Roo.bootstrap.menu.Menu", - "desc" : "a Menu", - "memberOf" : "Roo.bootstrap.Button" - } - ], - "methods" : [ - { - "name" : "addCard", - "type" : "function", - "desc" : "addCard - add an Attachment to the uploader", - "sig" : "(data)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "data", - "type" : "", - "desc" : "- the data about the image to upload\n\n{\n id : 123\n title : \"Title of file\",\n is_uploaded : false,\n src : \"http://.....\",\n srcfile : { the File upload object },\n mimetype : file.type,\n preview : false,\n is_deleted : 0\n .. any other data...\n }", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setText", - "type" : "function", - "desc" : "set the text of the first selected button", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Button", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isActive", - "type" : "function", - "desc" : "get the current active state", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Button", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "boolean", - "desc" : "true if it's active" - } - ] - }, - { - "name" : "setActive", - "type" : "function", - "desc" : "sets the active state on/off,", - "sig" : "(state)", - "static" : false, - "memberOf" : "Roo.bootstrap.Button", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "state", - "type" : "Boolean", - "desc" : "(optional) Force a particular state", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "toggleActive", - "type" : "function", - "desc" : "toggles the current active state", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Button", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getText", - "type" : "function", - "desc" : "get the text of the first selected button", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Button", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enables this button", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Button", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this button", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Button", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "download", - "type" : "function", - "desc" : "When a the download link is clicked", - "sig" : "function (_self, The)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Card", - "desc" : "", - "isOptional" : false - }, - { - "name" : "The", - "type" : "Object", - "desc" : "image information data contains", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "preview", - "type" : "function", - "desc" : "When a image is clicked on - and needs to display a slideshow or similar..", - "sig" : "function (_self, The)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Card", - "desc" : "", - "isOptional" : false - }, - { - "name" : "The", - "type" : "Object", - "desc" : "image information data", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "toggle", - "type" : "function", - "desc" : "After the button has been toggles", - "sig" : "function (btn, e, pressed)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Button", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "btn", - "type" : "Roo.bootstrap.Button", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - }, - { - "name" : "pressed", - "type" : "boolean", - "desc" : "(also available as button.pressed)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "dblclick", - "type" : "function", - "desc" : "When a button is double clicked", - "sig" : "function (btn, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Button", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "btn", - "type" : "Roo.bootstrap.Button", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "click", - "type" : "function", - "desc" : "When a button is pressed", - "sig" : "function (btn, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Button", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "btn", - "type" : "Roo.bootstrap.Button", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.CheckBox.json b/docs/symbols/Roo.bootstrap.CheckBox.json deleted file mode 100644 index b0ffc48084..0000000000 --- a/docs/symbols/Roo.bootstrap.CheckBox.json +++ /dev/null @@ -1,2008 +0,0 @@ -{ - "name" : "Roo.bootstrap.CheckBox", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap CheckBox class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "CheckBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "inputValue", - "type" : "String", - "desc" : "The value that should go into the generated input element's value when checked.", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "weight", - "type" : "String", - "desc" : "s) The text that appears beside the checkbox", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "String", - "desc" : "label tooltip", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "boxLabel", - "type" : "String", - "desc" : "The text that appears beside the checkbox", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "groupId", - "type" : "String", - "desc" : "the checkbox group id // normal just use for checkbox", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "checked", - "type" : "Boolean", - "desc" : "initnal the element", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "inline", - "type" : "Boolean", - "desc" : "inline the element (default false)", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "valueOff", - "type" : "String", - "desc" : "The value that should go into the generated input element's value when unchecked.", - "memberOf" : "Roo.bootstrap.CheckBox" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "register", - "type" : "function", - "desc" : "register a CheckBox Group", - "sig" : "(the)", - "static" : true, - "memberOf" : "", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "Roo.bootstrap.CheckBox", - "desc" : "CheckBox to add", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "get", - "type" : "function", - "desc" : "fetch a CheckBox Group based on the group ID", - "sig" : "(the)", - "static" : true, - "memberOf" : "", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "string", - "desc" : "group ID", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "check", - "type" : "function", - "desc" : "Fires when the element is checked or unchecked.", - "sig" : "function (_self, checked)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.CheckBox", - "desc" : "This input", - "isOptional" : false - }, - { - "name" : "checked", - "type" : "Boolean", - "desc" : "The new checked value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "click", - "type" : "function", - "desc" : "Fires when the element is click.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.CheckBox", - "desc" : "This input", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.ComboBox.json b/docs/symbols/Roo.bootstrap.ComboBox.json deleted file mode 100644 index a7a986ca07..0000000000 --- a/docs/symbols/Roo.bootstrap.ComboBox.json +++ /dev/null @@ -1,2790 +0,0 @@ -{ - "name" : "Roo.bootstrap.ComboBox", - "augments" : [ - "Roo.bootstrap.TriggerField", - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { - "Roo.bootstrap.ComboBox" : [ - "Roo.bootstrap.MoneyField" - ] - }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "A combobox control with support for autocomplete, remote-loading, paging and many other features.", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "Configuration options", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "growMax", - "type" : "Number", - "desc" : "", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to select any existing text in the field immediately on focus. Only applies\nwhen editable = true (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "grow", - "type" : "Boolean", - "desc" : "", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "queryDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds to delay between the start of typing and sending the\nquery to filter the dropdown list (defaults to 500 if mode = 'remote' or 10 if mode = 'local')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "triggerAction", - "type" : "String", - "desc" : "The action to execute when the trigger field is activated. Use 'all' to run the\nquery specified by the allQuery config option (defaults to 'query')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "resizable", - "type" : "Boolean", - "desc" : "True to add a resize handle to the bottom of the dropdown list (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "mobileTouchView", - "type" : "Boolean", - "desc" : "e) show mobile touch view when using a mobile default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "editable", - "type" : "Boolean", - "desc" : "False to prevent the user from typing text directly into the field, just like a\ntraditional select (defaults to true)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listWidth", - "type" : "Number", - "desc" : "The width in pixels of the dropdown list (defaults to the width of the ComboBox field)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "alwaysQuery", - "type" : "Boolean", - "desc" : "Disable caching of results, and always send query", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "handleHeight", - "type" : "Number", - "desc" : "The height in pixels of the dropdown list resize handle if resizable = true (defaults to 8)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "emptyResultText", - "type" : "Boolean", - "desc" : "only for touch device", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "title", - "type" : "String", - "desc" : "If supplied, a header element is created containing this text and added into the top of\nthe dropdown list (defaults to undefined, with no header element)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "queryParam", - "type" : "String", - "desc" : "Name of the query as it will be passed on the querystring (defaults to 'query')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "tpl", - "type" : "String/Roo.Template", - "desc" : "The template to use to render the output default is '{' + this.displayField + '}'", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "selectedClass", - "type" : "String", - "desc" : "CSS class to apply to the selected item in the dropdown list (defaults to 'x-combo-selected')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hiddenName", - "type" : "String", - "desc" : "If specified, a hidden form field with this name is dynamically generated to store the\nfield's data value (defaults to the underlying DOM element's name)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autoCreate", - "type" : "Boolean/Object", - "desc" : "A DomHelper element spec, or true for a default element spec (defaults to:\n{tag: \"input\", type: \"text\", size: \"24\", autocomplete: \"off\"})", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "removable", - "type" : "Boolean", - "desc" : "e) special filter default false", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "minChars", - "type" : "Number", - "desc" : "The minimum number of characters the user must type before autocomplete and typeahead activate\n(defaults to 4, does not apply if editable = false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "animate", - "type" : "Boolean", - "desc" : "default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "btnPosition", - "type" : "String", - "desc" : "set the position of the trigger button (left | right) default right", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClear", - "type" : "Boolean", - "desc" : "Disable showing of clear button.", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lazyRender", - "type" : "Boolean", - "desc" : "True to prevent the ComboBox from rendering until requested (should always be used when\nrendering into an Roo.Editor, defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listAlign", - "type" : "String", - "desc" : "A valid anchor position value. See {@link Roo.Element#alignTo} for details on supported\nanchor positions (defaults to 'tl-bl')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "showToggleBtn", - "type" : "Boolean", - "desc" : "show toggle button or not (true|false) default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "triggerList", - "type" : "Boolean", - "desc" : "trigger show the list or not (true|false) default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "mode", - "type" : "String", - "desc" : "Set to 'local' if the ComboBox loads local data (defaults to 'remote' which loads from the server)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "typeAhead", - "type" : "Boolean", - "desc" : "True to populate and autoselect the remainder of the text being typed after a configurable\ndelay (typeAheadDelay) if it matches a known value (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "triggerText", - "type" : "String", - "desc" : "multiple combobox trigger button text default 'Select'", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "growMin", - "type" : "Number", - "desc" : "", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "triggerClass", - "type" : "String", - "desc" : "An additional CSS class used to style the trigger button. The trigger will always get the\nclass 'x-form-trigger' by default and triggerClass will be appended if specified.", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - uses BS4 is-valid now", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "modalTitle", - "type" : "String", - "desc" : "The title of the dialog that pops up on mobile views.", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "valueField", - "type" : "String", - "desc" : "The underlying data value name to bind to this CombBox (defaults to undefined if\nmode = 'remote' or 'value' if mode = 'local'). \nNote: use of a valueField requires the user make a selection\nin order for a value to be mapped.", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "store", - "type" : "Roo.data.Store", - "desc" : "The data store to which this combo is bound (defaults to undefined)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - uses BS4 is-valid now", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "listClass", - "type" : "String", - "desc" : "CSS class to apply to the dropdown list element (defaults to '')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "displayField", - "type" : "String", - "desc" : "The underlying data field name to bind to this CombBox (defaults to undefined if\nmode = 'remote' or 'text' if mode = 'local')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tickable", - "type" : "Boolean", - "desc" : "ComboBox with tickable selections (true|false), default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "specialFilter", - "type" : "Boolean", - "desc" : "e) special filter default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "emptyTitle", - "type" : "String", - "desc" : "default ''", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "typeAheadDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds to wait until the typeahead text is displayed\nif typeAhead = true (defaults to 250)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "loadingText", - "type" : "String", - "desc" : "The text to display in the dropdown list while data is loading. Only applies\nwhen mode = 'remote' (defaults to 'Loading...')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "width", - "type" : "Number", - "desc" : "fixed with? experimental", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "caret", - "type" : "String", - "desc" : "r) BS3 only - carat fa name", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "hideTrigger", - "type" : "Boolean", - "desc" : "True to hide the trigger element and display only the base text field (defaults to false)", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "minListWidth", - "type" : "Number", - "desc" : "The minimum width of the dropdown list in pixels (defaults to 70, will be ignored if\nlistWidth has a higher value)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "multiple", - "type" : "Boolean", - "desc" : "e) ComboBobArray, default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxHeight", - "type" : "Number", - "desc" : "The maximum height in pixels of the dropdown list before scrollbars are shown (defaults to 300)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "mobile_restrict_height", - "type" : "Boolean", - "desc" : "e) restrict height for touch view", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "valueNotFoundText", - "type" : "String", - "desc" : "When using a name/value combo, if the value passed to setValue is not found in\nthe store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autoFocus", - "type" : "Boolean", - "desc" : "e) auto focus the first item, default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "pageSize", - "type" : "Number", - "desc" : "If greater than 0, a paging toolbar is displayed in the footer of the dropdown list and the\nfilter queries will execute with page start and limit parameters. Only applies when mode = 'remote' (defaults to 0)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "useNativeIOS", - "type" : "Boolean", - "desc" : "e) render it as classic select for ios, not support dynamic load data (default false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "forceSelection", - "type" : "Boolean", - "desc" : "True to restrict the selected value to one of the values in the list, false to\nallow the user to set arbitrary text into the field (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "append", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allQuery", - "type" : "String", - "desc" : "The text query to send to the server to return all records for the list with no filtering (defaults to '')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "blockFocus", - "type" : "Boolean", - "desc" : "Prevents all focus calls, so it can work with things like HTML edtor bar", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "shadow", - "type" : "Boolean/String", - "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\" for bottom-right", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "select", - "type" : "function", - "desc" : "Select an item in the dropdown list by its numeric index in the list. This function does NOT cause the select event to fire.\nThe store must be loaded and the list expanded for this function to work, otherwise use setValue.", - "sig" : "(index, scrollIntoView)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "index", - "type" : "Number", - "desc" : "The zero-based index of the list item to select", - "isOptional" : false - }, - { - "name" : "scrollIntoView", - "type" : "Boolean", - "desc" : "False to prevent the dropdown list from autoscrolling to display the\nselected item if it is not currently in view (defaults to true)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Expands the dropdown list if it is currently hidden. Fires the 'expand' event on completion.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "collapse", - "type" : "function", - "desc" : "Hides the dropdown list if it is currently expanded. Fires the 'collapse' event on completion.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the currently selected field value or empty string if no value is set.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "value The selected value" - } - ] - }, - { - "name" : "selectByValue", - "type" : "function", - "desc" : "Select an item in the dropdown list by its data value. This function does NOT cause the select event to fire.\nThe store must be loaded and the list expanded for this function to work, otherwise use setValue.", - "sig" : "(value, scrollIntoView)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "String", - "desc" : "The data value of the item to select", - "isOptional" : false - }, - { - "name" : "scrollIntoView", - "type" : "Boolean", - "desc" : "False to prevent the dropdown list from autoscrolling to display the\nselected item if it is not currently in view (defaults to true)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value matched an item in the list, else false" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets the specified value into the field. If the value finds a match, the corresponding record text\nwill be displayed in the field. If the value does not match the data value of an existing item,\nand the valueNotFoundText config option is defined, it will be displayed as the default field text.\nOtherwise the field will be blank (although the value will still be set).", - "sig" : "(value)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "String", - "desc" : "The value to match", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setFromData", - "type" : "function", - "desc" : "Sets the value of the field based on a object which is related to the record format for the store.", - "sig" : "(value)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Object", - "desc" : "the value to set as. or false on reset?", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setEditable", - "type" : "function", - "desc" : "Allow or prevent the user from directly editing the field text. If false is passed,\nthe user will only be able to select from the items defined in the dropdown list. This method\nis the runtime equivalent of setting the 'editable' config option at config time.", - "sig" : "(value)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Boolean", - "desc" : "True to allow the user to directly edit the field text", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "clearValue", - "type" : "function", - "desc" : "Clears any text/value currently set in the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isExpanded", - "type" : "function", - "desc" : "Returns true if the dropdown list is expanded, else false.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "doQuery", - "type" : "function", - "desc" : "Execute a query to filter the dropdown list. Fires the beforequery event prior to performing the\nquery allowing the query action to be canceled if needed.", - "sig" : "(query, forceAll)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "query", - "type" : "String", - "desc" : "The SQL query to execute", - "isOptional" : false - }, - { - "name" : "forceAll", - "type" : "Boolean", - "desc" : "True to force the query to execute even if there are currently fewer characters\nin the field than the minimum specified by the minChars config option. It also clears any filter previously\nsaved in the current store (defaults to false)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "onTriggerClick", - "type" : "function", - "desc" : "The function that should handle the trigger's click event. This method does nothing by default until overridden\nby an implementing function.", - "sig" : "(e)", - "static" : false, - "memberOf" : "Roo.bootstrap.TriggerField", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "e", - "type" : "EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "autoSize", - "type" : "function", - "desc" : "", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TriggerField", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "edit", - "type" : "function", - "desc" : "Fires when the 'edit' icon is pressed (add a listener to enable add button)", - "sig" : "function (combo, record)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "record", - "type" : "Roo.data.Record|false", - "desc" : "The data record returned from the underlying store (or false on nothing selected)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "afterremove", - "type" : "function", - "desc" : "Fires when the remove value from the combobox array", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "touchviewdisplay", - "type" : "function", - "desc" : "Fires when touch view require special display (default is using displayField)", - "sig" : "function (combo, cfg)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "cfg", - "type" : "Object", - "desc" : "set html .", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforequery", - "type" : "function", - "desc" : "Fires before all queries are processed. Return false to cancel the query or set cancel to true.\nThe event object passed has these properties:", - "sig" : "function (combo, query, forceAll, cancel, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "query", - "type" : "String", - "desc" : "The query", - "isOptional" : false - }, - { - "name" : "forceAll", - "type" : "Boolean", - "desc" : "true to force \"all\" query", - "isOptional" : false - }, - { - "name" : "cancel", - "type" : "Boolean", - "desc" : "true to cancel the query", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Object", - "desc" : "The query event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "remove", - "type" : "function", - "desc" : "Fires when the remove value from the combobox array", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeselect", - "type" : "function", - "desc" : "Fires before a list item is selected. Return false to cancel the selection.", - "sig" : "function (combo, record, index)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "record", - "type" : "Roo.data.Record", - "desc" : "The data record returned from the underlying store", - "isOptional" : false - }, - { - "name" : "index", - "type" : "Number", - "desc" : "The index of the selected item in the dropdown list", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "tick", - "type" : "function", - "desc" : "Fires when tick the element", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "add", - "type" : "function", - "desc" : "Fires when the 'add' icon is pressed (add a listener to enable add button)", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Fires when the dropdown list is expanded", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialfilter", - "type" : "function", - "desc" : "Fires when specialfilter", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "collapse", - "type" : "function", - "desc" : "Fires when the dropdown list is collapsed", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "select", - "type" : "function", - "desc" : "Fires when a list item is selected", - "sig" : "function (combo, record, index)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "record", - "type" : "Roo.data.Record", - "desc" : "The data record returned from the underlying store (or false on clear)", - "isOptional" : false - }, - { - "name" : "index", - "type" : "Number", - "desc" : "The index of the selected item in the dropdown list", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.DateField.json b/docs/symbols/Roo.bootstrap.DateField.json deleted file mode 100644 index 58544dab16..0000000000 --- a/docs/symbols/Roo.bootstrap.DateField.json +++ /dev/null @@ -1,2010 +0,0 @@ -{ - "name" : "Roo.bootstrap.DateField", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap DateField class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "DateField", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "todayHighlight", - "type" : "Boolean", - "desc" : "default false", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "altFormats", - "type" : "String", - "desc" : "Multiple date formats separated by \"|\" to try when parsing a user input value and it doesn't match the defined\nformat (defaults to 'm/d/Y|m-d-y|m-d-Y|m/d|m-d|d').", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "viewMode", - "type" : "String", - "desc" : "default empty, (months|years)", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "singleMode", - "type" : "Boolean", - "desc" : "default false (true | false)", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "daysOfWeekDisabled", - "type" : "Object", - "desc" : "default empty", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "endDate", - "type" : "Number", - "desc" : "default Infinity", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "language", - "type" : "String", - "desc" : "default en", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "keyboardNavigation", - "type" : "Boolean", - "desc" : "default true", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "calendarWeeks", - "type" : "Boolean", - "desc" : "default false", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "minViewMode", - "type" : "String", - "desc" : "default empty, (months|years)", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "startDate", - "type" : "Number", - "desc" : "default -Infinity", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "format", - "type" : "String", - "desc" : "The default date format string which can be overriden for localization support. The format must be\nvalid according to {@link Date#parseDate} (defaults to 'm/d/y').", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "weekStart", - "type" : "Number", - "desc" : "default 0", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "todayBtn", - "type" : "Boolean", - "desc" : "default false", - "memberOf" : "Roo.bootstrap.DateField" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "beforeselect", - "type" : "function", - "desc" : "Fires when before select a date.", - "sig" : "function (_self, date)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.DateField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "date", - "type" : "Mixed", - "desc" : "The date value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires when this field show.", - "sig" : "function (_self, date)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.DateField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "date", - "type" : "Mixed", - "desc" : "The date value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "select", - "type" : "function", - "desc" : "Fires when select a date.", - "sig" : "function (_self, date)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.DateField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "date", - "type" : "Mixed", - "desc" : "The date value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.DateSplitField.json b/docs/symbols/Roo.bootstrap.DateSplitField.json deleted file mode 100644 index 82216fb1b8..0000000000 --- a/docs/symbols/Roo.bootstrap.DateSplitField.json +++ /dev/null @@ -1,1305 +0,0 @@ -{ - "name" : "Roo.bootstrap.DateSplitField", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap DateSplitField class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "DateSplitField", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "yearPlaceholder", - "type" : "string", - "desc" : "", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "monthFormat", - "type" : "string", - "desc" : "default 'm'", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "monthAllowBlank", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label (0-12)", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "monthPlaceholder", - "type" : "string", - "desc" : "", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "yearFormat", - "type" : "string", - "desc" : "default 'Y'", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "dayAllowBlank", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "yearAllowBlank", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "dayPlaceholder", - "type" : "string", - "desc" : "", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "dayFormat", - "type" : "string", - "desc" : "default 'd'", - "memberOf" : "Roo.bootstrap.DateSplitField" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "days", - "type" : "function", - "desc" : "getting the data of days", - "sig" : "function (_self, days)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.DateSplitField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "days", - "type" : "Object", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "years", - "type" : "function", - "desc" : "getting the data of years", - "sig" : "function (_self, years)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.DateSplitField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "years", - "type" : "Object", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.FieldLabel.json b/docs/symbols/Roo.bootstrap.FieldLabel.json deleted file mode 100644 index 41f0399fc4..0000000000 --- a/docs/symbols/Roo.bootstrap.FieldLabel.json +++ /dev/null @@ -1,1276 +0,0 @@ -{ - "name" : "Roo.bootstrap.FieldLabel", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap FieldLabel class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "FieldLabel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - BS4 uses is-valid", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "tag", - "type" : "String", - "desc" : "tag of the element default label", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "class of the element", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "html", - "type" : "String", - "desc" : "contents of the element", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "e) target allowBlank default true", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - BS4 uses is-invalid", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "iconTooltip", - "type" : "String", - "desc" : "default \"This field is required\"", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "target", - "type" : "String", - "desc" : "label target", - "memberOf" : "Roo.bootstrap.FieldLabel" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "get", - "type" : "function", - "desc" : "fetch a FieldLabel Group based on the target", - "sig" : "(target)", - "static" : true, - "memberOf" : "", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "target", - "type" : "string", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "register", - "type" : "function", - "desc" : "register a FieldLabel Group", - "sig" : "(the)", - "static" : true, - "memberOf" : "", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "Roo.bootstrap.FieldLabel", - "desc" : "FieldLabel to add", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.FieldLabel", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.FieldLabel", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Form.json b/docs/symbols/Roo.bootstrap.Form.json deleted file mode 100644 index 3519d99626..0000000000 --- a/docs/symbols/Roo.bootstrap.Form.json +++ /dev/null @@ -1,1622 +0,0 @@ -{ - "name" : "Roo.bootstrap.Form", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [ - "Roo.bootstrap.Alert", - "Roo.bootstrap.BezierSignature", - "Roo.bootstrap.Brick", - "Roo.bootstrap.Button", - "Roo.bootstrap.ButtonGroup", - "Roo.bootstrap.ButtonUploader", - "Roo.bootstrap.Calendar", - "Roo.bootstrap.Card", - "Roo.bootstrap.CardUploader", - "Roo.bootstrap.CheckBox", - "Roo.bootstrap.Column", - "Roo.bootstrap.ComboBox", - "Roo.bootstrap.Container", - "Roo.bootstrap.DateField", - "Roo.bootstrap.DateSplitField", - "Roo.bootstrap.DocumentManager", - "Roo.bootstrap.DocumentSlider", - "Roo.bootstrap.DocumentViewer", - "Roo.bootstrap.DropTarget", - "Roo.bootstrap.Element", - "Roo.bootstrap.FieldLabel", - "Roo.bootstrap.Form", - "Roo.bootstrap.Graph", - "Roo.bootstrap.Header", - "Roo.bootstrap.HtmlEditor", - "Roo.bootstrap.Img", - "Roo.bootstrap.Input", - "Roo.bootstrap.LayoutMasonry", - "Roo.bootstrap.LayoutMasonryAuto", - "Roo.bootstrap.Link", - "Roo.bootstrap.LocationPicker", - "Roo.bootstrap.Markdown", - "Roo.bootstrap.MasonryBrick", - "Roo.bootstrap.MessageBar", - "Roo.bootstrap.MoneyField", - "Roo.bootstrap.MonthField", - "Roo.bootstrap.NumberField", - "Roo.bootstrap.Pagination", - "Roo.bootstrap.PaginationItem", - "Roo.bootstrap.PagingToolbar", - "Roo.bootstrap.PhoneInput", - "Roo.bootstrap.Popover", - "Roo.bootstrap.Progress", - "Roo.bootstrap.ProgressBar", - "Roo.bootstrap.Radio", - "Roo.bootstrap.RadioSet", - "Roo.bootstrap.Row", - "Roo.bootstrap.SecurePass", - "Roo.bootstrap.Slider", - "Roo.bootstrap.TabGroup", - "Roo.bootstrap.TabPanel", - "Roo.bootstrap.Table", - "Roo.bootstrap.TextArea", - "Roo.bootstrap.TimeField", - "Roo.bootstrap.TriggerField", - "Roo.bootstrap.UploadCropbox", - "Roo.bootstrap.breadcrumb.Item", - "Roo.bootstrap.breadcrumb.Nav", - "Roo.bootstrap.dash.NumberBox", - "Roo.bootstrap.dash.TabBox", - "Roo.bootstrap.dash.TabPane", - "Roo.bootstrap.htmleditor.ToolbarStandard", - "Roo.bootstrap.layout.Border", - "Roo.bootstrap.layout.Manager", - "Roo.bootstrap.menu.Item", - "Roo.bootstrap.menu.Menu", - "Roo.bootstrap.menu.Separator", - "Roo.bootstrap.nav.Group", - "Roo.bootstrap.nav.Headerbar", - "Roo.bootstrap.nav.Item", - "Roo.bootstrap.nav.ProgressBar", - "Roo.bootstrap.nav.ProgressBarItem", - "Roo.bootstrap.nav.Sidebar", - "Roo.bootstrap.nav.SidebarItem", - "Roo.bootstrap.nav.Simplebar" - ], - "tree_parent" : [], - "desc" : "Bootstrap Form class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "Form", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "labelAlign", - "type" : "String", - "desc" : "top | left (default top)", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "fileUpload", - "type" : "Boolean", - "desc" : "Set to true if this form is a file upload.", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "align", - "type" : "String", - "desc" : "left | right - for navbars", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "method", - "type" : "String", - "desc" : "GET | POST (default POST)", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "errorMask", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "timeout", - "type" : "Number", - "desc" : "Timeout for form actions in seconds (default is 30 seconds).", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "loadMask", - "type" : "Boolean", - "desc" : "load mask when submit (default true)", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "baseParams", - "type" : "Object", - "desc" : "Parameters to pass with all requests. e.g. baseParams: {id: '123', foo: 'bar'}.", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "maskBody", - "type" : "Boolean", - "desc" : "", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "url", - "type" : "String", - "desc" : "The URL to use for form actions if one isn't supplied in the action options.", - "memberOf" : "Roo.bootstrap.Form" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "maskOffset", - "type" : "Number", - "desc" : "Default 100", - "memberOf" : "Roo.bootstrap.Form" - } - ], - "methods" : [ - { - "name" : "doAction", - "type" : "function", - "desc" : "Performs a predefined action (submit or load) or custom actions you define on this form.", - "sig" : "(actionName, options)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "actionName", - "type" : "String", - "desc" : "The name of the action type", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) The options to pass to the action. All of the config options listed\nbelow are supported by both the submit and load actions unless otherwise noted (custom actions could also\naccept other config options):\n
\nProperty          Type             Description\n----------------  ---------------  ----------------------------------------------------------------------------------\nurl               String           The url for the action (defaults to the form's url)\nmethod            String           The form method to use (defaults to the form's method, or POST if not defined)\nparams            String/Object    The params to pass (defaults to the form's baseParams, or none if not defined)\nclientValidation  Boolean          Applies to submit only.  Pass true to call form.isValid() prior to posting to\n                                   validate the form on the client (defaults to false)\n
", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "BasicForm", - "desc" : "this" - } - ] - }, - { - "name" : "setValues", - "type" : "function", - "desc" : "Set values for fields in this form in bulk.", - "sig" : "(values)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "values", - "type" : "Array/Object", - "desc" : "Either an array in the form [{id:'fieldId', value:'foo'},...] or an object hash of {id: value, id2: value2}", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "BasicForm", - "desc" : "this" - } - ] - }, - { - "name" : "getFieldValues", - "type" : "function", - "desc" : "Returns the fields in this form as an object with key/value pairs.\nThis differs from getValues as it calls getValue on each child item, rather than using dom data.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Object", - "desc" : "" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark fields in this form invalid in bulk.", - "sig" : "(errors)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "errors", - "type" : "Array/Object", - "desc" : "Either an array in the form [{id:'fieldId', msg:'The message'},...] or an object hash of {id: msg, id2: msg2}", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "BasicForm", - "desc" : "this" - } - ] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clears all invalid messages in this form.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "BasicForm", - "desc" : "this" - } - ] - }, - { - "name" : "findField", - "type" : "function", - "desc" : "Find a Roo.form.Field in this form by id, dataIndex, name or hiddenName", - "sig" : "(id)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "id", - "type" : "String", - "desc" : "The value to search for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "", - "desc" : "Field" - } - ] - }, - { - "name" : "isDirty", - "type" : "function", - "desc" : "Returns true if any fields in this form have changed since their original load.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "", - "desc" : "Boolean" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets this form.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "BasicForm", - "desc" : "this" - } - ] - }, - { - "name" : "getValues", - "type" : "function", - "desc" : "Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name\nthey are returned as an array.", - "sig" : "(asString)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "asString", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Object", - "desc" : "" - } - ] - }, - { - "name" : "isValid", - "type" : "function", - "desc" : "Returns true if client-side validation on the form is successful.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "", - "desc" : "Boolean" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "actionfailed", - "type" : "function", - "desc" : "Fires when an action fails.", - "sig" : "function (_self, action)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Form", - "desc" : "", - "isOptional" : false - }, - { - "name" : "action", - "type" : "Action", - "desc" : "The action that failed", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "actioncomplete", - "type" : "function", - "desc" : "Fires when an action is completed.", - "sig" : "function (_self, action)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Form", - "desc" : "", - "isOptional" : false - }, - { - "name" : "action", - "type" : "Action", - "desc" : "The action that completed", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeaction", - "type" : "function", - "desc" : "Fires before any action is performed. Return false to cancel the action.", - "sig" : "function (_self, action)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Form", - "desc" : "", - "isOptional" : false - }, - { - "name" : "action", - "type" : "Action", - "desc" : "The action to be performed", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "clientvalidation", - "type" : "function", - "desc" : "If the monitorValid config option is true, this event fires repetitively to notify of valid state", - "sig" : "function (_self, valid)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Form", - "desc" : "", - "isOptional" : false - }, - { - "name" : "valid", - "type" : "Boolean", - "desc" : "true if the form has passed client-side validation", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.HtmlEditor.json b/docs/symbols/Roo.bootstrap.HtmlEditor.json deleted file mode 100644 index 78c20d8c40..0000000000 --- a/docs/symbols/Roo.bootstrap.HtmlEditor.json +++ /dev/null @@ -1,2167 +0,0 @@ -{ - "name" : "Roo.bootstrap.HtmlEditor", - "augments" : [ - "Roo.bootstrap.TextArea", - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap HtmlEditor class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "HtmlEditor", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "resizable", - "type" : "String", - "desc" : "'s' or 'se' or 'e' - wrapps the element in a\n Roo.resizable.", - "memberOf" : "Roo.bootstrap.HtmlEditor" - }, - { - "name" : "toolbars", - "type" : "Array", - "desc" : "Array of toolbars. - defaults to just the Standard one", - "memberOf" : "Roo.bootstrap.HtmlEditor" - }, - { - "name" : "width", - "type" : "Number", - "desc" : "(in pixels)", - "memberOf" : "Roo.bootstrap.HtmlEditor" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "height", - "type" : "Number", - "desc" : "(in pixels)", - "memberOf" : "Roo.bootstrap.HtmlEditor" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "wrap", - "type" : "string", - "desc" : "d)Specifies how the text in a text area is to be wrapped when submitted in a form", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "buttons", - "type" : "Array", - "desc" : "Array of toolbar's buttons. - defaults to empty", - "memberOf" : "Roo.bootstrap.HtmlEditor" - }, - { - "name" : "rows", - "type" : "Number", - "desc" : "Specifies the visible number of lines in a text area", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "cols", - "type" : "Number", - "desc" : "Specifies the visible width of a text area", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "stylesheets", - "type" : "Array", - "desc" : "url of stylesheets. set to [] to disable stylesheets.", - "memberOf" : "Roo.bootstrap.HtmlEditor" - }, - { - "name" : "resize", - "type" : "string", - "desc" : "l)", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "html", - "type" : "string", - "desc" : "text", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "toggleSourceEdit", - "type" : "function", - "desc" : "Toggles the editor between standard and source edit mode.", - "sig" : "(sourceEdit)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "sourceEdit", - "type" : "Boolean", - "desc" : "(optional) True for source edit, false for standard", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "createToolbar", - "type" : "function", - "desc" : "Protected method that will not generally be called directly. It\nis called when the editor creates its toolbar. Override this method if you need to\nadd custom toolbar buttons.", - "sig" : "(editor)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "editor", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real textarea element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "initialize", - "type" : "function", - "desc" : "Fires when the editor is fully initialized (including the iframe)", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforesync", - "type" : "function", - "desc" : "Fires before the textarea is updated with content from the editor iframe. Return false\nto cancel the sync.", - "sig" : "function (_self, html)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - }, - { - "name" : "html", - "type" : "String", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "", - "sig" : "function ()\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "push", - "type" : "function", - "desc" : "Fires when the iframe editor is updated with content from the textarea.", - "sig" : "function (_self, html)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - }, - { - "name" : "html", - "type" : "String", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "", - "sig" : "function ()\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "editorevent", - "type" : "function", - "desc" : "Fires when on any editor (mouse up/down cursor movement etc.) - used for toolbar hooks.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "sync", - "type" : "function", - "desc" : "Fires when the textarea is updated with content from the editor iframe.", - "sig" : "function (_self, html)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - }, - { - "name" : "html", - "type" : "String", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "autosave", - "type" : "function", - "desc" : "Auto save the htmlEditor value as a file into Events", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "", - "sig" : "function ()\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "savedpreview", - "type" : "function", - "desc" : "preview the saved version of htmlEditor", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "", - "sig" : "function ()\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "editmodechange", - "type" : "function", - "desc" : "Fires when the editor switches edit modes", - "sig" : "function (_self, sourceEdit)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - }, - { - "name" : "sourceEdit", - "type" : "Boolean", - "desc" : "True if source edit, false if standard editing.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "firstfocus", - "type" : "function", - "desc" : "Fires when on first focus - needed by toolbars..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforepush", - "type" : "function", - "desc" : "Fires before the iframe editor is updated with content from the textarea. Return false\nto cancel the push.", - "sig" : "function (_self, html)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - }, - { - "name" : "html", - "type" : "String", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "activate", - "type" : "function", - "desc" : "Fires when the editor is first receives the focus. Any insertion must wait\nuntil after this event.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "HtmlEditor", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Input.json b/docs/symbols/Roo.bootstrap.Input.json deleted file mode 100644 index d5da4fe1ed..0000000000 --- a/docs/symbols/Roo.bootstrap.Input.json +++ /dev/null @@ -1,1890 +0,0 @@ -{ - "name" : "Roo.bootstrap.Input", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { - "Roo.bootstrap.ComboBox" : [ - "Roo.bootstrap.MoneyField" - ], - "Roo.bootstrap.Input" : [ - "Roo.bootstrap.CheckBox", - "Roo.bootstrap.DateField", - "Roo.bootstrap.MonthField", - "Roo.bootstrap.NumberField", - "Roo.bootstrap.RadioSet", - "Roo.bootstrap.SecurePass", - "Roo.bootstrap.TextArea", - "Roo.bootstrap.TimeField", - "Roo.bootstrap.TriggerField" - ], - "Roo.bootstrap.TextArea" : [ - "Roo.bootstrap.HtmlEditor", - "Roo.bootstrap.Markdown" - ], - "Roo.bootstrap.TriggerField" : [ - "Roo.bootstrap.ComboBox", - "Roo.bootstrap.PhoneInput" - ] - }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap Input class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Markdown.json b/docs/symbols/Roo.bootstrap.Markdown.json deleted file mode 100644 index 8d04f9e9b6..0000000000 --- a/docs/symbols/Roo.bootstrap.Markdown.json +++ /dev/null @@ -1,1898 +0,0 @@ -{ - "name" : "Roo.bootstrap.Markdown", - "augments" : [ - "Roo.bootstrap.TextArea", - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap Showdown editable area", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "Markdown", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "wrap", - "type" : "string", - "desc" : "d)Specifies how the text in a text area is to be wrapped when submitted in a form", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "content", - "type" : "string", - "desc" : "", - "memberOf" : "Roo.bootstrap.Markdown" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "rows", - "type" : "Number", - "desc" : "Specifies the visible number of lines in a text area", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "cols", - "type" : "Number", - "desc" : "Specifies the visible width of a text area", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "resize", - "type" : "string", - "desc" : "l)", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "html", - "type" : "string", - "desc" : "text", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real textarea element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TextArea", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Menu.json b/docs/symbols/Roo.bootstrap.Menu.json deleted file mode 100644 index cf29ca1220..0000000000 --- a/docs/symbols/Roo.bootstrap.Menu.json +++ /dev/null @@ -1,1302 +0,0 @@ -{ - "name" : "Roo.bootstrap.Menu", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Menu class - container for MenuItems", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "Menu", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "isLink", - "type" : "bool", - "desc" : "e) the menu has link disable auto expand and collaspe (default false)", - "memberOf" : "" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "align", - "type" : "String", - "desc" : "default tl-bl? == below - how the menu should be aligned.", - "memberOf" : "" - }, - { - "name" : "hidden", - "type" : "bool", - "desc" : "if the menu should be hidden when rendered.", - "memberOf" : "" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "stopEvent", - "type" : "bool", - "desc" : "e) Stop event after trigger press (default true)", - "memberOf" : "" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "hideTrigger", - "type" : "bool", - "desc" : "e) default false - hide the carret for trigger.", - "memberOf" : "" - }, - { - "name" : "registerMenu", - "type" : "Boolean", - "desc" : "True (default) - means that clicking on screen etc. hides it.", - "memberOf" : "" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "type", - "type" : "String", - "desc" : "u) type of menu", - "memberOf" : "" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "hide", - "type" : "function", - "desc" : "Hides this menu and optionally all parent menus", - "sig" : "(deep)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "deep", - "type" : "Boolean", - "desc" : "(optional) True to hide all parent menus recursively, if any (defaults to false)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "showAt", - "type" : "function", - "desc" : "Displays this menu at a specific xy position", - "sig" : "(xyPosition, parentMenu)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "xyPosition", - "type" : "Array", - "desc" : "Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based)", - "isOptional" : false - }, - { - "name" : "parentMenu", - "type" : "Roo.menu.Menu", - "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Displays this menu relative to another element", - "sig" : "(element, position, parentMenu)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "element", - "type" : "String/HTMLElement/Roo.Element", - "desc" : "The element to align to", - "isOptional" : false - }, - { - "name" : "position", - "type" : "String", - "desc" : "(optional) The {@link Roo.Element#alignTo} anchor position to use in aligning to\nthe element (defaults to this.defaultAlign)", - "isOptional" : false - }, - { - "name" : "parentMenu", - "type" : "Roo.menu.Menu", - "desc" : "(optional) This menu's parent menu, if applicable (defaults to undefined)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "mouseout", - "type" : "function", - "desc" : "Fires when the mouse exits this menu", - "sig" : "function (_self, e, menuItem)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.menu.Menu", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - }, - { - "name" : "menuItem", - "type" : "Roo.menu.Item", - "desc" : "The menu item that was clicked", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "click", - "type" : "function", - "desc" : "Fires when this menu is clicked (or when the enter key is pressed while it is active)", - "sig" : "function (_self, menuItem, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.menu.Menu", - "desc" : "", - "isOptional" : false - }, - { - "name" : "menuItem", - "type" : "Roo.menu.Item", - "desc" : "The menu item that was clicked", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "mouseover", - "type" : "function", - "desc" : "Fires when the mouse is hovering over this menu", - "sig" : "function (_self, e, menuItem)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.menu.Menu", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - }, - { - "name" : "menuItem", - "type" : "Roo.menu.Item", - "desc" : "The menu item that was clicked", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after this menu is hidden", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.menu.Menu", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after this menu is displayed", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.menu.Menu", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before this menu is hidden (return false to block)", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.menu.Menu", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "itemclick", - "type" : "function", - "desc" : "Fires when a menu item contained in this menu is clicked", - "sig" : "function (baseItem, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "baseItem", - "type" : "Roo.menu.BaseItem", - "desc" : "The BaseItem that was clicked", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before this menu is displayed (return false to block)", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.menu.Menu", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.MenuItem.json b/docs/symbols/Roo.bootstrap.MenuItem.json deleted file mode 100644 index 31b6df4063..0000000000 --- a/docs/symbols/Roo.bootstrap.MenuItem.json +++ /dev/null @@ -1,1148 +0,0 @@ -{ - "name" : "Roo.bootstrap.MenuItem", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap MenuItem class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "MenuItem", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "isContainer", - "type" : "Boolean", - "desc" : "is it a container - just returns a drop down item..", - "memberOf" : "" - }, - { - "name" : "menu", - "type" : "Roo.bootsrap.Menu", - "desc" : "the child menu.", - "memberOf" : "" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "preventDefault", - "type" : "Boolean", - "desc" : "do not trigger A href on clicks (default false).", - "memberOf" : "" - }, - { - "name" : "html", - "type" : "String", - "desc" : "the menu label", - "memberOf" : "" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "active", - "type" : "Boolean", - "desc" : "used on sidebars to highlight active itesm", - "memberOf" : "" - }, - { - "name" : "fa", - "type" : "String", - "desc" : "favicon to show on left of menu item.", - "memberOf" : "" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "href", - "type" : "String", - "desc" : "the link", - "memberOf" : "" - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "click", - "type" : "function", - "desc" : "The raw click event for the entire grid.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.MenuItem", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.MenuMgr.json b/docs/symbols/Roo.bootstrap.MenuMgr.json deleted file mode 100644 index d42579645e..0000000000 --- a/docs/symbols/Roo.bootstrap.MenuMgr.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name" : "Roo.bootstrap.MenuMgr", - "augments" : [], - "desc" : "Provides a common registry of all menu items on a page so that they can be easily accessed by id.", - "isSingleton" : true, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "MenuMgr", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [], - "methods" : [ - { - "name" : "hideAll", - "type" : "function", - "desc" : "Hides all menus that are currently visible", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "get", - "type" : "function", - "desc" : "Returns a {@link Roo.menu.Menu} object", - "sig" : "(menu)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "menu", - "type" : "String/Object", - "desc" : "The string menu id, an existing menu object reference, or a Menu config that will\nbe used to generate and return a new Menu instance.", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.MenuSeparator.json b/docs/symbols/Roo.bootstrap.MenuSeparator.json deleted file mode 100644 index 603a5c2ce8..0000000000 --- a/docs/symbols/Roo.bootstrap.MenuSeparator.json +++ /dev/null @@ -1,1080 +0,0 @@ -{ - "name" : "Roo.bootstrap.MenuSeparator", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap MenuSeparator class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "MenuSeparator", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.MoneyField.json b/docs/symbols/Roo.bootstrap.MoneyField.json deleted file mode 100644 index 727e93d8bd..0000000000 --- a/docs/symbols/Roo.bootstrap.MoneyField.json +++ /dev/null @@ -1,2871 +0,0 @@ -{ - "name" : "Roo.bootstrap.MoneyField", - "augments" : [ - "Roo.bootstrap.ComboBox", - "Roo.bootstrap.TriggerField", - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap MoneyField class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "MoneyField", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "Configuration options", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "growMax", - "type" : "Number", - "desc" : "", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to select any existing text in the field immediately on focus. Only applies\nwhen editable = true (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "grow", - "type" : "Boolean", - "desc" : "", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "queryDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds to delay between the start of typing and sending the\nquery to filter the dropdown list (defaults to 500 if mode = 'remote' or 10 if mode = 'local')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "triggerAction", - "type" : "String", - "desc" : "The action to execute when the trigger field is activated. Use 'all' to run the\nquery specified by the allQuery config option (defaults to 'query')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "resizable", - "type" : "Boolean", - "desc" : "True to add a resize handle to the bottom of the dropdown list (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "mobileTouchView", - "type" : "Boolean", - "desc" : "e) show mobile touch view when using a mobile default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "editable", - "type" : "Boolean", - "desc" : "False to prevent the user from typing text directly into the field, just like a\ntraditional select (defaults to true)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "defaults", - "type" : "String", - "desc" : "currency of the MoneyField\nvalue should be in lkey", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "thousandsDelimiter", - "type" : "String", - "desc" : "Symbol of thousandsDelimiter", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "castInt", - "type" : "Boolean", - "desc" : "e) cast int if true (defalut true)", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listWidth", - "type" : "Number", - "desc" : "The width in pixels of the dropdown list (defaults to the width of the ComboBox field)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "alwaysQuery", - "type" : "Boolean", - "desc" : "Disable caching of results, and always send query", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "handleHeight", - "type" : "Number", - "desc" : "The height in pixels of the dropdown list resize handle if resizable = true (defaults to 8)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "emptyResultText", - "type" : "Boolean", - "desc" : "only for touch device", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "title", - "type" : "String", - "desc" : "If supplied, a header element is created containing this text and added into the top of\nthe dropdown list (defaults to undefined, with no header element)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "allowZero", - "type" : "Boolean", - "desc" : "False to blank out if the user enters '0' (defaults to true)", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "max_length", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "minValue", - "type" : "Number", - "desc" : "The minimum allowed value (defaults to Number.NEGATIVE_INFINITY)", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "queryParam", - "type" : "String", - "desc" : "Name of the query as it will be passed on the querystring (defaults to 'query')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "tpl", - "type" : "String/Roo.Template", - "desc" : "The template to use to render the output default is '{' + this.displayField + '}'", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "selectedClass", - "type" : "String", - "desc" : "CSS class to apply to the selected item in the dropdown list (defaults to 'x-combo-selected')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hiddenName", - "type" : "String", - "desc" : "If specified, a hidden form field with this name is dynamically generated to store the\nfield's data value (defaults to the underlying DOM element's name)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autoCreate", - "type" : "Boolean/Object", - "desc" : "A DomHelper element spec, or true for a default element spec (defaults to:\n{tag: \"input\", type: \"text\", size: \"24\", autocomplete: \"off\"})", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "allowNegative", - "type" : "Boolean", - "desc" : "False to prevent entering a negative sign (defaults to true)", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "removable", - "type" : "Boolean", - "desc" : "e) special filter default false", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "minChars", - "type" : "Number", - "desc" : "The minimum number of characters the user must type before autocomplete and typeahead activate\n(defaults to 4, does not apply if editable = false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "animate", - "type" : "Boolean", - "desc" : "default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "btnPosition", - "type" : "String", - "desc" : "set the position of the trigger button (left | right) default right", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClear", - "type" : "Boolean", - "desc" : "Disable showing of clear button.", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lazyRender", - "type" : "Boolean", - "desc" : "True to prevent the ComboBox from rendering until requested (should always be used when\nrendering into an Roo.Editor, defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listAlign", - "type" : "String", - "desc" : "A valid anchor position value. See {@link Roo.Element#alignTo} for details on supported\nanchor positions (defaults to 'tl-bl')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "showToggleBtn", - "type" : "Boolean", - "desc" : "show toggle button or not (true|false) default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "triggerList", - "type" : "Boolean", - "desc" : "trigger show the list or not (true|false) default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "mode", - "type" : "String", - "desc" : "Set to 'local' if the ComboBox loads local data (defaults to 'remote' which loads from the server)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "typeAhead", - "type" : "Boolean", - "desc" : "True to populate and autoselect the remainder of the text being typed after a configurable\ndelay (typeAheadDelay) if it matches a known value (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "triggerText", - "type" : "String", - "desc" : "multiple combobox trigger button text default 'Select'", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "growMin", - "type" : "Number", - "desc" : "", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "minText", - "type" : "String", - "desc" : "Error text to display if the minimum value validation fails (defaults to \"The minimum value for this field is {minValue}\")", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "triggerClass", - "type" : "String", - "desc" : "An additional CSS class used to style the trigger button. The trigger will always get the\nclass 'x-form-trigger' by default and triggerClass will be appended if specified.", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - uses BS4 is-valid now", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "modalTitle", - "type" : "String", - "desc" : "The title of the dialog that pops up on mobile views.", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "valueField", - "type" : "String", - "desc" : "The underlying data value name to bind to this CombBox (defaults to undefined if\nmode = 'remote' or 'value' if mode = 'local'). \nNote: use of a valueField requires the user make a selection\nin order for a value to be mapped.", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "store", - "type" : "Roo.data.Store", - "desc" : "Store to lookup currency??", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - uses BS4 is-valid now", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "listClass", - "type" : "String", - "desc" : "CSS class to apply to the dropdown list element (defaults to '')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "displayField", - "type" : "String", - "desc" : "The underlying data field name to bind to this CombBox (defaults to undefined if\nmode = 'remote' or 'text' if mode = 'local')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tickable", - "type" : "Boolean", - "desc" : "ComboBox with tickable selections (true|false), default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "specialFilter", - "type" : "Boolean", - "desc" : "e) special filter default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "emptyTitle", - "type" : "String", - "desc" : "default ''", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "typeAheadDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds to wait until the typeahead text is displayed\nif typeAhead = true (defaults to 250)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "loadingText", - "type" : "String", - "desc" : "The text to display in the dropdown list while data is loading. Only applies\nwhen mode = 'remote' (defaults to 'Loading...')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "width", - "type" : "Number", - "desc" : "fixed with? experimental", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "caret", - "type" : "String", - "desc" : "r) BS3 only - carat fa name", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "hideTrigger", - "type" : "Boolean", - "desc" : "True to hide the trigger element and display only the base text field (defaults to false)", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "minListWidth", - "type" : "Number", - "desc" : "The minimum width of the dropdown list in pixels (defaults to 70, will be ignored if\nlistWidth has a higher value)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "multiple", - "type" : "Boolean", - "desc" : "e) ComboBobArray, default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxHeight", - "type" : "Number", - "desc" : "The maximum height in pixels of the dropdown list before scrollbars are shown (defaults to 300)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "maxValue", - "type" : "Number", - "desc" : "The maximum allowed value (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "mobile_restrict_height", - "type" : "Boolean", - "desc" : "e) restrict height for touch view", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "allowDecimals", - "type" : "Boolean", - "desc" : "False to disallow decimal values (defaults to true)", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "nanText", - "type" : "String", - "desc" : "Error text to display if the value is not a valid number. For example, this can happen\nif a valid character like '.' or '-' is left in the field with no number (defaults to \"{value} is not a valid number\")", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "valueNotFoundText", - "type" : "String", - "desc" : "When using a name/value combo, if the value passed to setValue is not found in\nthe store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "decimalSeparator", - "type" : "String", - "desc" : "Character(s) to allow as the decimal separator (defaults to '.')", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "autoFocus", - "type" : "Boolean", - "desc" : "e) auto focus the first item, default true", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "pageSize", - "type" : "Number", - "desc" : "If greater than 0, a paging toolbar is displayed in the footer of the dropdown list and the\nfilter queries will execute with page start and limit parameters. Only applies when mode = 'remote' (defaults to 0)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "useNativeIOS", - "type" : "Boolean", - "desc" : "e) render it as classic select for ios, not support dynamic load data (default false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "forceSelection", - "type" : "Boolean", - "desc" : "True to restrict the selected value to one of the values in the list, false to\nallow the user to set arbitrary text into the field (defaults to false)", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "append", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allQuery", - "type" : "String", - "desc" : "The text query to send to the server to return all records for the list with no filtering (defaults to '')", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "blockFocus", - "type" : "Boolean", - "desc" : "Prevents all focus calls, so it can work with things like HTML edtor bar", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "shadow", - "type" : "Boolean/String", - "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\" for bottom-right", - "memberOf" : "Roo.bootstrap.ComboBox" - }, - { - "name" : "maxText", - "type" : "String", - "desc" : "Error text to display if the maximum value validation fails (defaults to \"The maximum value for this field is {maxValue}\")", - "memberOf" : "Roo.bootstrap.MoneyField" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "decimalPrecision", - "type" : "Number", - "desc" : "The maximum precision to display after the decimal separator (defaults to 2)", - "memberOf" : "Roo.bootstrap.MoneyField" - } - ], - "methods" : [ - { - "name" : "select", - "type" : "function", - "desc" : "Select an item in the dropdown list by its numeric index in the list. This function does NOT cause the select event to fire.\nThe store must be loaded and the list expanded for this function to work, otherwise use setValue.", - "sig" : "(index, scrollIntoView)", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "index", - "type" : "Number", - "desc" : "The zero-based index of the list item to select", - "isOptional" : false - }, - { - "name" : "scrollIntoView", - "type" : "Boolean", - "desc" : "False to prevent the dropdown list from autoscrolling to display the\nselected item if it is not currently in view (defaults to true)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Expands the dropdown list if it is currently hidden. Fires the 'expand' event on completion.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "collapse", - "type" : "function", - "desc" : "Hides the dropdown list if it is currently expanded. Fires the 'collapse' event on completion.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the currently selected field value or empty string if no value is set.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "value The selected value" - } - ] - }, - { - "name" : "selectByValue", - "type" : "function", - "desc" : "Select an item in the dropdown list by its data value. This function does NOT cause the select event to fire.\nThe store must be loaded and the list expanded for this function to work, otherwise use setValue.", - "sig" : "(value, scrollIntoView)", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "String", - "desc" : "The data value of the item to select", - "isOptional" : false - }, - { - "name" : "scrollIntoView", - "type" : "Boolean", - "desc" : "False to prevent the dropdown list from autoscrolling to display the\nselected item if it is not currently in view (defaults to true)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value matched an item in the list, else false" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets the specified value into the field. If the value finds a match, the corresponding record text\nwill be displayed in the field. If the value does not match the data value of an existing item,\nand the valueNotFoundText config option is defined, it will be displayed as the default field text.\nOtherwise the field will be blank (although the value will still be set).", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "String", - "desc" : "The value to match", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setFromData", - "type" : "function", - "desc" : "Sets the value of the field based on a object which is related to the record format for the store.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Object", - "desc" : "the value to set as. or false on reset?", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setEditable", - "type" : "function", - "desc" : "Allow or prevent the user from directly editing the field text. If false is passed,\nthe user will only be able to select from the items defined in the dropdown list. This method\nis the runtime equivalent of setting the 'editable' config option at config time.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Boolean", - "desc" : "True to allow the user to directly edit the field text", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "clearValue", - "type" : "function", - "desc" : "Clears any text/value currently set in the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isExpanded", - "type" : "function", - "desc" : "Returns true if the dropdown list is expanded, else false.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "doQuery", - "type" : "function", - "desc" : "Execute a query to filter the dropdown list. Fires the beforequery event prior to performing the\nquery allowing the query action to be canceled if needed.", - "sig" : "(query, forceAll)", - "static" : false, - "memberOf" : "Roo.bootstrap.ComboBox", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "query", - "type" : "String", - "desc" : "The SQL query to execute", - "isOptional" : false - }, - { - "name" : "forceAll", - "type" : "Boolean", - "desc" : "True to force the query to execute even if there are currently fewer characters\nin the field than the minimum specified by the minChars config option. It also clears any filter previously\nsaved in the current store (defaults to false)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "onTriggerClick", - "type" : "function", - "desc" : "The function that should handle the trigger's click event. This method does nothing by default until overridden\nby an implementing function.", - "sig" : "(e)", - "static" : false, - "memberOf" : "Roo.bootstrap.TriggerField", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "e", - "type" : "EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "autoSize", - "type" : "function", - "desc" : "", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TriggerField", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "edit", - "type" : "function", - "desc" : "Fires when the 'edit' icon is pressed (add a listener to enable add button)", - "sig" : "function (combo, record)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "record", - "type" : "Roo.data.Record|false", - "desc" : "The data record returned from the underlying store (or false on nothing selected)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "afterremove", - "type" : "function", - "desc" : "Fires when the remove value from the combobox array", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "touchviewdisplay", - "type" : "function", - "desc" : "Fires when touch view require special display (default is using displayField)", - "sig" : "function (combo, cfg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "cfg", - "type" : "Object", - "desc" : "set html .", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforequery", - "type" : "function", - "desc" : "Fires before all queries are processed. Return false to cancel the query or set cancel to true.\nThe event object passed has these properties:", - "sig" : "function (combo, query, forceAll, cancel, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "query", - "type" : "String", - "desc" : "The query", - "isOptional" : false - }, - { - "name" : "forceAll", - "type" : "Boolean", - "desc" : "true to force \"all\" query", - "isOptional" : false - }, - { - "name" : "cancel", - "type" : "Boolean", - "desc" : "true to cancel the query", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Object", - "desc" : "The query event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "remove", - "type" : "function", - "desc" : "Fires when the remove value from the combobox array", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeselect", - "type" : "function", - "desc" : "Fires before a list item is selected. Return false to cancel the selection.", - "sig" : "function (combo, record, index)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "record", - "type" : "Roo.data.Record", - "desc" : "The data record returned from the underlying store", - "isOptional" : false - }, - { - "name" : "index", - "type" : "Number", - "desc" : "The index of the selected item in the dropdown list", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "tick", - "type" : "function", - "desc" : "Fires when tick the element", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "add", - "type" : "function", - "desc" : "Fires when the 'add' icon is pressed (add a listener to enable add button)", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Fires when the dropdown list is expanded", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialfilter", - "type" : "function", - "desc" : "Fires when specialfilter", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "collapse", - "type" : "function", - "desc" : "Fires when the dropdown list is collapsed", - "sig" : "function (combo)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "select", - "type" : "function", - "desc" : "Fires when a list item is selected", - "sig" : "function (combo, record, index)\n{\n\n}", - "memberOf" : "Roo.bootstrap.ComboBox", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "combo", - "type" : "Roo.bootstrap.ComboBox", - "desc" : "This combo box", - "isOptional" : false - }, - { - "name" : "record", - "type" : "Roo.data.Record", - "desc" : "The data record returned from the underlying store (or false on clear)", - "isOptional" : false - }, - { - "name" : "index", - "type" : "Number", - "desc" : "The index of the selected item in the dropdown list", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.MonthField.json b/docs/symbols/Roo.bootstrap.MonthField.json deleted file mode 100644 index 352eeb7295..0000000000 --- a/docs/symbols/Roo.bootstrap.MonthField.json +++ /dev/null @@ -1,1912 +0,0 @@ -{ - "name" : "Roo.bootstrap.MonthField", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap MonthField class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "MonthField", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "language", - "type" : "String", - "desc" : "default en", - "memberOf" : "Roo.bootstrap.MonthField" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "show", - "type" : "function", - "desc" : "Fires when this field show.", - "sig" : "function (_self, date)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.MonthField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "date", - "type" : "Mixed", - "desc" : "The date value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "select", - "type" : "function", - "desc" : "Fires when select a date.", - "sig" : "function (_self, oldvalue, newvalue)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.MonthField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "oldvalue", - "type" : "String", - "desc" : "The old value", - "isOptional" : false - }, - { - "name" : "newvalue", - "type" : "String", - "desc" : "The new value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavGroup.json b/docs/symbols/Roo.bootstrap.NavGroup.json deleted file mode 100644 index d6f2f60c58..0000000000 --- a/docs/symbols/Roo.bootstrap.NavGroup.json +++ /dev/null @@ -1,1316 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavGroup", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap NavGroup class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavGroup", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t)", - "memberOf" : "" - }, - { - "name" : "inverse", - "type" : "Boolean", - "desc" : "", - "memberOf" : "" - }, - { - "name" : "pilltype", - "type" : "Boolean", - "desc" : "default true (turn to off to disable active toggle)", - "memberOf" : "" - }, - { - "name" : "navId", - "type" : "String", - "desc" : "- reference Id for navbar.", - "memberOf" : "" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "type", - "type" : "String", - "desc" : "b) default nav", - "memberOf" : "" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "register", - "type" : "function", - "desc" : "register a Navigation item", - "sig" : "(the)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "Roo.bootstrap.NavItem", - "desc" : "navitem to add", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getActive", - "type" : "function", - "desc" : "gets the active Navigation item", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.bootstrap.NavItem", - "desc" : "the current navitem" - } - ] - }, - { - "name" : "addItem", - "type" : "function", - "desc" : "adds a Navigation item", - "sig" : "(the)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "Roo.bootstrap.NavItem", - "desc" : "navitem to add", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "register", - "type" : "function", - "desc" : "register a Navigation Group", - "sig" : "(the)", - "static" : true, - "memberOf" : "", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "Roo.bootstrap.NavGroup", - "desc" : "navgroup to add", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "get", - "type" : "function", - "desc" : "fetch a Navigation Group based on the navigation ID", - "sig" : "(the)", - "static" : true, - "memberOf" : "", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "string", - "desc" : "navgroup to add", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setActiveItem", - "type" : "function", - "desc" : "sets the active Navigation item", - "sig" : "(the)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "Roo.bootstrap.NavItem", - "desc" : "new current navitem", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "clearAll", - "type" : "function", - "desc" : "clear all the Navigation item", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "changed", - "type" : "function", - "desc" : "Fires when the active item changes", - "sig" : "function (_self, selected, prev)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.NavGroup", - "desc" : "", - "isOptional" : false - }, - { - "name" : "selected", - "type" : "Roo.bootstrap.Navbar.Item", - "desc" : "The item selected", - "isOptional" : false - }, - { - "name" : "prev", - "type" : "Roo.bootstrap.Navbar.Item", - "desc" : "The previously selected item", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavHeaderbar.json b/docs/symbols/Roo.bootstrap.NavHeaderbar.json deleted file mode 100644 index 0cc1f494cd..0000000000 --- a/docs/symbols/Roo.bootstrap.NavHeaderbar.json +++ /dev/null @@ -1,1230 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavHeaderbar", - "augments" : [ - "Roo.bootstrap.NavSimplebar", - "Roo.bootstrap.Navbar", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Sidebar class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavHeaderbar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "brand_href", - "type" : "String", - "desc" : "href of the brand", - "memberOf" : "" - }, - { - "name" : "desktopCenter", - "type" : "Boolean", - "desc" : "should the header be centered on desktop using a container class", - "memberOf" : "" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inverse", - "type" : "Boolean", - "desc" : "is inverted color", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) alignment", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "brand", - "type" : "String", - "desc" : "what is brand", - "memberOf" : "" - }, - { - "name" : "position", - "type" : "String", - "desc" : "p) position", - "memberOf" : "" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "srButton", - "type" : "Boolean", - "desc" : "generate the (screen reader / mobile) sr-only button default true", - "memberOf" : "" - }, - { - "name" : "tag", - "type" : "String", - "desc" : "v) default is nav", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "mobilerow", - "type" : "Roo.bootstrap.Row", - "desc" : "- a row to display on mobile only..", - "memberOf" : "" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "arrangement", - "type" : "Boolean", - "desc" : "stacked | justified", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "loadMask", - "type" : "Boolean", - "desc" : "e) loadMask on the bar", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "main", - "type" : "Boolean", - "desc" : "e) main nav bar? default false", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "type", - "type" : "String", - "desc" : "s)", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "weight", - "type" : "String", - "desc" : "e) default is light.", - "memberOf" : "Roo.bootstrap.NavSimplebar" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "autohide", - "type" : "Boolean", - "desc" : "a top nav bar header that hides on scroll.", - "memberOf" : "" - } - ], - "methods" : [ - { - "name" : "collapse", - "type" : "function", - "desc" : "Collapse the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Navbar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Expand the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Navbar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "beforetoggle", - "type" : "function", - "desc" : "Fire before toggle the menu", - "sig" : "function (e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Navbar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavItem.json b/docs/symbols/Roo.bootstrap.NavItem.json deleted file mode 100644 index 0b9edb6b62..0000000000 --- a/docs/symbols/Roo.bootstrap.NavItem.json +++ /dev/null @@ -1,1286 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavItem", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Navbar.NavItem class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavItem", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "linkcls", - "type" : "String", - "desc" : "Link Class", - "memberOf" : "" - }, - { - "name" : "tagtype", - "type" : "String", - "desc" : "n) render as a href or span?", - "memberOf" : "" - }, - { - "name" : "animateRef", - "type" : "Boolean", - "desc" : "e) link to element default false", - "memberOf" : "" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tabId", - "type" : "String", - "desc" : "the tab that this item activates.", - "memberOf" : "" - }, - { - "name" : "menu", - "type" : "Roo.bootstrap.menu.Menu", - "desc" : "a Menu", - "memberOf" : "" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "badge", - "type" : "String", - "desc" : "text inside badge", - "memberOf" : "" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "Is item disabled", - "memberOf" : "" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "button_outline", - "type" : "Boolean", - "desc" : "show and outlined button", - "memberOf" : "" - }, - { - "name" : "html", - "type" : "String", - "desc" : "content of button", - "memberOf" : "" - }, - { - "name" : "preventDefault", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "glyphicon", - "type" : "String", - "desc" : "DEPRICATED - use fa", - "memberOf" : "" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "icon", - "type" : "String", - "desc" : "DEPRICATED - use fa", - "memberOf" : "" - }, - { - "name" : "badgecls", - "type" : "String", - "desc" : "w)the extra classes for the badge", - "memberOf" : "" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "button_weight", - "type" : "String", - "desc" : "k) default none", - "memberOf" : "" - }, - { - "name" : "fa", - "type" : "String", - "desc" : "- Fontawsome icon name (can add stuff to it like fa-2x)", - "memberOf" : "" - }, - { - "name" : "active", - "type" : "Boolean", - "desc" : "Is item active", - "memberOf" : "" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "href", - "type" : "String", - "desc" : "link to", - "memberOf" : "" - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "setHtml", - "type" : "function", - "desc" : "Set the HTML (text content) of the item", - "sig" : "(html)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "html", - "type" : "string", - "desc" : "content for the nav item", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "changed", - "type" : "function", - "desc" : "Fires when the active item active state changes", - "sig" : "function (_self, state)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.NavItem", - "desc" : "", - "isOptional" : false - }, - { - "name" : "state", - "type" : "boolean", - "desc" : "the new state", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "scrollto", - "type" : "function", - "desc" : "Fires when scroll to element", - "sig" : "function (_self, options, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.NavItem", - "desc" : "", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "click", - "type" : "function", - "desc" : "The raw click event for the entire grid.", - "sig" : "function (e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavProgressBar.json b/docs/symbols/Roo.bootstrap.NavProgressBar.json deleted file mode 100644 index deda9cc01a..0000000000 --- a/docs/symbols/Roo.bootstrap.NavProgressBar.json +++ /dev/null @@ -1,1118 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavProgressBar", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap NavProgressBar class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavProgressBar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "NavProgressBar:bullets[]", - "type" : "Roo.bootstrap.NavProgressItem", - "desc" : "Bullets for the Nav Progress bar for the toolbar", - "memberOf" : "" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "changed", - "type" : "function", - "desc" : "Fires when the active item changes", - "sig" : "function (_self, selected, prev)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.NavProgressBar", - "desc" : "", - "isOptional" : false - }, - { - "name" : "selected", - "type" : "Roo.bootstrap.NavProgressItem", - "desc" : "The item selected", - "isOptional" : false - }, - { - "name" : "prev", - "type" : "Roo.bootstrap.NavProgressItem", - "desc" : "The previously selected item", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavProgressItem.json b/docs/symbols/Roo.bootstrap.NavProgressItem.json deleted file mode 100644 index 0a80308aea..0000000000 --- a/docs/symbols/Roo.bootstrap.NavProgressItem.json +++ /dev/null @@ -1,1142 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavProgressItem", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap NavProgressItem class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavProgressItem", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "rid", - "type" : "String", - "desc" : "the reference id", - "memberOf" : "" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "position", - "type" : "String", - "desc" : "m) text position default bottom", - "memberOf" : "" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "e) Is item active default false", - "memberOf" : "" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "html", - "type" : "String", - "desc" : "", - "memberOf" : "" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "icon", - "type" : "String", - "desc" : "show icon instead of number", - "memberOf" : "" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "active", - "type" : "Boolean", - "desc" : "e) Is item active default false", - "memberOf" : "" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "click", - "type" : "function", - "desc" : "The raw click event for the entire grid.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.NavProgressItem", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavSidebar.json b/docs/symbols/Roo.bootstrap.NavSidebar.json deleted file mode 100644 index f23ad2f75e..0000000000 --- a/docs/symbols/Roo.bootstrap.NavSidebar.json +++ /dev/null @@ -1,1139 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavSidebar", - "augments" : [ - "Roo.bootstrap.Navbar", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Sidebar class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavSidebar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "collapse", - "type" : "function", - "desc" : "Collapse the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Navbar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Expand the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Navbar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "beforetoggle", - "type" : "function", - "desc" : "Fire before toggle the menu", - "sig" : "function (e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Navbar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavSidebarItem.json b/docs/symbols/Roo.bootstrap.NavSidebarItem.json deleted file mode 100644 index 363c2c445d..0000000000 --- a/docs/symbols/Roo.bootstrap.NavSidebarItem.json +++ /dev/null @@ -1,1287 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavSidebarItem", - "augments" : [ - "Roo.bootstrap.NavItem", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Navbar.NavSidebarItem class\n{String} badgeWeight (default|primary|success|info|warning|danger)the extra classes for the badge\n{Boolean} open is the menu open\n{Boolean} buttonView use button as the tigger el rather that a (default false)\n{String} buttonWeight (default|primary|success|info|warning|danger)the extra classes for the button\n{String} buttonSize (sm|md|lg)the extra classes for the button\n{Boolean} showArrow show arrow next to the text (default true)", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavSidebarItem", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "animateRef", - "type" : "Boolean", - "desc" : "e) link to element default false", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "linkcls", - "type" : "String", - "desc" : "Link Class", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "tagtype", - "type" : "String", - "desc" : "n) render as a href or span?", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tabId", - "type" : "String", - "desc" : "the tab that this item activates.", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "menu", - "type" : "Roo.bootstrap.menu.Menu", - "desc" : "a Menu", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "badge", - "type" : "String", - "desc" : "text inside badge", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "Is item disabled", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "button_outline", - "type" : "Boolean", - "desc" : "show and outlined button", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "html", - "type" : "String", - "desc" : "content of button", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "preventDefault", - "type" : "Boolean", - "desc" : "e) default false", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "glyphicon", - "type" : "String", - "desc" : "DEPRICATED - use fa", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "icon", - "type" : "String", - "desc" : "DEPRICATED - use fa", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "badgecls", - "type" : "String", - "desc" : "w)the extra classes for the badge", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "button_weight", - "type" : "String", - "desc" : "k) default none", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "fa", - "type" : "String", - "desc" : "- Fontawsome icon name (can add stuff to it like fa-2x)", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "active", - "type" : "Boolean", - "desc" : "Is item active", - "memberOf" : "Roo.bootstrap.NavItem" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "href", - "type" : "String", - "desc" : "link to", - "memberOf" : "Roo.bootstrap.NavItem" - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.NavItem", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "setHtml", - "type" : "function", - "desc" : "Set the HTML (text content) of the item", - "sig" : "(html)", - "static" : false, - "memberOf" : "Roo.bootstrap.NavItem", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "html", - "type" : "string", - "desc" : "content for the nav item", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "changed", - "type" : "function", - "desc" : "Fires when the active item active state changes", - "sig" : "function (_self, state)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.NavSidebarItem", - "desc" : "", - "isOptional" : false - }, - { - "name" : "state", - "type" : "boolean", - "desc" : "the new state", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "click", - "type" : "function", - "desc" : "The raw click event for the entire grid.", - "sig" : "function (e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "scrollto", - "type" : "function", - "desc" : "Fires when scroll to element", - "sig" : "function (_self, options, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.NavItem", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.NavItem", - "desc" : "", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NavSimplebar.json b/docs/symbols/Roo.bootstrap.NavSimplebar.json deleted file mode 100644 index e7616861b2..0000000000 --- a/docs/symbols/Roo.bootstrap.NavSimplebar.json +++ /dev/null @@ -1,1187 +0,0 @@ -{ - "name" : "Roo.bootstrap.NavSimplebar", - "augments" : [ - "Roo.bootstrap.Navbar", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Sidebar class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "NavSimplebar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inverse", - "type" : "Boolean", - "desc" : "is inverted color", - "memberOf" : "" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) alignment", - "memberOf" : "" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "tag", - "type" : "String", - "desc" : "v) default is nav", - "memberOf" : "" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "arrangement", - "type" : "Boolean", - "desc" : "stacked | justified", - "memberOf" : "" - }, - { - "name" : "loadMask", - "type" : "Boolean", - "desc" : "e) loadMask on the bar", - "memberOf" : "" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "main", - "type" : "Boolean", - "desc" : "e) main nav bar? default false", - "memberOf" : "" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "type", - "type" : "String", - "desc" : "s)", - "memberOf" : "" - }, - { - "name" : "weight", - "type" : "String", - "desc" : "e) default is light.", - "memberOf" : "" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "collapse", - "type" : "function", - "desc" : "Collapse the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Navbar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Expand the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Navbar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "beforetoggle", - "type" : "function", - "desc" : "Fire before toggle the menu", - "sig" : "function (e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Navbar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Navbar.json b/docs/symbols/Roo.bootstrap.Navbar.json deleted file mode 100644 index f745cb03b5..0000000000 --- a/docs/symbols/Roo.bootstrap.Navbar.json +++ /dev/null @@ -1,1138 +0,0 @@ -{ - "name" : "Roo.bootstrap.Navbar", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Navbar class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "Navbar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "collapse", - "type" : "function", - "desc" : "Collapse the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Expand the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "beforetoggle", - "type" : "function", - "desc" : "Fire before toggle the menu", - "sig" : "function (e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.NumberField.json b/docs/symbols/Roo.bootstrap.NumberField.json deleted file mode 100644 index ed0ceb083c..0000000000 --- a/docs/symbols/Roo.bootstrap.NumberField.json +++ /dev/null @@ -1,1940 +0,0 @@ -{ - "name" : "Roo.bootstrap.NumberField", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap NumberField class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "NumberField", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "nanText", - "type" : "String", - "desc" : "Error text to display if the value is not a valid number. For example, this can happen\nif a valid character like '.' or '-' is left in the field with no number (defaults to \"{value} is not a valid number\")", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxValue", - "type" : "Number", - "desc" : "The maximum allowed value (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "minValue", - "type" : "Number", - "desc" : "The minimum allowed value (defaults to Number.NEGATIVE_INFINITY)", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "decimalPrecision", - "type" : "Number", - "desc" : "The maximum precision to display after the decimal separator (defaults to 2)", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "minText", - "type" : "String", - "desc" : "Error text to display if the minimum value validation fails (defaults to \"The minimum value for this field is {minValue}\")", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDecimals", - "type" : "Boolean", - "desc" : "False to disallow decimal values (defaults to true)", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "allowNegative", - "type" : "Boolean", - "desc" : "False to prevent entering a negative sign (defaults to true)", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "valueAlign", - "type" : "String", - "desc" : "alignment of value", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "thousandsDelimiter", - "type" : "String", - "desc" : "Symbol of thousandsDelimiter", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "decimalSeparator", - "type" : "String", - "desc" : "Character(s) to allow as the decimal separator (defaults to '.')", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxText", - "type" : "String", - "desc" : "Error text to display if the maximum value validation fails (defaults to \"The maximum value for this field is {maxValue}\")", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowZero", - "type" : "Boolean", - "desc" : "False to blank out if the user enters '0' (defaults to true)", - "memberOf" : "Roo.bootstrap.NumberField" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.PhoneInput.json b/docs/symbols/Roo.bootstrap.PhoneInput.json deleted file mode 100644 index 7697fdb8f5..0000000000 --- a/docs/symbols/Roo.bootstrap.PhoneInput.json +++ /dev/null @@ -1,1956 +0,0 @@ -{ - "name" : "Roo.bootstrap.PhoneInput", - "augments" : [ - "Roo.bootstrap.TriggerField", - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "An input with International dial-code selection", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "PhoneInput", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "Configuration options", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "triggerClass", - "type" : "String", - "desc" : "An additional CSS class used to style the trigger button. The trigger will always get the\nclass 'x-form-trigger' by default and triggerClass will be appended if specified.", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "store", - "type" : "Roo.data.Store", - "desc" : "[required] The data store to which this combo is bound (defaults to undefined)", - "memberOf" : "Roo.bootstrap.PhoneInput" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideTrigger", - "type" : "Boolean", - "desc" : "True to hide the trigger element and display only the base text field (defaults to false)", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "removable", - "type" : "Boolean", - "desc" : "e) special filter default false", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "caret", - "type" : "String", - "desc" : "r) BS3 only - carat fa name", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "defaultDialCode", - "type" : "String", - "desc" : "default '+852'", - "memberOf" : "Roo.bootstrap.PhoneInput" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preferedCountries", - "type" : "Array", - "desc" : "default []", - "memberOf" : "Roo.bootstrap.PhoneInput" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "onTriggerClick", - "type" : "function", - "desc" : "The function that should handle the trigger's click event. This method does nothing by default until overridden\nby an implementing function.", - "sig" : "(e)", - "static" : false, - "memberOf" : "Roo.bootstrap.TriggerField", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "e", - "type" : "EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "autoSize", - "type" : "function", - "desc" : "", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.TriggerField", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Radio.json b/docs/symbols/Roo.bootstrap.Radio.json deleted file mode 100644 index 1e4aa28652..0000000000 --- a/docs/symbols/Roo.bootstrap.Radio.json +++ /dev/null @@ -1,1097 +0,0 @@ -{ - "name" : "Roo.bootstrap.Radio", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap Radio class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "Radio", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "value", - "type" : "String", - "desc" : "- the value of radio", - "memberOf" : "Roo.bootstrap.Radio" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "boxLabel", - "type" : "String", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Radio" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.RadioSet.json b/docs/symbols/Roo.bootstrap.RadioSet.json deleted file mode 100644 index f9b3fbcef4..0000000000 --- a/docs/symbols/Roo.bootstrap.RadioSet.json +++ /dev/null @@ -1,1940 +0,0 @@ -{ - "name" : "Roo.bootstrap.RadioSet", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [ - "Roo.bootstrap.Radio" - ], - "tree_parent" : [], - "desc" : "Bootstrap RadioSet class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "RadioSet", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "weight", - "type" : "String", - "desc" : "s) The text that appears beside the radio", - "memberOf" : "Roo.bootstrap.RadioSet" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.RadioSet" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "inline", - "type" : "Boolean", - "desc" : "e) inline the element (default true)", - "memberOf" : "Roo.bootstrap.RadioSet" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "click", - "type" : "function", - "desc" : "Fires when the element is click.", - "sig" : "function (_self, item, e)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.RadioSet", - "desc" : "This radio set", - "isOptional" : false - }, - { - "name" : "item", - "type" : "Roo.bootstrap.Radio", - "desc" : "The checked item", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "check", - "type" : "function", - "desc" : "Fires when the element is checked or unchecked.", - "sig" : "function (_self, item)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.RadioSet", - "desc" : "This radio", - "isOptional" : false - }, - { - "name" : "item", - "type" : "Roo.bootstrap.Radio", - "desc" : "The checked item", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.SecurePass.json b/docs/symbols/Roo.bootstrap.SecurePass.json deleted file mode 100644 index 9158e1fbda..0000000000 --- a/docs/symbols/Roo.bootstrap.SecurePass.json +++ /dev/null @@ -1,1886 +0,0 @@ -{ - "name" : "Roo.bootstrap.SecurePass", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap SecurePass class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "SecurePass", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "errors", - "type" : "String/Object", - "desc" : "A Error spec, or true for a default spec (defaults to\n{\n PwdEmpty: \"Please type a password, and then retype it to confirm.\",\n PwdShort: \"Your password must be at least 6 characters long. Please type a different password.\",\n PwdLong: \"Your password can't contain more than 16 characters. Please type a different password.\",\n PwdBadChar: \"The password contains characters that aren't allowed. Please type a different password.\",\n IDInPwd: \"Your password can't include the part of your ID. Please type a different password.\",\n FNInPwd: \"Your password can't contain your first name. Please type a different password.\",\n LNInPwd: \"Your password can't contain your last name. Please type a different password.\"\n})", - "memberOf" : "Roo.bootstrap.SecurePass" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "Label", - "type" : "String/Object", - "desc" : "for the strength meter (defaults to\n'Password strength:')", - "memberOf" : "Roo.bootstrap.SecurePass" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "pwdStrengths", - "type" : "String/Object", - "desc" : "A pwdStrengths spec, or true for a default spec (defaults to\n['Weak', 'Medium', 'Strong'])", - "memberOf" : "Roo.bootstrap.SecurePass" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Table.AbstractSelectionModel.json b/docs/symbols/Roo.bootstrap.Table.AbstractSelectionModel.json deleted file mode 100644 index 72933d21ea..0000000000 --- a/docs/symbols/Roo.bootstrap.Table.AbstractSelectionModel.json +++ /dev/null @@ -1,370 +0,0 @@ -{ - "name" : "Roo.bootstrap.Table.AbstractSelectionModel", - "augments" : [ - "Roo.util.Observable" - ], - "desc" : "Abstract base class for grid SelectionModels. It provides the interface that should be\nimplemented by descendant classes. This class should not be directly instantiated.", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "AbstractSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [], - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable", - "values" : [] - } - ], - "methods" : [ - { - "name" : "lock", - "desc" : "Locks the selections.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.AbstractSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "unlock", - "desc" : "Unlocks the selections.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.AbstractSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isLocked", - "desc" : "Returns true if the selections are locked.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.AbstractSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "" - } - ] - }, - { - "name" : "purgeListeners", - "desc" : "Removes all listeners for this object", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "desc" : "Removes a listener (shorthand for removeListener)", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "desc" : "Used to define events on this Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "desc" : "Removes all added captures from the Observable.", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "desc" : "Removes a listener", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "desc" : "Checks to see if this object has any listeners for a specified event", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "desc" : "Appends an event handler to this component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.Table.RowSelectionModel.json b/docs/symbols/Roo.bootstrap.Table.RowSelectionModel.json deleted file mode 100644 index e44833c5bc..0000000000 --- a/docs/symbols/Roo.bootstrap.Table.RowSelectionModel.json +++ /dev/null @@ -1,558 +0,0 @@ -{ - "name" : "Roo.bootstrap.Table.RowSelectionModel", - "augments" : [ - "Roo.bootstrap.Table.AbstractSelectionModel" - ], - "desc" : "The default SelectionModel used by {@link Roo.bootstrap.Table}.\nIt supports multiple selections and keyboard selection/navigation.", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [], - "config" : [ - { - "name" : "singleSelect", - "type" : "Boolean", - "desc" : "True to allow selection of only one row at a time (defaults to false)", - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "values" : [] - } - ], - "methods" : [ - { - "name" : "getCount", - "desc" : "Gets the number of selected rows.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Number", - "desc" : "" - } - ] - }, - { - "name" : "getSelections", - "desc" : "Returns the selected records", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Array", - "desc" : "Array of selected records" - } - ] - }, - { - "name" : "selectRange", - "desc" : "Selects a range of rows. All rows in between startRow and endRow are also selected.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "startRow", - "type" : "Number", - "desc" : "The index of the first row in the range", - "isOptional" : false - }, - { - "name" : "endRow", - "type" : "Number", - "desc" : "The index of the last row in the range", - "isOptional" : false - }, - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "(optional) True to retain existing selections", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "selectFirstRow", - "desc" : "Selects the first row in the grid.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "selectLastRow", - "desc" : "Select the last row.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "(optional) True to keep existing selections", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "deselectRow", - "desc" : "Deselects a row.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "row", - "type" : "Number", - "desc" : "The index of the row to deselect", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "selectNext", - "desc" : "Selects the row immediately following the last selected row.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "(optional) True to keep existing selections", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "selectPrevious", - "desc" : "Selects the row that precedes the last selected row.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "(optional) True to keep existing selections", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "selectRows", - "desc" : "Selects multiple rows.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "rows", - "type" : "Array", - "desc" : "Array of the indexes of the row to select", - "isOptional" : false - }, - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "(optional) True to keep existing selections", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "selectRecords", - "desc" : "Select records.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "records", - "type" : "Array", - "desc" : "The records to select", - "isOptional" : false - }, - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "(optional) True to keep existing selections", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hasSelection", - "desc" : "Returns True if there is a selection.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "" - } - ] - }, - { - "name" : "isIdSelected", - "desc" : "Returns True if the specified record id is selected.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "id", - "type" : "String", - "desc" : "The id of record to check", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "" - } - ] - }, - { - "name" : "selectAll", - "desc" : "Selects all rows.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "selectRow", - "desc" : "Selects a row.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "row", - "type" : "Number", - "desc" : "The index of the row to select", - "isOptional" : false - }, - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "(optional) True to keep existing selections", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getSelected", - "desc" : "Returns the first selected record.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Record", - "desc" : "" - } - ] - }, - { - "name" : "isSelected", - "desc" : "Returns True if the specified row is selected.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "record", - "type" : "Number/Record", - "desc" : "The record or index of the record to check", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "" - } - ] - }, - { - "name" : "clearSelections", - "desc" : "Clears all selections.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "deselectRange", - "desc" : "Deselects a range of rows. All rows in between startRow and endRow are also deselected.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "startRow", - "type" : "Number", - "desc" : "The index of the first row in the range", - "isOptional" : false - }, - { - "name" : "endRow", - "type" : "Number", - "desc" : "The index of the last row in the range", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "rowselect", - "desc" : "Fires when a row is selected.", - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "SelectionModel", - "desc" : "", - "isOptional" : false - }, - { - "name" : "rowIndex", - "type" : "Number", - "desc" : "The selected index", - "isOptional" : false - }, - { - "name" : "r", - "type" : "Roo.data.Record", - "desc" : "The record", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerowselect", - "desc" : "Fires when a row is selected being selected, return false to cancel.", - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "SelectionModel", - "desc" : "", - "isOptional" : false - }, - { - "name" : "rowIndex", - "type" : "Number", - "desc" : "The selected index", - "isOptional" : false - }, - { - "name" : "keepExisting", - "type" : "Boolean", - "desc" : "False if other selections will be cleared", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "rowdeselect", - "desc" : "Fires when a row is deselected.", - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "SelectionModel", - "desc" : "", - "isOptional" : false - }, - { - "name" : "rowIndex", - "type" : "Number", - "desc" : "The selected index", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "afterselectionchange", - "desc" : "Fires after the selection changes (eg. by key press or clicking)", - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "SelectionModel", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "selectionchange", - "desc" : "Fires when the selection changes", - "memberOf" : "Roo.bootstrap.Table.RowSelectionModel", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "SelectionModel", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.TextArea.json b/docs/symbols/Roo.bootstrap.TextArea.json deleted file mode 100644 index dc9d92cbd6..0000000000 --- a/docs/symbols/Roo.bootstrap.TextArea.json +++ /dev/null @@ -1,1903 +0,0 @@ -{ - "name" : "Roo.bootstrap.TextArea", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { - "Roo.bootstrap.TextArea" : [ - "Roo.bootstrap.HtmlEditor", - "Roo.bootstrap.Markdown" - ] - }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap TextArea class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "TextArea", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "wrap", - "type" : "string", - "desc" : "d)Specifies how the text in a text area is to be wrapped when submitted in a form", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "rows", - "type" : "Number", - "desc" : "Specifies the visible number of lines in a text area", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "cols", - "type" : "Number", - "desc" : "Specifies the visible width of a text area", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "resize", - "type" : "string", - "desc" : "l)", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "html", - "type" : "string", - "desc" : "text", - "memberOf" : "Roo.bootstrap.TextArea" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real textarea element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.TimeField.json b/docs/symbols/Roo.bootstrap.TimeField.json deleted file mode 100644 index d98c348fb9..0000000000 --- a/docs/symbols/Roo.bootstrap.TimeField.json +++ /dev/null @@ -1,1906 +0,0 @@ -{ - "name" : "Roo.bootstrap.TimeField", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Bootstrap DateField class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "TimeField", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "format", - "type" : "String", - "desc" : "The default time format string which can be overriden for localization support. The format must be\nvalid according to {@link Date#parseDate} (defaults to 'H:i').", - "memberOf" : "Roo.bootstrap.TimeField" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "select", - "type" : "function", - "desc" : "Fires when select a date.", - "sig" : "function (_self, date)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.DateField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "date", - "type" : "Mixed", - "desc" : "The date value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires when this field show.", - "sig" : "function (thisthis, date)\n{\n\n}", - "memberOf" : "", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "thisthis", - "type" : "Roo.bootstrap.DateField", - "desc" : "", - "isOptional" : false - }, - { - "name" : "date", - "type" : "Mixed", - "desc" : "The date value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.TriggerField.json b/docs/symbols/Roo.bootstrap.TriggerField.json deleted file mode 100644 index 8002df0f4e..0000000000 --- a/docs/symbols/Roo.bootstrap.TriggerField.json +++ /dev/null @@ -1,1945 +0,0 @@ -{ - "name" : "Roo.bootstrap.TriggerField", - "augments" : [ - "Roo.bootstrap.Input", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { - "Roo.bootstrap.ComboBox" : [ - "Roo.bootstrap.MoneyField" - ], - "Roo.bootstrap.TriggerField" : [ - "Roo.bootstrap.ComboBox", - "Roo.bootstrap.PhoneInput" - ] - }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default).\nThe trigger has no default action, so you must assign a function to implement the trigger click handler by\noverriding {@link #onTriggerClick}. You can create a TriggerField directly, as it renders exactly like a combobox\nfor which you can provide a custom implementation. For example:\n
\nvar trigger = new Roo.bootstrap.TriggerField();\ntrigger.onTriggerClick = myTriggerFn;\ntrigger.applyTo('my-field');\n
\n\nHowever, in general you will most likely want to use TriggerField as the base class for a reusable component.\n{@link Roo.bootstrap.DateField} and {@link Roo.bootstrap.ComboBox} are perfect examples of this.", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "TriggerField", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "Configuration options (valid {@Roo.bootstrap.Input} config options will also be applied\nto the base TextField)", - "isOptional" : false - } - ], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "triggerClass", - "type" : "String", - "desc" : "An additional CSS class used to style the trigger button. The trigger will always get the\nclass 'x-form-trigger' by default and triggerClass will be appended if specified.", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "validFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "lg", - "type" : "Number", - "desc" : "colspan out of 12 for large computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "accept", - "type" : "String", - "desc" : "o) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "afterButton", - "type" : "Roo.bootstrap.Button", - "desc" : "to show before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xs", - "type" : "Number", - "desc" : "colspan out of 12 for mobile-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "disableKeyFilter", - "type" : "Boolean", - "desc" : "True to disable input keystroke filtering (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "is it disabled", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "name", - "type" : "String", - "desc" : "name of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validator", - "type" : "Function", - "desc" : "A custom validation function to be called during field validation (defaults to null).\nIf available, this function will be called only after the basic validators all return true, and will be passed the\ncurrent field value and expected to return boolean true if the value is valid or a string error message if invalid.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "autocomplete", - "type" : "String", - "desc" : "- default is new-password see: https://developers.google.com/web/fundamentals/input/form/label-and-name-inputs?hl=en", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelAlign", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "regexText", - "type" : "String", - "desc" : "-- Depricated - use Invalid Text", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "labelmd", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "value", - "type" : "string", - "desc" : "default value of the input", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hasFeedback", - "type" : "Boolean", - "desc" : "e) default true", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "sm", - "type" : "Number", - "desc" : "colspan out of 12 for tablet-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLengthText", - "type" : "String", - "desc" : "Error text to display if the minimum length validation fails (defaults to \"The minimum length for this field is {minLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLengthText", - "type" : "String", - "desc" : "Error text to display if the maximum length validation fails (defaults to \"The maximum length for this field is {maxLength}\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "readOnly", - "type" : "Boolean", - "desc" : "Specifies that the field should be read-only", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "indicatorpos", - "type" : "String", - "desc" : "t) default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) Default left", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "size", - "type" : "string", - "desc" : "- (lg|sm) or leave empty..", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "focusClass", - "type" : "String", - "desc" : "The CSS class to use when the field receives focus (defaults to \"x-form-focus\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labellg", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validateOnBlur", - "type" : "Boolean", - "desc" : "Whether the field should validate when it loses focus (defaults to true).", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "hideTrigger", - "type" : "Boolean", - "desc" : "True to hide the trigger element and display only the base text field (defaults to false)", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "removable", - "type" : "Boolean", - "desc" : "e) special filter default false", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "labelxs", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "caret", - "type" : "String", - "desc" : "r) BS3 only - carat fa name", - "memberOf" : "Roo.bootstrap.TriggerField" - }, - { - "name" : "inputType", - "type" : "String", - "desc" : "t)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maskRe", - "type" : "String", - "desc" : "An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationEvent", - "type" : "String/Boolean", - "desc" : "The event that should initiate field validation. Set to false to disable\n automatic validation (defaults to \"keyup\").", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "vtype", - "type" : "String", - "desc" : "A validation type name as defined in {@link Roo.form.VTypes} (defaults to null)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "fieldLabel", - "type" : "string", - "desc" : "- the label associated", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "before", - "type" : "string", - "desc" : "- input group add on before", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validationDelay", - "type" : "Number", - "desc" : "The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "blankText", - "type" : "String", - "desc" : "Error text to display if the allow blank validation fails (defaults to \"This field is required\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "selectOnFocus", - "type" : "Boolean", - "desc" : "True to automatically select any existing field text when the field receives input focus (defaults to false)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - }, - { - "name" : "invalidFeedbackIcon", - "type" : "String", - "desc" : "The CSS class to use when create feedback icon (defaults to \"x-form-invalid\")", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "placeholder", - "type" : "string", - "desc" : "- placeholder to put in text.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "md", - "type" : "Number", - "desc" : "colspan out of 12 for computer-sized screens", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "regex", - "type" : "RegExp", - "desc" : "A JavaScript RegExp object to be tested against the field value during validation (defaults to null).\nIf available, this regex will be evaluated only after the basic validators all return true, and will be passed the\ncurrent field value. If the test fails, the field will be marked invalid using {@link #regexText}.", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelWidth", - "type" : "Number", - "desc" : "set the width of label", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "minLength", - "type" : "Number", - "desc" : "Minimum input field length required (defaults to 0)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "capture", - "type" : "String", - "desc" : "a) use for file input only. (default empty)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "validClass", - "type" : "String", - "desc" : "DEPRICATED - code uses BS4 - is-valid / is-invalid", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "allowBlank", - "type" : "Boolean", - "desc" : "False to validate that the value length > 0 (defaults to true)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "preventMark", - "type" : "Boolean", - "desc" : "Do not show tick or cross if error/success", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "forceFeedback", - "type" : "Boolean", - "desc" : "e) Default false", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "labelsm", - "type" : "Number", - "desc" : "set the width of label (1-12)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "after", - "type" : "string", - "desc" : "- input group add on after", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "maxLength", - "type" : "Number", - "desc" : "Maximum input field length allowed (defaults to Number.MAX_VALUE)", - "memberOf" : "Roo.bootstrap.Input" - }, - { - "name" : "invalidText", - "type" : "String", - "desc" : "The error text to display if {@link #validator} test fails during validation (defaults to \"\")", - "memberOf" : "Roo.bootstrap.Input" - } - ], - "methods" : [ - { - "name" : "onTriggerClick", - "type" : "function", - "desc" : "The function that should handle the trigger's click event. This method does nothing by default until overridden\nby an implementing function.", - "sig" : "(e)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "e", - "type" : "EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "autoSize", - "type" : "function", - "desc" : "", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "clearInvalid", - "type" : "function", - "desc" : "Clear any invalid styles/messages for this field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validate", - "type" : "function", - "desc" : "Validates the field value", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "markInvalid", - "type" : "function", - "desc" : "Mark this field as invalid", - "sig" : "(msg)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getRawValue", - "type" : "function", - "desc" : "Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "markValid", - "type" : "function", - "desc" : "Mark this field as valid", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getName", - "type" : "function", - "desc" : "Returns the name of the field", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "name The name field" - } - ] - }, - { - "name" : "reset", - "type" : "function", - "desc" : "Resets the current field value to the originally loaded value and clears any validation messages", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getValue", - "type" : "function", - "desc" : "Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Mixed", - "desc" : "value The field value" - } - ] - }, - { - "name" : "setValue", - "type" : "function", - "desc" : "Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "setRawValue", - "type" : "function", - "desc" : "Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to set", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "inputEl", - "type" : "function", - "desc" : "return the real input element.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "validateValue", - "type" : "function", - "desc" : "Validates a value according to the field's validation rules and marks the field as invalid\nif the validation fails", - "sig" : "(value)", - "static" : false, - "memberOf" : "Roo.bootstrap.Input", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "value", - "type" : "Mixed", - "desc" : "The value to validate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the value is valid, else false" - } - ] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "paste", - "type" : "function", - "desc" : "Fires after the user pastes into input", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "change", - "type" : "function", - "desc" : "Fires just before the field blurs if the field value has changed.", - "sig" : "function (_self, newValue, oldValue)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "newValue", - "type" : "Mixed", - "desc" : "The new value", - "isOptional" : false - }, - { - "name" : "oldValue", - "type" : "Mixed", - "desc" : "The original value", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "invalid", - "type" : "function", - "desc" : "Fires after the field has been marked as invalid.", - "sig" : "function (_self, msg)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "msg", - "type" : "String", - "desc" : "The validation message", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "valid", - "type" : "function", - "desc" : "Fires after the field has been validated with no errors.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "blur", - "type" : "function", - "desc" : "Fires when this field loses input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "specialkey", - "type" : "function", - "desc" : "Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check\n{@link Roo.EventObject#getKey} to determine which key was pressed.", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Fires when this field receives input focus.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "keyup", - "type" : "function", - "desc" : "Fires after the key up", - "sig" : "function (_self, e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Input", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.form.Field", - "desc" : "", - "isOptional" : false - }, - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "The event Object", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.htmleditor.ToolbarStandard.json b/docs/symbols/Roo.bootstrap.htmleditor.ToolbarStandard.json deleted file mode 100644 index 21152946f2..0000000000 --- a/docs/symbols/Roo.bootstrap.htmleditor.ToolbarStandard.json +++ /dev/null @@ -1,1217 +0,0 @@ -{ - "name" : "Roo.bootstrap.htmleditor.ToolbarStandard", - "augments" : [ - "Roo.bootstrap.nav.Simplebar", - "Roo.bootstrap.nav.Bar", - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "Basic Toolbar", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "ToolbarStandard", - "example" : "Usage:\n\n new Roo.bootstrap.HtmlEditor({\n ....\n toolbars : [\n new Roo.bootstrap.HtmlEditorToolbar1({\n disable : { fonts: 1 , format: 1, ..., ... , ...],\n btns : [ .... ]\n })\n }", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable" - }, - { - "name" : "btns", - "type" : "Array", - "desc" : "List of additional buttons.\n\n\nNEEDS Extra CSS? \n.x-html-editor-tb .x-edit-none .x-btn-text { background: none; }", - "memberOf" : "Roo.bootstrap.htmleditor.ToolbarStandard" - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "inverse", - "type" : "Boolean", - "desc" : "is inverted color", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "align", - "type" : "String", - "desc" : "t) alignment", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component" - }, - { - "name" : "tag", - "type" : "String", - "desc" : "v) default is nav", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component" - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disable", - "type" : "Object", - "desc" : "List of elements to disable..", - "memberOf" : "Roo.bootstrap.htmleditor.ToolbarStandard" - }, - { - "name" : "arrangement", - "type" : "Boolean", - "desc" : "stacked | justified", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "loadMask", - "type" : "Boolean", - "desc" : "e) loadMask on the bar", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component" - }, - { - "name" : "main", - "type" : "Boolean", - "desc" : "e) main nav bar? default false", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "type", - "type" : "String", - "desc" : "s)", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "weight", - "type" : "String", - "desc" : "e) default is light.", - "memberOf" : "Roo.bootstrap.nav.Simplebar" - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component" - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component" - } - ], - "methods" : [ - { - "name" : "updateToolbar", - "type" : "function", - "desc" : "Protected method that will not generally be called directly. It triggers\na toolbar update by reading the markup state of the current selection in the editor.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "collapse", - "type" : "function", - "desc" : "Collapse the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.nav.Bar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "expand", - "type" : "function", - "desc" : "Expand the navbar pulldown", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.nav.Bar", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "tooltipEl", - "type" : "function", - "desc" : "Fetch the element to display the tooltip on.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Hide a component - adds 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Show a component - removes 'hidden' class", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "type" : "function", - "desc" : "Set the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "type" : "function", - "desc" : "Get the element that will be used to show or hide", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "type" : "function", - "desc" : "Initialize Events for the element", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "type" : "function", - "desc" : "Fetch the element to add children to", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.bootstrap.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "type" : "function", - "desc" : "Returns the id of this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "type" : "function", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "sig" : "(container)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "type" : "function", - "desc" : "Returns true if this component is visible.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "type" : "function", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "sig" : "(disabled)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "type" : "function", - "desc" : "Try to focus this component.", - "sig" : "(selectText)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Enable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "type" : "function", - "desc" : "Convenience function to hide or show this component by boolean.", - "sig" : "(visible)", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Disable this component.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "type" : "function", - "desc" : "Returns the underlying {@link Roo.Element}.", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.Component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "type" : "function", - "desc" : "Removes all listeners for this object", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "type" : "function", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "type" : "function", - "desc" : "Removes a listener (shorthand for removeListener)", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "type" : "function", - "desc" : "Used to define events on this Observable", - "sig" : "(object)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "type" : "function", - "desc" : "Removes all added captures from the Observable.", - "sig" : "(o)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "type" : "function", - "desc" : "Removes a listener", - "sig" : "(eventName, handler, scope)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "type" : "function", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "sig" : "(eventName, args)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "type" : "function", - "desc" : "Checks to see if this object has any listeners for a specified event", - "sig" : "(eventName)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "type" : "function", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "sig" : "(o, fn, scope)", - "static" : true, - "memberOf" : "Roo.util.Observable", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "type" : "function", - "desc" : "Appends an event handler to this component", - "sig" : "(eventName, handler, scope, options)", - "static" : false, - "memberOf" : "Roo.util.Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "beforetoggle", - "type" : "function", - "desc" : "Fire before toggle the menu", - "sig" : "function (e)\n{\n\n}", - "memberOf" : "Roo.bootstrap.nav.Bar", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "e", - "type" : "Roo.EventObject", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "childrenrendered", - "type" : "function", - "desc" : "Fires when the children have been rendered..", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "type" : "function", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "type" : "function", - "desc" : "Fires after the component is disabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "type" : "function", - "desc" : "Fires after the component is rendered.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "type" : "function", - "desc" : "Fires after the component is destroyed.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "type" : "function", - "desc" : "Fires after the component is hidden.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "type" : "function", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "type" : "function", - "desc" : "Fires after the component is shown.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "type" : "function", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "type" : "function", - "desc" : "Fires after the component is enabled.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "type" : "function", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "sig" : "function (_self)\n{\n\n}", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.htmleditor.json b/docs/symbols/Roo.bootstrap.htmleditor.json deleted file mode 100644 index 452a5dca8a..0000000000 --- a/docs/symbols/Roo.bootstrap.htmleditor.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name" : "Roo.bootstrap.htmleditor", - "augments" : [], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "", - "isSingleton" : false, - "isStatic" : true, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "Roo.bootstrap.htmleditor", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [], - "methods" : [], - "events" : [] -} \ No newline at end of file diff --git a/docs/symbols/Roo.dd.DragDropMgr.json b/docs/symbols/Roo.dd.DragDropMgr.json deleted file mode 100644 index 09b84000b8..0000000000 --- a/docs/symbols/Roo.dd.DragDropMgr.json +++ /dev/null @@ -1,862 +0,0 @@ -{ - "name" : "Roo.dd.DragDropMgr", - "augments" : [], - "childClasses" : { }, - "tree_children" : [], - "tree_parent" : [], - "desc" : "DragDropMgr is a singleton that tracks the element interaction for\nall DragDrop items in the window. Generally, you will not call\nthis class directly, but it does have helper methods that could\nbe useful in your DragDrop implementations.", - "isSingleton" : true, - "isStatic" : false, - "isBuiltin" : false, - "isAbstract" : false, - "isBuilderTop" : false, - "memberOf" : "DragDropMgr", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [], - "throws" : "", - "requires" : "", - "config" : [], - "methods" : [ - { - "name" : "isDragDrop", - "type" : "function", - "desc" : "Utility function to determine if a given element has been\nregistered as a drag drop item.", - "sig" : "(id)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "id", - "type" : "String", - "desc" : "the element id to check", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "boolean", - "desc" : "true if this element is a DragDrop item,\nfalse otherwise" - } - ] - }, - { - "name" : "getRelated", - "type" : "function", - "desc" : "Returns the drag and drop instances that are in all groups the\npassed in instance belongs to.", - "sig" : "(p_oDD, bTargetsOnly)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "p_oDD", - "type" : "DragDrop", - "desc" : "the obj to get related data for", - "isOptional" : false - }, - { - "name" : "bTargetsOnly", - "type" : "boolean", - "desc" : "if true, only return targetable objs", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "DragDrop[]", - "desc" : "the related instances" - } - ] - }, - { - "name" : "getScrollLeft", - "type" : "function", - "desc" : "Gets the scrollLeft", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "int", - "desc" : "the document's scrollTop" - } - ] - }, - { - "name" : "regDragDrop", - "type" : "function", - "desc" : "Each DragDrop instance must be registered with the DragDropMgr.\nThis is executed in DragDrop.init()", - "sig" : "(oDD, sGroup)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "oDD", - "type" : "DragDrop", - "desc" : "the DragDrop object to register", - "isOptional" : false - }, - { - "name" : "sGroup", - "type" : "String", - "desc" : "the name of the group this element belongs to", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "handleWasClicked", - "type" : "function", - "desc" : "Recursively searches the immediate parent and all child nodes for\nthe handle element in order to determine wheter or not it was\nclicked.", - "sig" : "(node)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "node", - "type" : "", - "desc" : "the html element to inspect", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "refreshCache", - "type" : "function", - "desc" : "Refreshes the cache of the top-left and bottom-right points of the\ndrag and drop objects in the specified group(s). This is in the\nformat that is stored in the drag and drop instance, so typical\nusage is:\n\nRoo.dd.DragDropMgr.refreshCache(ddinstance.groups);\n\nAlternatively:\n\nRoo.dd.DragDropMgr.refreshCache({group1:true, group2:true});\n", - "sig" : "(groups)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "groups", - "type" : "Object", - "desc" : "an associative array of groups to refresh", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getCss", - "type" : "function", - "desc" : "Returns the style property for the DOM element (i.e.,\ndocument.getElById(id).style)", - "sig" : "(id)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "This has been deprecated: use Roo.getDom instead", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "id", - "type" : "String", - "desc" : "the id of the elment to get", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Object", - "desc" : "The style property of the element" - } - ] - }, - { - "name" : "swapNode", - "type" : "function", - "desc" : "Swap two nodes. In IE, we use the native method, for others we\nemulate the IE behavior", - "sig" : "(n1, n2)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "n1", - "type" : "", - "desc" : "the first node to swap", - "isOptional" : false - }, - { - "name" : "n2", - "type" : "", - "desc" : "the other node to swap", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "stopEvent", - "type" : "function", - "desc" : "Utility to stop event propagation and event default, if these\nfeatures are turned on.", - "sig" : "(e)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "e", - "type" : "Event", - "desc" : "the event as returned by this.getEvent()", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "lock", - "type" : "function", - "desc" : "Lock all drag and drop functionality", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "moveToEl", - "type" : "function", - "desc" : "Sets the x/y position of an element to the location of the\ntarget element.", - "sig" : "(moveEl, targetEl)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "moveEl", - "type" : "HTMLElement", - "desc" : "The element to move", - "isOptional" : false - }, - { - "name" : "targetEl", - "type" : "HTMLElement", - "desc" : "The position reference element", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "unlock", - "type" : "function", - "desc" : "Unlock all drag and drop functionality", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getDDById", - "type" : "function", - "desc" : "Returns the DragDrop instance for a given id", - "sig" : "(id)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "id", - "type" : "String", - "desc" : "the id of the DragDrop object", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "DragDrop", - "desc" : "the drag drop object, null if it is not found" - } - ] - }, - { - "name" : "isLegalTarget", - "type" : "function", - "desc" : "Returns true if the specified dd target is a legal target for\nthe specifice drag obj", - "sig" : "(the, the)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "DragDrop", - "desc" : "drag obj", - "isOptional" : false - }, - { - "name" : "the", - "type" : "DragDrop", - "desc" : "target", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "boolean", - "desc" : "true if the target is a legal target for the\ndd obj" - } - ] - }, - { - "name" : "isTypeOfDD", - "type" : "function", - "desc" : "My goal is to be able to transparently determine if an object is\ntypeof DragDrop, and the exact subclass of DragDrop. typeof\nreturns \"object\", oDD.constructor.toString() always returns\n\"DragDrop\" and not the name of the subclass. So for now it just\nevaluates a well-known variable in DragDrop.", - "sig" : "(the)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "the", - "type" : "Object", - "desc" : "object to evaluate", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "boolean", - "desc" : "true if typeof oDD = DragDrop" - } - ] - }, - { - "name" : "startDrag", - "type" : "function", - "desc" : "Fired when either the drag pixel threshol or the mousedown hold\ntime threshold has been met.", - "sig" : "(x, y)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "x", - "type" : "", - "desc" : "{int} the X position of the original mousedown", - "isOptional" : false - }, - { - "name" : "y", - "type" : "", - "desc" : "{int} the Y position of the original mousedown", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getStyle", - "type" : "function", - "desc" : "Returns the specified element style property", - "sig" : "(el, styleProp)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "This has been deprecated: use Roo.lib.Dom.getStyle", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "el", - "type" : "HTMLElement", - "desc" : "the element", - "isOptional" : false - }, - { - "name" : "styleProp", - "type" : "string", - "desc" : "the style property", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "string", - "desc" : "The value of the style property" - } - ] - }, - { - "name" : "getPosX", - "type" : "function", - "desc" : "Returns the X position of an html element", - "sig" : "(el)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "This has been deprecated: use Roo.lib.Dom.getX instead", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "el", - "type" : "", - "desc" : "the element for which to get the position", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "int", - "desc" : "the X coordinate" - } - ] - }, - { - "name" : "getPosY", - "type" : "function", - "desc" : "Returns the Y position of an html element", - "sig" : "(el)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "This has been deprecated: use Roo.lib.Dom.getY instead", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "el", - "type" : "", - "desc" : "the element for which to get the position", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "int", - "desc" : "the Y coordinate" - } - ] - }, - { - "name" : "isLocked", - "type" : "function", - "desc" : "Is drag and drop locked?", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "boolean", - "desc" : "True if drag and drop is locked, false otherwise." - } - ] - }, - { - "name" : "getBestMatch", - "type" : "function", - "desc" : "Helper function for getting the best match from the list of drag\nand drop objects returned by the drag and drop events when we are\nin INTERSECT mode. It returns either the first object that the\ncursor is over, or the object that has the greatest overlap with\nthe dragged element.", - "sig" : "(dds)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "dds", - "type" : "DragDrop[]", - "desc" : "The array of drag and drop objects\ntargeted", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "DragDrop", - "desc" : "The best single match" - } - ] - }, - { - "name" : "getLocation", - "type" : "function", - "desc" : "Returns a Region object containing the drag and drop element's position\nand size, including the padding configured for it", - "sig" : "(oDD)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "oDD", - "type" : "DragDrop", - "desc" : "the drag and drop object to get the\n location for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.lib.Region", - "desc" : "a Region object representing the total area\n the element occupies, including any padding\n the instance is configured for." - } - ] - }, - { - "name" : "isHandle", - "type" : "function", - "desc" : "Utility function to determine if a given element has been\nregistered as a drag drop handle for the given Drag Drop object.", - "sig" : "(id)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "id", - "type" : "String", - "desc" : "the element id to check", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "boolean", - "desc" : "true if this element is a DragDrop handle, false\notherwise" - } - ] - }, - { - "name" : "getScrollTop", - "type" : "function", - "desc" : "Gets the scrollTop", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "int", - "desc" : "the document's scrollTop" - } - ] - }, - { - "name" : "numericSort", - "type" : "function", - "desc" : "Numeric array sort function", - "sig" : "()\n{\n\n}", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "regHandle", - "type" : "function", - "desc" : "Each DragDrop handle element must be registered. This is done\nautomatically when executing DragDrop.setHandleElId()", - "sig" : "(sDDId, sHandleId)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "sDDId", - "type" : "String", - "desc" : "the DragDrop id this element is a handle for", - "isOptional" : false - }, - { - "name" : "sHandleId", - "type" : "String", - "desc" : "the id of the element that is the drag\nhandle", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "getElement", - "type" : "function", - "desc" : "Returns the actual DOM element", - "sig" : "(id)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "This has been deprecated: use Roo.getDom instead", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "id", - "type" : "String", - "desc" : "the id of the elment to get", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Object", - "desc" : "The element" - } - ] - }, - { - "name" : "verifyEl", - "type" : "function", - "desc" : "This checks to make sure an element exists and is in the DOM. The\nmain purpose is to handle cases where innerHTML is used to remove\ndrag and drop objects from the DOM. IE provides an 'unspecified\nerror' when trying to access the offsetParent of such an element", - "sig" : "(el)", - "static" : false, - "memberOf" : "", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "exceptions" : "", - "requires" : "", - "params" : [ - { - "name" : "el", - "type" : "HTMLElement", - "desc" : "the element to check", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "boolean", - "desc" : "true if the element looks usable" - } - ] - } - ], - "events" : [] -} \ No newline at end of file diff --git a/docs/symbols/Roo.namespace.json b/docs/symbols/Roo.namespace.json deleted file mode 100644 index a9d9b6a279..0000000000 --- a/docs/symbols/Roo.namespace.json +++ /dev/null @@ -1,941 +0,0 @@ -{ - "name" : "Roo.namespace", - "augments" : [ - "Roo.bootstrap.Component", - "Roo.Component", - "Roo.util.Observable" - ], - "desc" : "Bootstrap Breadcrumb Nav Class", - "isSingleton" : false, - "isStatic" : false, - "isBuiltin" : false, - "memberOf" : "namespace", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "config", - "type" : "Object", - "desc" : "The config object", - "isOptional" : false - } - ], - "returns" : [], - "config" : [ - { - "name" : "listeners", - "type" : "Object", - "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", - "memberOf" : "Roo.util.Observable", - "optvals" : [] - }, - { - "name" : "container_method", - "type" : "string", - "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "tooltip", - "type" : "string", - "desc" : "Text for the tooltip", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "visibilityEl", - "type" : "string|object", - "desc" : "t) What element to use for visibility (@see getVisibilityEl())", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [ - "el", - "parent" - ] - }, - { - "name" : "can_build_overlaid", - "type" : "Boolean", - "desc" : "True if element can be rebuild from a HTML page", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "hideMode", - "type" : "String", - "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".", - "memberOf" : "Roo.Component", - "optvals" : [ - "display", - "visibility" - ] - }, - { - "name" : "style", - "type" : "String", - "desc" : "any extra css", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "allowDomMove", - "type" : "Boolean", - "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", - "memberOf" : "Roo.Component", - "optvals" : [] - }, - { - "name" : "cls", - "type" : "String", - "desc" : "css class", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "xattr", - "type" : "Object", - "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "actionMode", - "type" : "String", - "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl", - "memberOf" : "Roo.Component", - "optvals" : [] - }, - { - "name" : "dataId", - "type" : "string", - "desc" : "cutomer id", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "name", - "type" : "string", - "desc" : "Specifies name attribute", - "memberOf" : "Roo.bootstrap.Component", - "optvals" : [] - }, - { - "name" : "disableClass", - "type" : "String", - "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", - "memberOf" : "Roo.Component", - "optvals" : [] - } - ], - "methods" : [ - { - "name" : "tooltipEl", - "desc" : "Fetch the element to display the tooltip on.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "hide", - "desc" : "Hide a component - adds 'hidden' class", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "show", - "desc" : "Show a component - removes 'hidden' class", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setVisibilityEl", - "desc" : "Set the element that will be used to show or hide", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getVisibilityEl", - "desc" : "Get the element that will be used to show or hide", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "initEvents", - "desc" : "Initialize Events for the element", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "getChildContainer", - "desc" : "Fetch the element to add children to", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "defaults to this.el" - } - ] - }, - { - "name" : "getId", - "desc" : "Returns the id of this component.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "String", - "desc" : "" - } - ] - }, - { - "name" : "render", - "desc" : "If this is a lazy rendering component, render it to its container element.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "container", - "type" : "String/HTMLElement/Element", - "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "isVisible", - "desc" : "Returns true if this component is visible.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "setDisabled", - "desc" : "Convenience function for setting disabled/enabled by boolean.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "disabled", - "type" : "Boolean", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "focus", - "desc" : "Try to focus this component.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "selectText", - "type" : "Boolean", - "desc" : "True to also select the text in this component (if applicable)", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "enable", - "desc" : "Enable this component.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "setVisible", - "desc" : "Convenience function to hide or show this component by boolean.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "visible", - "type" : "Boolean", - "desc" : "True to show, false to hide", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "disable", - "desc" : "Disable this component.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Component", - "desc" : "this" - } - ] - }, - { - "name" : "getEl", - "desc" : "Returns the underlying {@link Roo.Element}.", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [ - { - "name" : "", - "type" : "Roo.Element", - "desc" : "The element" - } - ] - }, - { - "name" : "purgeListeners", - "desc" : "Removes all listeners for this object", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [], - "returns" : [] - }, - { - "name" : "on", - "desc" : "Appends an event handler to this element (shorthand for addListener)", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional)", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "un", - "desc" : "Removes a listener (shorthand for removeListener)", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addEvents", - "desc" : "Used to define events on this Observable", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "object", - "type" : "Object", - "desc" : "The object with the events defined", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "releaseCapture", - "desc" : "Removes all added captures from the Observable.", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to release", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "removeListener", - "desc" : "Removes a listener", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The handler to remove", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the handler", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "fireEvent", - "desc" : "Fires the specified event with the passed parameters (minus the event name).", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "", - "isOptional" : false - }, - { - "name" : "args", - "type" : "Object...", - "desc" : "Variable number of parameters are passed to handlers", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "returns false if any of the handlers return false otherwise it returns true" - } - ] - }, - { - "name" : "hasListener", - "desc" : "Checks to see if this object has any listeners for a specified event", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The name of the event to check for", - "isOptional" : false - } - ], - "returns" : [ - { - "name" : "", - "type" : "Boolean", - "desc" : "True if the event is being listened for, else false" - } - ] - }, - { - "name" : "capture", - "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", - "isStatic" : true, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "o", - "type" : "Observable", - "desc" : "The Observable to capture", - "isOptional" : false - }, - { - "name" : "fn", - "type" : "Function", - "desc" : "The function to call", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope (this object) for the fn", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "addListener", - "desc" : "Appends an event handler to this component", - "isStatic" : false, - "isConstructor" : false, - "isPrivate" : false, - "memberOf" : "Roo.util.Observable", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "eventName", - "type" : "String", - "desc" : "The type of event to listen for", - "isOptional" : false - }, - { - "name" : "handler", - "type" : "Function", - "desc" : "The method the event invokes", - "isOptional" : false - }, - { - "name" : "scope", - "type" : "Object", - "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.", - "isOptional" : false - }, - { - "name" : "options", - "type" : "Object", - "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:
\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t

\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t
\n

\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t
\n

\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t

\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t
", - "isOptional" : false - } - ], - "returns" : [] - } - ], - "events" : [ - { - "name" : "childrenrendered", - "desc" : "Fires when the children have been rendered..", - "memberOf" : "Roo.bootstrap.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.bootstrap.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforerender", - "desc" : "Fires before the component is rendered. Return false to stop the render.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "disable", - "desc" : "Fires after the component is disabled.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "render", - "desc" : "Fires after the component is rendered.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "destroy", - "desc" : "Fires after the component is destroyed.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "hide", - "desc" : "Fires after the component is hidden.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforehide", - "desc" : "Fires before the component is hidden. Return false to stop the hide.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "show", - "desc" : "Fires after the component is shown.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforeshow", - "desc" : "Fires before the component is shown. Return false to stop the show.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "enable", - "desc" : "Fires after the component is enabled.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - }, - { - "name" : "beforedestroy", - "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", - "memberOf" : "Roo.Component", - "example" : "", - "deprecated" : "", - "since" : "", - "see" : "", - "params" : [ - { - "name" : "this", - "type" : "Roo.Component", - "desc" : "", - "isOptional" : false - } - ], - "returns" : [] - } - ] -} \ No newline at end of file diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 39e1334642..8cfe037b5c 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -14,7 +14,10 @@ Roo.bootstrap.version = ( function() { Roo.Element.prototype.visibilityMode = Roo.Element.DISPLAY; } return ret; -})(); /* +})(); Roo.bootstrap.menu = Roo.bootstrap.menu || {}; +Roo.bootstrap.nav = {}; + +Roo.bootstrap.form.Form = {};Roo.bootstrap.panel = {};Roo.bootstrap.layout = {};/* * Based on: * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. @@ -906,7 +909,7 @@ Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component, { * @class Roo.bootstrap.ButtonGroup * @extends Roo.bootstrap.Component * Bootstrap ButtonGroup class - * @children Roo.bootstrap.Button Roo.bootstrap.Form + * @children Roo.bootstrap.Button Roo.bootstrap.form.Form * * @cfg {String} size lg | sm | xs (default empty normal) * @cfg {String} align vertical | justified (default none) @@ -3421,8 +3424,7 @@ Roo.extend(Roo.bootstrap.Header, Roo.bootstrap.Component, { - Roo.bootstrap.menu = Roo.bootstrap.menu || {}; -/** + /** * @class Roo.bootstrap.MenuMgr * @licence LGPL * Provides a common registry of all menu items on a page so that they can be easily accessed by id. @@ -4246,12 +4248,7 @@ Roo.extend(Roo.bootstrap.menu.Separator, Roo.bootstrap.Component, { - // deprciated -Roo.bootstrap.Menu = Roo.bootstrap.menu.Menu; -Roo.bootstrap.MenuItem = Roo.bootstrap.menu.Item; -Roo.bootstrap.MenuSeparator = Roo.bootstrap.menu.Separator - - + /* * Licence: LGPL */ @@ -5515,8 +5512,6 @@ Roo.Msg.show({ */ Roo.MessageBox = Roo.MessageBox || Roo.bootstrap.MessageBox; Roo.Msg = Roo.Msg || Roo.MessageBox; -Roo.bootstrap.nav = {}; - /* * - LGPL * @@ -5698,7 +5693,7 @@ Roo.extend(Roo.bootstrap.nav.Bar, Roo.bootstrap.Component, { /** * @class Roo.bootstrap.nav.Simplebar * @extends Roo.bootstrap.nav.Bar - * @children Roo.bootstrap.nav.Group Roo.bootstrap.Container Roo.bootstrap.Form Roo.bootstrap.Row Roo.bootstrap.Column Roo.bootstrap.Link + * @children Roo.bootstrap.nav.Group Roo.bootstrap.Container Roo.bootstrap.form.Form Roo.bootstrap.Row Roo.bootstrap.Column Roo.bootstrap.Link * Bootstrap Sidebar class * * @cfg {Boolean} inverse is inverted color @@ -5827,7 +5822,7 @@ Roo.extend(Roo.bootstrap.nav.Simplebar, Roo.bootstrap.nav.Bar, { /** * @class Roo.bootstrap.nav.Headerbar * @extends Roo.bootstrap.nav.Simplebar - * @children Roo.bootstrap.nav.Group Roo.bootstrap.Container Roo.bootstrap.Form Roo.bootstrap.Row Roo.bootstrap.Column Roo.bootstrap.Link + * @children Roo.bootstrap.nav.Group Roo.bootstrap.Container Roo.bootstrap.form.Form Roo.bootstrap.Row Roo.bootstrap.Column Roo.bootstrap.Link * Bootstrap Sidebar class * * @cfg {String} brand what is brand @@ -6013,7 +6008,7 @@ Roo.extend(Roo.bootstrap.nav.Headerbar, Roo.bootstrap.nav.Simplebar, { /** * @class Roo.bootstrap.nav.Sidebar * @extends Roo.bootstrap.nav.Bar - * @children Roo.bootstrap.nav.Group Roo.bootstrap.Container Roo.bootstrap.Form Roo.bootstrap.Row Roo.bootstrap.Column Roo.bootstrap.Link + * @children Roo.bootstrap.nav.Group Roo.bootstrap.Container Roo.bootstrap.form.Form Roo.bootstrap.Row Roo.bootstrap.Column Roo.bootstrap.Link * Bootstrap Sidebar class * * @constructor @@ -7356,19 +7351,7 @@ Roo.extend(Roo.bootstrap.nav.ProgressBarItem, Roo.bootstrap.Component, { }); - // depricated. -Roo.bootstrap.Navbar = Roo.bootstrap.nav.Bar; -Roo.bootstrap.NavGroup = Roo.bootstrap.nav.Group; -Roo.bootstrap.NavHeaderbar = Roo.bootstrap.nav.Headerbar; -Roo.bootstrap.NavItem = Roo.bootstrap.nav.Item; - -Roo.bootstrap.NavProgressBar = Roo.bootstrap.nav.ProgressBar; -Roo.bootstrap.NavProgressBarItem = Roo.bootstrap.nav.ProgressBarItem; - -Roo.bootstrap.NavSidebar = Roo.bootstrap.nav.Sidebar; -Roo.bootstrap.NavSidebarItem = Roo.bootstrap.nav.SidebarItem; - -Roo.bootstrap.NavSimplebar = Roo.bootstrap.nav.Simplebar;/* + /* * - LGPL * * Breadcrumb Nav @@ -11341,7 +11324,7 @@ Roo.form.Action.ACTION_TYPES = { */ /** - * @class Roo.bootstrap.Form + * @class Roo.bootstrap.form.Form * @extends Roo.bootstrap.Component * @children Roo.bootstrap.Component * Bootstrap Form class @@ -11357,11 +11340,11 @@ Roo.form.Action.ACTION_TYPES = { */ -Roo.bootstrap.Form = function(config){ +Roo.bootstrap.form.Form = function(config){ - Roo.bootstrap.Form.superclass.constructor.call(this, config); + Roo.bootstrap.form.Form.superclass.constructor.call(this, config); - Roo.bootstrap.Form.popover.apply(); + Roo.bootstrap.form.Form.popover.apply(); this.addEvents({ /** @@ -11395,7 +11378,7 @@ Roo.bootstrap.Form = function(config){ }); }; -Roo.extend(Roo.bootstrap.Form, Roo.bootstrap.Component, { +Roo.extend(Roo.bootstrap.form.Form, Roo.bootstrap.Component, { /** * @cfg {String} method @@ -11525,7 +11508,7 @@ Roo.extend(Roo.bootstrap.Form, Roo.bootstrap.Component, { }); if(this.errorMask && !valid){ - Roo.bootstrap.Form.popover.mask(this, target); + Roo.bootstrap.form.Form.popover.mask(this, target); } return valid; @@ -11942,7 +11925,7 @@ clientValidation Boolean Applies to submit only. Pass true to call fo }); -Roo.apply(Roo.bootstrap.Form, { +Roo.apply(Roo.bootstrap.form.Form, { popover : { @@ -12078,7 +12061,7 @@ Roo.apply(Roo.bootstrap.Form, { this.toolTip.show(tip); this.intervalID = window.setInterval(function() { - Roo.bootstrap.Form.popover.unmask(); + Roo.bootstrap.form.Form.popover.unmask(); }, 10000); window.onwheel = function(){ return false;}; @@ -12227,7 +12210,7 @@ Roo.form.VTypes = function(){ */ /** - * @class Roo.bootstrap.Input + * @class Roo.bootstrap.form.Input * @extends Roo.bootstrap.Component * Bootstrap Input class * @cfg {Boolean} disabled is it disabled @@ -12265,9 +12248,9 @@ Roo.form.VTypes = function(){ * @param {Object} config The config object */ -Roo.bootstrap.Input = function(config){ +Roo.bootstrap.form.Input = function(config){ - Roo.bootstrap.Input.superclass.constructor.call(this, config); + Roo.bootstrap.form.Input.superclass.constructor.call(this, config); this.addEvents({ /** @@ -12328,7 +12311,7 @@ Roo.bootstrap.Input = function(config){ }); }; -Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component, { +Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component, { /** * @cfg {String/Boolean} validationEvent The event that should initiate field validation. Set to false to disable automatic validation (defaults to "keyup"). @@ -13334,8 +13317,8 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component, { */ /** - * @class Roo.bootstrap.TextArea - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.TextArea + * @extends Roo.bootstrap.form.Input * Bootstrap TextArea class * @cfg {Number} cols Specifies the visible width of a text area * @cfg {Number} rows Specifies the visible number of lines in a text area @@ -13348,12 +13331,12 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component, { * @param {Object} config The config object */ -Roo.bootstrap.TextArea = function(config){ - Roo.bootstrap.TextArea.superclass.constructor.call(this, config); +Roo.bootstrap.form.TextArea = function(config){ + Roo.bootstrap.form.TextArea.superclass.constructor.call(this, config); }; -Roo.extend(Roo.bootstrap.TextArea, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.TextArea, Roo.bootstrap.form.Input, { cols : false, rows : 5, @@ -13703,35 +13686,35 @@ Roo.extend(Roo.bootstrap.TextArea, Roo.bootstrap.Input, { */ /** - * @class Roo.bootstrap.TriggerField - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.TriggerField + * @extends Roo.bootstrap.form.Input * Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default). * The trigger has no default action, so you must assign a function to implement the trigger click handler by * overriding {@link #onTriggerClick}. You can create a TriggerField directly, as it renders exactly like a combobox * for which you can provide a custom implementation. For example: *

-var trigger = new Roo.bootstrap.TriggerField();
+var trigger = new Roo.bootstrap.form.TriggerField();
 trigger.onTriggerClick = myTriggerFn;
 trigger.applyTo('my-field');
 
* * However, in general you will most likely want to use TriggerField as the base class for a reusable component. - * {@link Roo.bootstrap.DateField} and {@link Roo.bootstrap.ComboBox} are perfect examples of this. + * {@link Roo.bootstrap.form.DateField} and {@link Roo.bootstrap.form.ComboBox} are perfect examples of this. * @cfg {String} triggerClass An additional CSS class used to style the trigger button. The trigger will always get the * class 'x-form-trigger' by default and triggerClass will be appended if specified. * @cfg {String} caret (search|calendar) BS3 only - carat fa name * @constructor * Create a new TriggerField. - * @param {Object} config Configuration options (valid {@Roo.bootstrap.Input} config options will also be applied + * @param {Object} config Configuration options (valid {@Roo.bootstrap.form.Input} config options will also be applied * to the base TextField) */ -Roo.bootstrap.TriggerField = function(config){ +Roo.bootstrap.form.TriggerField = function(config){ this.mimicing = false; - Roo.bootstrap.TriggerField.superclass.constructor.call(this, config); + Roo.bootstrap.form.TriggerField.superclass.constructor.call(this, config); }; -Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.TriggerField, Roo.bootstrap.form.Input, { /** * @cfg {String} triggerClass A CSS class to apply to the trigger */ @@ -14097,7 +14080,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { // private onResize : function(w, h){ -// Roo.bootstrap.TriggerField.superclass.onResize.apply(this, arguments); +// Roo.bootstrap.form.TriggerField.superclass.onResize.apply(this, arguments); // if(typeof w == 'number'){ // var x = w - this.trigger.getWidth(); // this.inputEl().setWidth(this.adjustWidth('input', x)); @@ -14128,7 +14111,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { this.createList(); - Roo.bootstrap.TriggerField.superclass.initEvents.call(this); + Roo.bootstrap.form.TriggerField.superclass.initEvents.call(this); //this.wrap = this.el.wrap({cls: "x-form-field-wrap"}); if(!this.multiple && this.showToggleBtn){ this.trigger = this.el.select('span.dropdown-toggle',true).first(); @@ -14201,12 +14184,12 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { //if(this.wrap){ // this.wrap.remove(); //} - Roo.bootstrap.TriggerField.superclass.onDestroy.call(this); + Roo.bootstrap.form.TriggerField.superclass.onDestroy.call(this); }, // private onFocus : function(){ - Roo.bootstrap.TriggerField.superclass.onFocus.call(this); + Roo.bootstrap.form.TriggerField.superclass.onFocus.call(this); /* if(!this.mimicing){ this.wrap.addClass('x-trigger-wrap-focus'); @@ -14248,7 +14231,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { this.el.un("keydown", this.checkTab, this); } //this.wrap.removeClass('x-trigger-wrap-focus'); - Roo.bootstrap.TriggerField.superclass.onBlur.call(this); + Roo.bootstrap.form.TriggerField.superclass.onBlur.call(this); }, // private @@ -14260,7 +14243,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { // private onDisable : function(){ this.inputEl().dom.disabled = true; - //Roo.bootstrap.TriggerField.superclass.onDisable.call(this); + //Roo.bootstrap.form.TriggerField.superclass.onDisable.call(this); //if(this.wrap){ // this.wrap.addClass('x-item-disabled'); //} @@ -14269,7 +14252,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { // private onEnable : function(){ this.inputEl().dom.disabled = false; - //Roo.bootstrap.TriggerField.superclass.onEnable.call(this); + //Roo.bootstrap.form.TriggerField.superclass.onEnable.call(this); //if(this.wrap){ // this.el.removeClass('x-item-disabled'); //} @@ -14306,7 +14289,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { */ /** - * @class Roo.bootstrap.CardUploader + * @class Roo.bootstrap.form.CardUploader * @extends Roo.bootstrap.Button * Bootstrap Card Uploader class - it's a button which when you add files to it, adds cards below with preview and the name... * @cfg {Number} errorTimeout default 3000 @@ -14319,11 +14302,11 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { * @param {Object} config The config object */ -Roo.bootstrap.CardUploader = function(config){ +Roo.bootstrap.form.CardUploader = function(config){ - Roo.bootstrap.CardUploader.superclass.constructor.call(this, config); + Roo.bootstrap.form.CardUploader.superclass.constructor.call(this, config); this.fileCollection = new Roo.util.MixedCollection(false,function(r) { @@ -14351,7 +14334,7 @@ Roo.bootstrap.CardUploader = function(config){ }); }; -Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.CardUploader, Roo.bootstrap.form.Input, { errorTimeout : 3000, @@ -14417,7 +14400,7 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, { initEvents : function() { - Roo.bootstrap.Input.prototype.initEvents.call(this); + Roo.bootstrap.form.Input.prototype.initEvents.call(this); var t = this; this.addxtype({ @@ -14507,7 +14490,7 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, { var url = _this.urlAPI.createObjectURL( file); this.addCard({ - id : Roo.bootstrap.CardUploader.ID--, + id : Roo.bootstrap.form.CardUploader.ID--, is_uploaded : false, src : url, srcfile : file, @@ -14685,7 +14668,7 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, { }); -Roo.bootstrap.CardUploader.ID = -1;/* +Roo.bootstrap.form.CardUploader.ID = -1;/* * Based on: * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. @@ -16791,8 +16774,8 @@ Roo.extend(Roo.data.ArrayReader, Roo.data.JsonReader, { */ /** - * @class Roo.bootstrap.ComboBox - * @extends Roo.bootstrap.TriggerField + * @class Roo.bootstrap.form.ComboBox + * @extends Roo.bootstrap.form.TriggerField * A combobox control with support for autocomplete, remote-loading, paging and many other features. * @cfg {Boolean} append (true|false) default false * @cfg {Boolean} autoFocus (true|false) auto focus the first item, default true @@ -16809,25 +16792,25 @@ Roo.extend(Roo.data.ArrayReader, Roo.data.JsonReader, { * Create a new ComboBox. * @param {Object} config Configuration options */ -Roo.bootstrap.ComboBox = function(config){ - Roo.bootstrap.ComboBox.superclass.constructor.call(this, config); +Roo.bootstrap.form.ComboBox = function(config){ + Roo.bootstrap.form.ComboBox.superclass.constructor.call(this, config); this.addEvents({ /** * @event expand * Fires when the dropdown list is expanded - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box */ 'expand' : true, /** * @event collapse * Fires when the dropdown list is collapsed - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box */ 'collapse' : true, /** * @event beforeselect * Fires before a list item is selected. Return false to cancel the selection. - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box * @param {Roo.data.Record} record The data record returned from the underlying store * @param {Number} index The index of the selected item in the dropdown list */ @@ -16835,7 +16818,7 @@ Roo.bootstrap.ComboBox = function(config){ /** * @event select * Fires when a list item is selected - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box * @param {Roo.data.Record} record The data record returned from the underlying store (or false on clear) * @param {Number} index The index of the selected item in the dropdown list */ @@ -16844,7 +16827,7 @@ Roo.bootstrap.ComboBox = function(config){ * @event beforequery * Fires before all queries are processed. Return false to cancel the query or set cancel to true. * The event object passed has these properties: - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box * @param {String} query The query * @param {Boolean} forceAll true to force "all" query * @param {Boolean} cancel true to cancel the query @@ -16854,44 +16837,44 @@ Roo.bootstrap.ComboBox = function(config){ /** * @event add * Fires when the 'add' icon is pressed (add a listener to enable add button) - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box */ 'add' : true, /** * @event edit * Fires when the 'edit' icon is pressed (add a listener to enable add button) - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box * @param {Roo.data.Record|false} record The data record returned from the underlying store (or false on nothing selected) */ 'edit' : true, /** * @event remove * Fires when the remove value from the combobox array - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box */ 'remove' : true, /** * @event afterremove * Fires when the remove value from the combobox array - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box */ 'afterremove' : true, /** * @event specialfilter * Fires when specialfilter - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box */ 'specialfilter' : true, /** * @event tick * Fires when tick the element - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box */ 'tick' : true, /** * @event touchviewdisplay * Fires when touch view require special display (default is using displayField) - * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Roo.bootstrap.form.ComboBox} combo This combo box * @param {Object} cfg set html . */ 'touchviewdisplay' : true @@ -16912,7 +16895,7 @@ Roo.bootstrap.ComboBox = function(config){ } }; -Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { +Roo.extend(Roo.bootstrap.form.ComboBox, Roo.bootstrap.form.TriggerField, { /** * @cfg {Boolean} lazyRender True to prevent the ComboBox from rendering until requested (should always be used when @@ -17161,7 +17144,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { * Normal ComboBox */ if(!this.tickable){ - cfg = Roo.bootstrap.ComboBox.superclass.getAutoCreate.call(this); + cfg = Roo.bootstrap.form.ComboBox.superclass.getAutoCreate.call(this); return cfg; } @@ -17481,7 +17464,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { return; } - Roo.bootstrap.ComboBox.superclass.initEvents.call(this); + Roo.bootstrap.form.ComboBox.superclass.initEvents.call(this); if(this.hiddenName){ @@ -17861,7 +17844,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { this.store.un('load', this.onLoad, this); this.store.un('loadexception', this.onLoadException, this); } - Roo.bootstrap.ComboBox.superclass.onDestroy.call(this); + Roo.bootstrap.form.ComboBox.superclass.onDestroy.call(this); }, // private @@ -17876,7 +17859,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { { -// Roo.bootstrap.ComboBox.superclass.onResize.apply(this, arguments); +// Roo.bootstrap.form.ComboBox.superclass.onResize.apply(this, arguments); // // if(typeof w != 'number'){ // // we do not handle it!?!? @@ -18049,7 +18032,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { if(this.valueField){ return typeof this.value != 'undefined' ? this.value : ''; }else{ - return Roo.bootstrap.ComboBox.superclass.getValue.call(this); + return Roo.bootstrap.form.ComboBox.superclass.getValue.call(this); } }, @@ -18119,7 +18102,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { if(this.hiddenField){ this.hiddenField.dom.value = v; } - Roo.bootstrap.ComboBox.superclass.setValue.call(this, text); + Roo.bootstrap.form.ComboBox.superclass.setValue.call(this, text); this.value = v; var close = this.closeTriggerEl(); @@ -18175,14 +18158,14 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { this.hiddenField.dom.value = vv; this.lastSelectionText = dv; - Roo.bootstrap.ComboBox.superclass.setValue.call(this, dv); + Roo.bootstrap.form.ComboBox.superclass.setValue.call(this, dv); this.value = vv; return; } // no hidden field.. - we store the value in 'value', but still display // display field!!!! this.lastSelectionText = dv; - Roo.bootstrap.ComboBox.superclass.setValue.call(this, dv); + Roo.bootstrap.form.ComboBox.superclass.setValue.call(this, dv); this.value = vv; @@ -19323,7 +19306,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { renderTouchView : function() { - this.touchViewEl = Roo.get(document.body).createChild(Roo.bootstrap.ComboBox.touchViewTemplate); + this.touchViewEl = Roo.get(document.body).createChild(Roo.bootstrap.form.ComboBox.touchViewTemplate); this.touchViewEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; this.touchViewHeaderEl = this.touchViewEl.select('.modal-header', true).first(); @@ -19458,7 +19441,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { var rawValue = this.getRawValue(); - var template = (this.multiple) ? Roo.bootstrap.ComboBox.listItemCheckbox : Roo.bootstrap.ComboBox.listItemRadio; + var template = (this.multiple) ? Roo.bootstrap.form.ComboBox.listItemCheckbox : Roo.bootstrap.form.ComboBox.listItemRadio; this.tickItems = []; @@ -19532,7 +19515,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { { this.clearTouchView(); - this.touchViewListGroup.createChild(Roo.bootstrap.ComboBox.emptyResult); + this.touchViewListGroup.createChild(Roo.bootstrap.form.ComboBox.emptyResult); this.touchViewListGroup.select('.roo-combobox-touch-view-empty-result', true).first().dom.innerHTML = this.emptyResultText; @@ -19750,7 +19733,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { */ }); -Roo.apply(Roo.bootstrap.ComboBox, { +Roo.apply(Roo.bootstrap.form.ComboBox, { header : { tag: 'div', @@ -19860,7 +19843,7 @@ Roo.apply(Roo.bootstrap.ComboBox, { } }); -Roo.apply(Roo.bootstrap.ComboBox, { +Roo.apply(Roo.bootstrap.form.ComboBox, { touchViewTemplate : { tag: 'div', @@ -19875,9 +19858,9 @@ Roo.apply(Roo.bootstrap.ComboBox, { tag: 'div', cls: 'modal-content', cn: [ - Roo.bootstrap.ComboBox.header, - Roo.bootstrap.ComboBox.body, - Roo.bootstrap.ComboBox.footer + Roo.bootstrap.form.ComboBox.header, + Roo.bootstrap.form.ComboBox.body, + Roo.bootstrap.form.ComboBox.footer ] } ] @@ -22746,8 +22729,8 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component, { */ /** - * @class Roo.bootstrap.DateField - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.DateField + * @extends Roo.bootstrap.form.Input * Bootstrap DateField class * @cfg {Number} weekStart default 0 * @cfg {String} viewMode default empty, (months|years) @@ -22768,41 +22751,41 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component, { * @param {Object} config The config object */ -Roo.bootstrap.DateField = function(config){ - Roo.bootstrap.DateField.superclass.constructor.call(this, config); +Roo.bootstrap.form.DateField = function(config){ + Roo.bootstrap.form.DateField.superclass.constructor.call(this, config); this.addEvents({ /** * @event show * Fires when this field show. - * @param {Roo.bootstrap.DateField} this + * @param {Roo.bootstrap.form.DateField} this * @param {Mixed} date The date value */ show : true, /** * @event show * Fires when this field hide. - * @param {Roo.bootstrap.DateField} this + * @param {Roo.bootstrap.form.DateField} this * @param {Mixed} date The date value */ hide : true, /** * @event select * Fires when select a date. - * @param {Roo.bootstrap.DateField} this + * @param {Roo.bootstrap.form.DateField} this * @param {Mixed} date The date value */ select : true, /** * @event beforeselect * Fires when before select a date. - * @param {Roo.bootstrap.DateField} this + * @param {Roo.bootstrap.form.DateField} this * @param {Mixed} date The date value */ beforeselect : true }); }; -Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input, { /** * @cfg {String} format @@ -22875,13 +22858,13 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { onRender: function(ct, position) { - Roo.bootstrap.DateField.superclass.onRender.call(this, ct, position); + Roo.bootstrap.form.DateField.superclass.onRender.call(this, ct, position); this.language = this.language || 'en'; - this.language = this.language in Roo.bootstrap.DateField.dates ? this.language : this.language.split('-')[0]; - this.language = this.language in Roo.bootstrap.DateField.dates ? this.language : "en"; + this.language = this.language in Roo.bootstrap.form.DateField.dates ? this.language : this.language.split('-')[0]; + this.language = this.language in Roo.bootstrap.form.DateField.dates ? this.language : "en"; - this.isRTL = Roo.bootstrap.DateField.dates[this.language].rtl || false; + this.isRTL = Roo.bootstrap.form.DateField.dates[this.language].rtl || false; this.format = this.format || 'm/d/y'; this.isInline = false; this.isInput = true; @@ -22917,9 +22900,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { } } - this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.DateField.template); + this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.form.DateField.template); -// this.el.select('>.input-group', true).first().createChild(Roo.bootstrap.DateField.template); +// this.el.select('>.input-group', true).first().createChild(Roo.bootstrap.form.DateField.template); this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; @@ -22947,7 +22930,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { return; } - v.dom.innerHTML = Roo.bootstrap.DateField.dates[this.language].today; + v.dom.innerHTML = Roo.bootstrap.form.DateField.dates[this.language].today; v.attr('colspan', function(i, val){ return parseInt(val) + 1; }); @@ -23000,7 +22983,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { dow.cn.push({ tag: 'th', cls: 'dow', - html: Roo.bootstrap.DateField.dates[this.language].daysMin[(dowCnt++)%7] + html: Roo.bootstrap.form.DateField.dates[this.language].daysMin[(dowCnt++)%7] }); } @@ -23018,7 +23001,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { var month = { tag: 'span', cls: 'month', - html: Roo.bootstrap.DateField.dates[this.language].monthsShort[i++] + html: Roo.bootstrap.form.DateField.dates[this.language].monthsShort[i++] }; months.createChild(month); @@ -23053,9 +23036,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { currentDate = this.date && this.date.valueOf(), today = this.UTCToday(); - this.picker().select('>.datepicker-days thead th.switch', true).first().dom.innerHTML = Roo.bootstrap.DateField.dates[this.language].months[month]+' '+year; + this.picker().select('>.datepicker-days thead th.switch', true).first().dom.innerHTML = Roo.bootstrap.form.DateField.dates[this.language].months[month]+' '+year; -// this.picker().select('>tfoot th.today', true).first().dom.innerHTML = Roo.bootstrap.DateField.dates[this.language].today; +// this.picker().select('>tfoot th.today', true).first().dom.innerHTML = Roo.bootstrap.form.DateField.dates[this.language].today; // this.picker.select('>tfoot th.today'). // .text(dates[this.language].today) @@ -23193,7 +23176,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { v.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; v.hide(); }); - this.picker().select('>.datepicker-'+Roo.bootstrap.DateField.modes[this.viewMode].clsName, true).first().show(); + this.picker().select('>.datepicker-'+Roo.bootstrap.form.DateField.modes[this.viewMode].clsName, true).first().show(); }, place: function() @@ -23249,13 +23232,13 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { onFocus : function() { - Roo.bootstrap.DateField.superclass.onFocus.call(this); + Roo.bootstrap.form.DateField.superclass.onFocus.call(this); this.showPopup(); }, onBlur : function() { - Roo.bootstrap.DateField.superclass.onBlur.call(this); + Roo.bootstrap.form.DateField.superclass.onBlur.call(this); var d = this.inputEl().getValue(); @@ -23294,7 +23277,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { keyup: function(e) { - Roo.bootstrap.DateField.superclass.keyup.call(this); + Roo.bootstrap.form.DateField.superclass.keyup.call(this); this.update(); }, @@ -23305,13 +23288,13 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { if(isNaN(d.getTime())){ this.date = this.viewDate = ''; - Roo.bootstrap.DateField.superclass.setValue.call(this, ''); + Roo.bootstrap.form.DateField.superclass.setValue.call(this, ''); return; } v = this.formatDate(d); - Roo.bootstrap.DateField.superclass.setValue.call(this, v); + Roo.bootstrap.form.DateField.superclass.setValue.call(this, v); this.date = new Date(d.getTime() - d.getTimezoneOffset()*60000); @@ -23443,7 +23426,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { break; case 'prev': case 'next': - var dir = Roo.bootstrap.DateField.modes[this.viewMode].navStep * (className == 'prev' ? -1 : 1); + var dir = Roo.bootstrap.form.DateField.modes[this.viewMode].navStep * (className == 'prev' ? -1 : 1); switch(this.viewMode){ case 0: this.viewDate = this.moveMonth(this.viewDate, dir); @@ -23472,7 +23455,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { } this.viewDate.setUTCDate(1); if (className.indexOf('month') > -1) { - this.viewDate.setUTCMonth(Roo.bootstrap.DateField.dates[this.language].monthsShort.indexOf(html)); + this.viewDate.setUTCMonth(Roo.bootstrap.form.DateField.dates[this.language].monthsShort.indexOf(html)); } else { var year = parseInt(html, 10) || 0; this.viewDate.setUTCFullYear(year); @@ -23727,12 +23710,12 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { { this.date = this.viewDate = ''; - Roo.bootstrap.DateField.superclass.setValue.call(this, ''); + Roo.bootstrap.form.DateField.superclass.setValue.call(this, ''); } }); -Roo.apply(Roo.bootstrap.DateField, { +Roo.apply(Roo.bootstrap.form.DateField, { head : { tag: 'thead', @@ -23822,7 +23805,7 @@ Roo.apply(Roo.bootstrap.DateField, { }] }); -Roo.apply(Roo.bootstrap.DateField, { +Roo.apply(Roo.bootstrap.form.DateField, { template : { tag: 'div', @@ -23836,11 +23819,11 @@ Roo.apply(Roo.bootstrap.DateField, { tag: 'table', cls: 'table-condensed', cn:[ - Roo.bootstrap.DateField.head, + Roo.bootstrap.form.DateField.head, { tag: 'tbody' }, - Roo.bootstrap.DateField.footer + Roo.bootstrap.form.DateField.footer ] } ] @@ -23853,9 +23836,9 @@ Roo.apply(Roo.bootstrap.DateField, { tag: 'table', cls: 'table-condensed', cn:[ - Roo.bootstrap.DateField.head, - Roo.bootstrap.DateField.content, - Roo.bootstrap.DateField.footer + Roo.bootstrap.form.DateField.head, + Roo.bootstrap.form.DateField.content, + Roo.bootstrap.form.DateField.footer ] } ] @@ -23868,9 +23851,9 @@ Roo.apply(Roo.bootstrap.DateField, { tag: 'table', cls: 'table-condensed', cn:[ - Roo.bootstrap.DateField.head, - Roo.bootstrap.DateField.content, - Roo.bootstrap.DateField.footer + Roo.bootstrap.form.DateField.head, + Roo.bootstrap.form.DateField.content, + Roo.bootstrap.form.DateField.footer ] } ] @@ -23889,8 +23872,8 @@ Roo.apply(Roo.bootstrap.DateField, { */ /** - * @class Roo.bootstrap.TimeField - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.TimeField + * @extends Roo.bootstrap.form.Input * Bootstrap DateField class * * @@ -23899,34 +23882,34 @@ Roo.apply(Roo.bootstrap.DateField, { * @param {Object} config The config object */ -Roo.bootstrap.TimeField = function(config){ - Roo.bootstrap.TimeField.superclass.constructor.call(this, config); +Roo.bootstrap.form.TimeField = function(config){ + Roo.bootstrap.form.TimeField.superclass.constructor.call(this, config); this.addEvents({ /** * @event show * Fires when this field show. - * @param {Roo.bootstrap.DateField} thisthis + * @param {Roo.bootstrap.form.DateField} thisthis * @param {Mixed} date The date value */ show : true, /** * @event show * Fires when this field hide. - * @param {Roo.bootstrap.DateField} this + * @param {Roo.bootstrap.form.DateField} this * @param {Mixed} date The date value */ hide : true, /** * @event select * Fires when select a date. - * @param {Roo.bootstrap.DateField} this + * @param {Roo.bootstrap.form.DateField} this * @param {Mixed} date The date value */ select : true }); }; -Roo.extend(Roo.bootstrap.TimeField, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input, { /** * @cfg {String} format @@ -23938,16 +23921,16 @@ Roo.extend(Roo.bootstrap.TimeField, Roo.bootstrap.Input, { getAutoCreate : function() { this.after = ''; - return Roo.bootstrap.TimeField.superclass.getAutoCreate.call(this); + return Roo.bootstrap.form.TimeField.superclass.getAutoCreate.call(this); }, onRender: function(ct, position) { - Roo.bootstrap.TimeField.superclass.onRender.call(this, ct, position); + Roo.bootstrap.form.TimeField.superclass.onRender.call(this, ct, position); - this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.TimeField.template); + this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.form.TimeField.template); this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; @@ -24253,13 +24236,13 @@ Roo.extend(Roo.bootstrap.TimeField, Roo.bootstrap.Input, { onFocus : function() { - Roo.bootstrap.TimeField.superclass.onFocus.call(this); + Roo.bootstrap.form.TimeField.superclass.onFocus.call(this); this.show(); }, onBlur : function() { - Roo.bootstrap.TimeField.superclass.onBlur.call(this); + Roo.bootstrap.form.TimeField.superclass.onBlur.call(this); this.hide(); }, @@ -24336,7 +24319,7 @@ Roo.extend(Roo.bootstrap.TimeField, Roo.bootstrap.Input, { }); -Roo.apply(Roo.bootstrap.TimeField, { +Roo.apply(Roo.bootstrap.form.TimeField, { template : { tag: 'div', @@ -24405,8 +24388,8 @@ Roo.apply(Roo.bootstrap.TimeField, { */ /** - * @class Roo.bootstrap.MonthField - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.MonthField + * @extends Roo.bootstrap.form.Input * Bootstrap MonthField class * * @cfg {String} language default en @@ -24416,28 +24399,28 @@ Roo.apply(Roo.bootstrap.TimeField, { * @param {Object} config The config object */ -Roo.bootstrap.MonthField = function(config){ - Roo.bootstrap.MonthField.superclass.constructor.call(this, config); +Roo.bootstrap.form.MonthField = function(config){ + Roo.bootstrap.form.MonthField.superclass.constructor.call(this, config); this.addEvents({ /** * @event show * Fires when this field show. - * @param {Roo.bootstrap.MonthField} this + * @param {Roo.bootstrap.form.MonthField} this * @param {Mixed} date The date value */ show : true, /** * @event show * Fires when this field hide. - * @param {Roo.bootstrap.MonthField} this + * @param {Roo.bootstrap.form.MonthField} this * @param {Mixed} date The date value */ hide : true, /** * @event select * Fires when select a date. - * @param {Roo.bootstrap.MonthField} this + * @param {Roo.bootstrap.form.MonthField} this * @param {String} oldvalue The old value * @param {String} newvalue The new value */ @@ -24445,25 +24428,25 @@ Roo.bootstrap.MonthField = function(config){ }); }; -Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.MonthField, Roo.bootstrap.form.Input, { onRender: function(ct, position) { - Roo.bootstrap.MonthField.superclass.onRender.call(this, ct, position); + Roo.bootstrap.form.MonthField.superclass.onRender.call(this, ct, position); this.language = this.language || 'en'; - this.language = this.language in Roo.bootstrap.MonthField.dates ? this.language : this.language.split('-')[0]; - this.language = this.language in Roo.bootstrap.MonthField.dates ? this.language : "en"; + this.language = this.language in Roo.bootstrap.form.MonthField.dates ? this.language : this.language.split('-')[0]; + this.language = this.language in Roo.bootstrap.form.MonthField.dates ? this.language : "en"; - this.isRTL = Roo.bootstrap.MonthField.dates[this.language].rtl || false; + this.isRTL = Roo.bootstrap.form.MonthField.dates[this.language].rtl || false; this.isInline = false; this.isInput = true; this.component = this.el.select('.add-on', true).first() || false; this.component = (this.component && this.component.length === 0) ? false : this.component; this.hasInput = this.component && this.inputEL().length; - this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.MonthField.template); + this.pickerEl = Roo.get(document.body).createChild(Roo.bootstrap.form.MonthField.template); this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block'; @@ -24490,7 +24473,7 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { { var o = this.getValue(); - Roo.bootstrap.MonthField.superclass.setValue.call(this, v); + Roo.bootstrap.form.MonthField.superclass.setValue.call(this, v); this.update(); @@ -24524,9 +24507,9 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { return; } - this.vIndex = Roo.bootstrap.MonthField.dates[this.language].monthsShort.indexOf(html); + this.vIndex = Roo.bootstrap.form.MonthField.dates[this.language].monthsShort.indexOf(html); - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); + this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); this.hide(); @@ -24548,7 +24531,7 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { var month = { tag: 'span', cls: 'month', - html: Roo.bootstrap.MonthField.dates[this.language].monthsShort[i++] + html: Roo.bootstrap.form.MonthField.dates[this.language].monthsShort[i++] }; months.createChild(month); @@ -24561,7 +24544,7 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { var _this = this; if(typeof(this.vIndex) == 'undefined' && this.value.length){ - this.vIndex = Roo.bootstrap.MonthField.dates[this.language].months.indexOf(this.value); + this.vIndex = Roo.bootstrap.form.MonthField.dates[this.language].months.indexOf(this.value); } Roo.each(this.pickerEl.select('> .datepicker-months tbody > tr > td > span', true).elements, function(e, k){ @@ -24600,13 +24583,13 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { onFocus : function() { - Roo.bootstrap.MonthField.superclass.onFocus.call(this); + Roo.bootstrap.form.MonthField.superclass.onFocus.call(this); this.show(); }, onBlur : function() { - Roo.bootstrap.MonthField.superclass.onBlur.call(this); + Roo.bootstrap.form.MonthField.superclass.onBlur.call(this); var d = this.inputEl().getValue(); @@ -24643,7 +24626,7 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { keyup: function(e) { - Roo.bootstrap.MonthField.superclass.keyup.call(this); + Roo.bootstrap.form.MonthField.superclass.keyup.call(this); this.update(); }, @@ -24681,7 +24664,7 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { this.vIndex = 0; } - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); + this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); break; case 38: // up @@ -24703,13 +24686,13 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { this.vIndex = 0; } - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); + this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); break; case 13: // enter if(typeof(this.vIndex) != 'undefined' && !isNaN(this.vIndex)){ - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); + this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); } this.hide(); @@ -24717,7 +24700,7 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { break; case 9: // tab if(typeof(this.vIndex) != 'undefined' && !isNaN(this.vIndex)){ - this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); + this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); } this.hide(); break; @@ -24738,7 +24721,7 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, { }); -Roo.apply(Roo.bootstrap.MonthField, { +Roo.apply(Roo.bootstrap.form.MonthField, { content : { tag: 'tbody', @@ -24763,7 +24746,7 @@ Roo.apply(Roo.bootstrap.MonthField, { } }); -Roo.apply(Roo.bootstrap.MonthField, { +Roo.apply(Roo.bootstrap.form.MonthField, { template : { tag: 'div', @@ -24777,7 +24760,7 @@ Roo.apply(Roo.bootstrap.MonthField, { tag: 'table', cls: 'table-condensed', cn:[ - Roo.bootstrap.DateField.content + Roo.bootstrap.form.DateField.content ] } ] @@ -24797,8 +24780,8 @@ Roo.apply(Roo.bootstrap.MonthField, { */ /** - * @class Roo.bootstrap.CheckBox - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.CheckBox + * @extends Roo.bootstrap.form.Input * Bootstrap CheckBox class * * @cfg {String} valueOff The value that should go into the generated input element's value when unchecked. @@ -24815,28 +24798,28 @@ Roo.apply(Roo.bootstrap.MonthField, { * @param {Object} config The config object */ -Roo.bootstrap.CheckBox = function(config){ - Roo.bootstrap.CheckBox.superclass.constructor.call(this, config); +Roo.bootstrap.form.CheckBox = function(config){ + Roo.bootstrap.form.CheckBox.superclass.constructor.call(this, config); this.addEvents({ /** * @event check * Fires when the element is checked or unchecked. - * @param {Roo.bootstrap.CheckBox} this This input + * @param {Roo.bootstrap.form.CheckBox} this This input * @param {Boolean} checked The new checked value */ check : true, /** * @event click * Fires when the element is click. - * @param {Roo.bootstrap.CheckBox} this This input + * @param {Roo.bootstrap.form.CheckBox} this This input */ click : true }); }; -Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.CheckBox, Roo.bootstrap.form.Input, { inputType: 'checkbox', inputValue: 1, @@ -25088,7 +25071,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { initEvents : function() { -// Roo.bootstrap.CheckBox.superclass.initEvents.call(this); +// Roo.bootstrap.form.CheckBox.superclass.initEvents.call(this); this.inputEl().on('click', this.onClick, this); @@ -25099,7 +25082,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { this.startValue = this.getValue(); if(this.groupId){ - Roo.bootstrap.CheckBox.register(this); + Roo.bootstrap.form.CheckBox.register(this); } }, @@ -25251,7 +25234,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { //return (this.getValue() == this.inputValue) ? true : false; } - var group = Roo.bootstrap.CheckBox.get(this.groupId); + var group = Roo.bootstrap.form.CheckBox.get(this.groupId); if(!group){ return false; @@ -25288,10 +25271,10 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { this.fireEvent('valid', this); - var label = Roo.bootstrap.FieldLabel.get(this.name + '-group'); + var label = Roo.bootstrap.form.FieldLabel.get(this.name + '-group'); if(this.groupId){ - label = Roo.bootstrap.FieldLabel.get(this.groupId + '-group'); + label = Roo.bootstrap.form.FieldLabel.get(this.groupId + '-group'); } if(label){ @@ -25325,7 +25308,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { return; } - var group = Roo.bootstrap.CheckBox.get(this.groupId); + var group = Roo.bootstrap.form.CheckBox.get(this.groupId); if(!group){ return; @@ -25357,10 +25340,10 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { this.fireEvent('invalid', this, msg); - var label = Roo.bootstrap.FieldLabel.get(this.name + '-group'); + var label = Roo.bootstrap.form.FieldLabel.get(this.name + '-group'); if(this.groupId){ - label = Roo.bootstrap.FieldLabel.get(this.groupId + '-group'); + label = Roo.bootstrap.form.FieldLabel.get(this.groupId + '-group'); } if(label){ @@ -25395,7 +25378,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { return; } - var group = Roo.bootstrap.CheckBox.get(this.groupId); + var group = Roo.bootstrap.form.CheckBox.get(this.groupId); if(!group){ return; @@ -25416,11 +25399,11 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { clearInvalid : function() { - Roo.bootstrap.Input.prototype.clearInvalid.call(this); + Roo.bootstrap.form.Input.prototype.clearInvalid.call(this); // this.el.findParent('.form-group', false, true).removeClass([this.invalidClass, this.validClass]); - var label = Roo.bootstrap.FieldLabel.get(this.name + '-group'); + var label = Roo.bootstrap.form.FieldLabel.get(this.name + '-group'); if (label && label.iconEl) { label.iconEl.removeClass([ label.validClass, label.invalidClass ]); @@ -25431,7 +25414,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { disable : function() { if(this.inputType != 'radio'){ - Roo.bootstrap.CheckBox.superclass.disable.call(this); + Roo.bootstrap.form.CheckBox.superclass.disable.call(this); return; } @@ -25452,7 +25435,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { enable : function() { if(this.inputType != 'radio'){ - Roo.bootstrap.CheckBox.superclass.enable.call(this); + Roo.bootstrap.form.CheckBox.superclass.enable.call(this); return; } @@ -25481,13 +25464,13 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, { }); -Roo.apply(Roo.bootstrap.CheckBox, { +Roo.apply(Roo.bootstrap.form.CheckBox, { groups: {}, /** * register a CheckBox Group - * @param {Roo.bootstrap.CheckBox} the CheckBox to add + * @param {Roo.bootstrap.form.CheckBox} the CheckBox to add */ register : function(checkbox) { @@ -25505,7 +25488,7 @@ Roo.apply(Roo.bootstrap.CheckBox, { /** * fetch a CheckBox Group based on the group ID * @param {string} the group ID - * @returns {Roo.bootstrap.CheckBox} the CheckBox group + * @returns {Roo.bootstrap.form.CheckBox} the CheckBox group */ get: function(groupId) { if (typeof(this.groups[groupId]) == 'undefined') { @@ -25525,7 +25508,7 @@ Roo.apply(Roo.bootstrap.CheckBox, { */ /** - * @class Roo.bootstrap.Radio + * @class Roo.bootstrap.form.Radio * @extends Roo.bootstrap.Component * Bootstrap Radio class * @cfg {String} boxLabel - the label associated @@ -25535,12 +25518,12 @@ Roo.apply(Roo.bootstrap.CheckBox, { * Create a new Radio * @param {Object} config The config object */ -Roo.bootstrap.Radio = function(config){ - Roo.bootstrap.Radio.superclass.constructor.call(this, config); +Roo.bootstrap.form.Radio = function(config){ + Roo.bootstrap.form.Radio.superclass.constructor.call(this, config); }; -Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, { +Roo.extend(Roo.bootstrap.form.Radio, Roo.bootstrap.Component, { boxLabel : '', @@ -25604,8 +25587,8 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, { */ /** - * @class Roo.bootstrap.SecurePass - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.SecurePass + * @extends Roo.bootstrap.form.Input * Bootstrap SecurePass class * * @@ -25614,7 +25597,7 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, { * @param {Object} config The config object */ -Roo.bootstrap.SecurePass = function (config) { +Roo.bootstrap.form.SecurePass = function (config) { // these go here, so the translation tool can replace them.. this.errors = { PwdEmpty: "Please type a password, and then retype it to confirm.", @@ -25638,10 +25621,10 @@ Roo.bootstrap.SecurePass = function (config) { this.errors = {}; - Roo.bootstrap.SecurePass.superclass.constructor.call(this, config); + Roo.bootstrap.form.SecurePass.superclass.constructor.call(this, config); } -Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.SecurePass, Roo.bootstrap.form.Input, { /** * @cfg {String/Object} errors A Error spec, or true for a default spec (defaults to * { @@ -25686,7 +25669,7 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { // private initEvents: function () { - Roo.bootstrap.SecurePass.superclass.initEvents.call(this); + Roo.bootstrap.form.SecurePass.superclass.initEvents.call(this); if (this.el.is('input[type=password]') && Roo.isSafari) { this.el.on('keydown', this.SafariOnKeyDown, this); @@ -25697,7 +25680,7 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { // private onRender: function (ct, position) { - Roo.bootstrap.SecurePass.superclass.onRender.call(this, ct, position); + Roo.bootstrap.form.SecurePass.superclass.onRender.call(this, ct, position); this.wrap = this.el.wrap({cls: 'x-form-field-wrap'}); this.trigger = this.wrap.createChild({tag: 'div', cls: 'StrengthMeter ' + this.triggerClass}); @@ -25734,7 +25717,7 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { if (this.wrap) { this.wrap.remove(); } - Roo.bootstrap.TriggerField.superclass.onDestroy.call(this); + Roo.bootstrap.form.TriggerField.superclass.onDestroy.call(this); }, // private checkStrength: function () @@ -25771,7 +25754,7 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { }, reset: function () { - Roo.bootstrap.SecurePass.superclass.reset.call(this); + Roo.bootstrap.form.SecurePass.superclass.reset.call(this); this._lastPwd = ''; @@ -25788,7 +25771,7 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { // private validateValue: function (value) { - if (!Roo.bootstrap.SecurePass.superclass.validateValue.call(this, value)) { + if (!Roo.bootstrap.form.SecurePass.superclass.validateValue.call(this, value)) { return false; } if (value.length == 0) { @@ -27701,8 +27684,8 @@ Roo.HtmlEditorCore.swapCodes =[ */ /** - * @class Roo.bootstrap.HtmlEditor - * @extends Roo.bootstrap.TextArea + * @class Roo.bootstrap.form.HtmlEditor + * @extends Roo.bootstrap.form.TextArea * Bootstrap HtmlEditor class * @constructor @@ -27710,8 +27693,8 @@ Roo.HtmlEditorCore.swapCodes =[ * @param {Object} config The config object */ -Roo.bootstrap.HtmlEditor = function(config){ - Roo.bootstrap.HtmlEditor.superclass.constructor.call(this, config); +Roo.bootstrap.form.HtmlEditor = function(config){ + Roo.bootstrap.form.HtmlEditor.superclass.constructor.call(this, config); if (!this.toolbars) { this.toolbars = []; } @@ -27796,7 +27779,7 @@ Roo.bootstrap.HtmlEditor = function(config){ }; -Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, { +Roo.extend(Roo.bootstrap.form.HtmlEditor, Roo.bootstrap.form.TextArea, { /** @@ -27860,20 +27843,20 @@ Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, { Roo.log('renewing'); Roo.log("create toolbars"); - this.toolbars = [ new Roo.bootstrap.htmleditor.ToolbarStandard({editor: this} ) ]; + this.toolbars = [ new Roo.bootstrap.form.HtmlEditorToolbarStandard({editor: this} ) ]; this.toolbars[0].render(this.toolbarContainer()); return; // if (!editor.toolbars || !editor.toolbars.length) { -// editor.toolbars = [ new Roo.bootstrap.HtmlEditor.ToolbarStandard() ]; // can be empty? +// editor.toolbars = [ new Roo.bootstrap.form.HtmlEditorToolbarStandard() ]; // can be empty? // } // // for (var i =0 ; i < editor.toolbars.length;i++) { // editor.toolbars[i] = Roo.factory( // typeof(editor.toolbars[i]) == 'string' ? // { xtype: editor.toolbars[i]} : editor.toolbars[i], -// Roo.bootstrap.HtmlEditor); +// Roo.bootstrap.form.HtmlEditor); // editor.toolbars[i].init(editor); // } }, @@ -27884,7 +27867,7 @@ Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, { { // Roo.log("Call onRender: " + this.xtype); var _t = this; - Roo.bootstrap.HtmlEditor.superclass.onRender.call(this, ct, position); + Roo.bootstrap.form.HtmlEditor.superclass.onRender.call(this, ct, position); this.wrap = this.inputEl().wrap({ cls:'x-html-editor-wrap', cn:{cls:'x-html-editor-tb'} @@ -27926,7 +27909,7 @@ Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, { onResize : function(w, h) { Roo.log('resize: ' +w + ',' + h ); - Roo.bootstrap.HtmlEditor.superclass.onResize.apply(this, arguments); + Roo.bootstrap.form.HtmlEditor.superclass.onResize.apply(this, arguments); var ew = false; var eh = false; @@ -28026,7 +28009,7 @@ Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, { // clearInvalid : Roo.emptyFn, setValue : function(v){ - Roo.bootstrap.HtmlEditor.superclass.setValue.call(this, v); + Roo.bootstrap.form.HtmlEditor.superclass.setValue.call(this, v); this.editorcore.pushValue(); }, @@ -28128,19 +28111,19 @@ Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, { -Roo.namespace('Roo.bootstrap.htmleditor'); +Roo.namespace('Roo.bootstrap.form.HtmlEditor'); /** - * @class Roo.bootstrap.HtmlEditorToolbar1 + * @class Roo.bootstrap.form.HtmlEditorToolbar1 * @extends Roo.bootstrap.nav.Simplebar * Basic Toolbar * * @example * Usage: * - new Roo.bootstrap.HtmlEditor({ + new Roo.bootstrap.form.HtmlEditor({ .... toolbars : [ - new Roo.bootstrap.HtmlEditorToolbar1({ + new Roo.bootstrap.form.HtmlEditorToolbar1({ disable : { fonts: 1 , format: 1, ..., ... , ...], btns : [ .... ] }) @@ -28155,7 +28138,7 @@ Roo.namespace('Roo.bootstrap.htmleditor'); * .x-html-editor-tb .x-edit-none .x-btn-text { background: none; } */ -Roo.bootstrap.htmleditor.ToolbarStandard = function(config) +Roo.bootstrap.form.HtmlEditorToolbarStandard = function(config) { Roo.apply(this, config); @@ -28167,7 +28150,7 @@ Roo.bootstrap.htmleditor.ToolbarStandard = function(config) colors : true, specialElements : true }); - Roo.bootstrap.htmleditor.ToolbarStandard.superclass.constructor.call(this, config); + Roo.bootstrap.form.HtmlEditorToolbarStandard.superclass.constructor.call(this, config); this.editor = config.editor; this.editorcore = config.editor.editorcore; @@ -28177,7 +28160,7 @@ Roo.bootstrap.htmleditor.ToolbarStandard = function(config) //Roo.form.HtmlEditorToolbar1.superclass.constructor.call(this, editor.wrap.dom.firstChild, [], config); // dont call parent... till later. } -Roo.extend(Roo.bootstrap.htmleditor.ToolbarStandard, Roo.bootstrap.nav.Simplebar, { +Roo.extend(Roo.bootstrap.form.HtmlEditorToolbarStandard, Roo.bootstrap.nav.Simplebar, { bar : true, @@ -28197,7 +28180,7 @@ Roo.extend(Roo.bootstrap.htmleditor.ToolbarStandard, Roo.bootstrap.nav.Simplebar { // Roo.log("Call onRender: " + this.xtype); - Roo.bootstrap.htmleditor.ToolbarStandard.superclass.onRender.call(this, ct, position); + Roo.bootstrap.form.HtmlEditorToolbarStandard.superclass.onRender.call(this, ct, position); Roo.log(this.el); this.el.dom.style.marginBottom = '0'; var _this = this; @@ -28420,8 +28403,8 @@ Roo.extend(Roo.bootstrap.htmleditor.ToolbarStandard, Roo.bootstrap.nav.Simplebar */ /** - * @class Roo.bootstrap.Markdown - * @extends Roo.bootstrap.TextArea + * @class Roo.bootstrap.form.Markdown + * @extends Roo.bootstrap.form.TextArea * Bootstrap Showdown editable area * @cfg {string} content * @@ -28429,19 +28412,19 @@ Roo.extend(Roo.bootstrap.htmleditor.ToolbarStandard, Roo.bootstrap.nav.Simplebar * Create a new Showdown */ -Roo.bootstrap.Markdown = function(config){ - Roo.bootstrap.Markdown.superclass.constructor.call(this, config); +Roo.bootstrap.form.Markdown = function(config){ + Roo.bootstrap.form.Markdown.superclass.constructor.call(this, config); }; -Roo.extend(Roo.bootstrap.Markdown, Roo.bootstrap.TextArea, { +Roo.extend(Roo.bootstrap.form.Markdown, Roo.bootstrap.form.TextArea, { editing :false, initEvents : function() { - Roo.bootstrap.TextArea.prototype.initEvents.call(this); + Roo.bootstrap.form.TextArea.prototype.initEvents.call(this); this.markdownEl = this.el.createChild({ cls : 'roo-markdown-area' }); @@ -28494,7 +28477,7 @@ Roo.extend(Roo.bootstrap.Markdown, Roo.bootstrap.TextArea, { }, setValue : function(val) { - Roo.bootstrap.TextArea.prototype.setValue.call(this,val); + Roo.bootstrap.form.TextArea.prototype.setValue.call(this,val); if (!this.editing) { this.updateMarkdown(); } @@ -33363,7 +33346,7 @@ Roo.extend(Roo.bootstrap.DocumentViewer, Roo.bootstrap.Component, { */ /** - * @class Roo.bootstrap.FieldLabel + * @class Roo.bootstrap.form.FieldLabel * @extends Roo.bootstrap.Component * Bootstrap FieldLabel class * @cfg {String} html contents of the element @@ -33381,7 +33364,7 @@ Roo.extend(Roo.bootstrap.DocumentViewer, Roo.bootstrap.Component, { * @param {Object} config The config object */ -Roo.bootstrap.FieldLabel = function(config){ +Roo.bootstrap.form.FieldLabel = function(config){ Roo.bootstrap.Element.superclass.constructor.call(this, config); this.addEvents({ @@ -33401,7 +33384,7 @@ Roo.bootstrap.FieldLabel = function(config){ }); }; -Roo.extend(Roo.bootstrap.FieldLabel, Roo.bootstrap.Component, { +Roo.extend(Roo.bootstrap.form.FieldLabel, Roo.bootstrap.Component, { tag: 'label', cls: '', @@ -33470,7 +33453,7 @@ Roo.extend(Roo.bootstrap.FieldLabel, Roo.bootstrap.Component, { this.indicator.addClass('invisible'); } - Roo.bootstrap.FieldLabel.register(this); + Roo.bootstrap.form.FieldLabel.register(this); }, indicatorEl : function() @@ -33531,13 +33514,13 @@ Roo.extend(Roo.bootstrap.FieldLabel, Roo.bootstrap.Component, { }); -Roo.apply(Roo.bootstrap.FieldLabel, { +Roo.apply(Roo.bootstrap.form.FieldLabel, { groups: {}, /** * register a FieldLabel Group - * @param {Roo.bootstrap.FieldLabel} the FieldLabel to add + * @param {Roo.bootstrap.form.FieldLabel} the FieldLabel to add */ register : function(label) { @@ -33551,7 +33534,7 @@ Roo.apply(Roo.bootstrap.FieldLabel, { /** * fetch a FieldLabel Group based on the target * @param {string} target - * @returns {Roo.bootstrap.FieldLabel} the CheckBox group + * @returns {Roo.bootstrap.form.FieldLabel} the CheckBox group */ get: function(target) { if (typeof(this.groups[target]) == 'undefined') { @@ -33573,7 +33556,7 @@ Roo.apply(Roo.bootstrap.FieldLabel, { /** - * @class Roo.bootstrap.DateSplitField + * @class Roo.bootstrap.form.DateSplitField * @extends Roo.bootstrap.Component * Bootstrap DateSplitField class * @cfg {string} fieldLabel - the label associated @@ -33599,22 +33582,22 @@ Roo.apply(Roo.bootstrap.FieldLabel, { * @param {Object} config The config object */ -Roo.bootstrap.DateSplitField = function(config){ - Roo.bootstrap.DateSplitField.superclass.constructor.call(this, config); +Roo.bootstrap.form.DateSplitField = function(config){ + Roo.bootstrap.form.DateSplitField.superclass.constructor.call(this, config); this.addEvents({ // raw events /** * @event years * getting the data of years - * @param {Roo.bootstrap.DateSplitField} this + * @param {Roo.bootstrap.form.DateSplitField} this * @param {Object} years */ "years" : true, /** * @event days * getting the data of days - * @param {Roo.bootstrap.DateSplitField} this + * @param {Roo.bootstrap.form.DateSplitField} this * @param {Object} days */ "days" : true, @@ -33634,7 +33617,7 @@ Roo.bootstrap.DateSplitField = function(config){ }); }; -Roo.extend(Roo.bootstrap.DateSplitField, Roo.bootstrap.Component, { +Roo.extend(Roo.bootstrap.form.DateSplitField, Roo.bootstrap.Component, { fieldLabel : '', labelAlign : 'top', @@ -33744,7 +33727,7 @@ Roo.extend(Roo.bootstrap.DateSplitField, Roo.bootstrap.Component, { this.inputEl = this.el.select('.roo-date-split-field-group-value', true).first(); - this.dayField = new Roo.bootstrap.ComboBox({ + this.dayField = new Roo.bootstrap.form.ComboBox({ allowBlank : this.dayAllowBlank, alwaysQuery : true, displayField : 'value', @@ -33776,7 +33759,7 @@ Roo.extend(Roo.bootstrap.DateSplitField, Roo.bootstrap.Component, { this.dayField.render(this.el.select('.roo-date-split-field-day', true).first(), null); - this.monthField = new Roo.bootstrap.MonthField({ + this.monthField = new Roo.bootstrap.form.MonthField({ after : '', allowBlank : this.monthAllowBlank, placeholder : this.monthPlaceholder, @@ -33798,7 +33781,7 @@ Roo.extend(Roo.bootstrap.DateSplitField, Roo.bootstrap.Component, { this.monthField.render(this.el.select('.roo-date-split-field-month', true).first(), null); - this.yearField = new Roo.bootstrap.ComboBox({ + this.yearField = new Roo.bootstrap.form.ComboBox({ allowBlank : this.yearAllowBlank, alwaysQuery : true, displayField : 'value', @@ -36580,8 +36563,8 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component, { */ /** - * @class Roo.bootstrap.NumberField - * @extends Roo.bootstrap.Input + * @class Roo.bootstrap.form.NumberField + * @extends Roo.bootstrap.form.Input * Bootstrap NumberField class * * @@ -36592,11 +36575,11 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component, { * @param {Object} config The config object */ -Roo.bootstrap.NumberField = function(config){ - Roo.bootstrap.NumberField.superclass.constructor.call(this, config); +Roo.bootstrap.form.NumberField = function(config){ + Roo.bootstrap.form.NumberField.superclass.constructor.call(this, config); }; -Roo.extend(Roo.bootstrap.NumberField, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.NumberField, Roo.bootstrap.form.Input, { /** * @cfg {Boolean} allowDecimals False to disallow decimal values (defaults to true) @@ -36664,7 +36647,7 @@ Roo.extend(Roo.bootstrap.NumberField, Roo.bootstrap.Input, { this.name = ''; - var cfg = Roo.bootstrap.NumberField.superclass.getAutoCreate.call(this); + var cfg = Roo.bootstrap.form.NumberField.superclass.getAutoCreate.call(this); this.name = hiddenInput.name; @@ -36678,7 +36661,7 @@ Roo.extend(Roo.bootstrap.NumberField, Roo.bootstrap.Input, { // private initEvents : function() { - Roo.bootstrap.NumberField.superclass.initEvents.call(this); + Roo.bootstrap.form.NumberField.superclass.initEvents.call(this); var allowed = "0123456789"; @@ -36725,7 +36708,7 @@ Roo.extend(Roo.bootstrap.NumberField, Roo.bootstrap.Input, { validateValue : function(value) { - if(!Roo.bootstrap.NumberField.superclass.validateValue.call(this, value)){ + if(!Roo.bootstrap.form.NumberField.superclass.validateValue.call(this, value)){ return false; } @@ -37032,9 +37015,9 @@ Roo.extend(Roo.bootstrap.DocumentSlider, Roo.bootstrap.Component, { */ /** - * @class Roo.bootstrap.RadioSet - * @extends Roo.bootstrap.Input - * @children Roo.bootstrap.Radio + * @class Roo.bootstrap.form.RadioSet + * @extends Roo.bootstrap.form.Input + * @children Roo.bootstrap.form.Radio * Bootstrap RadioSet class * @cfg {String} indicatorpos (left|right) default left * @cfg {Boolean} inline (true|false) inline the element (default true) @@ -37044,27 +37027,27 @@ Roo.extend(Roo.bootstrap.DocumentSlider, Roo.bootstrap.Component, { * @param {Object} config The config object */ -Roo.bootstrap.RadioSet = function(config){ +Roo.bootstrap.form.RadioSet = function(config){ - Roo.bootstrap.RadioSet.superclass.constructor.call(this, config); + Roo.bootstrap.form.RadioSet.superclass.constructor.call(this, config); this.radioes = []; - Roo.bootstrap.RadioSet.register(this); + Roo.bootstrap.form.RadioSet.register(this); this.addEvents({ /** * @event check * Fires when the element is checked or unchecked. - * @param {Roo.bootstrap.RadioSet} this This radio - * @param {Roo.bootstrap.Radio} item The checked item + * @param {Roo.bootstrap.form.RadioSet} this This radio + * @param {Roo.bootstrap.form.Radio} item The checked item */ check : true, /** * @event click * Fires when the element is click. - * @param {Roo.bootstrap.RadioSet} this This radio set - * @param {Roo.bootstrap.Radio} item The checked item + * @param {Roo.bootstrap.form.RadioSet} this This radio set + * @param {Roo.bootstrap.form.Radio} item The checked item * @param {Roo.EventObject} e The event object */ click : true @@ -37072,7 +37055,7 @@ Roo.bootstrap.RadioSet = function(config){ }; -Roo.extend(Roo.bootstrap.RadioSet, Roo.bootstrap.Input, { +Roo.extend(Roo.bootstrap.form.RadioSet, Roo.bootstrap.form.Input, { radioes : false, @@ -37348,7 +37331,7 @@ Roo.extend(Roo.bootstrap.RadioSet, Roo.bootstrap.Input, { }); -Roo.apply(Roo.bootstrap.RadioSet, { +Roo.apply(Roo.bootstrap.form.RadioSet, { groups: {}, @@ -37818,7 +37801,7 @@ Roo.bootstrap.SplitBar.TOP = 3; * @type Number */ Roo.bootstrap.SplitBar.BOTTOM = 4; -Roo.namespace("Roo.bootstrap.layout");/* +/* * Based on: * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. @@ -40206,7 +40189,7 @@ Roo.extend(Roo.bootstrap.layout.West, Roo.bootstrap.layout.Split, { } Roo.bootstrap.layout.Region.prototype.updateBox.call(this, box); } -});Roo.namespace("Roo.bootstrap.panel");/* +});/* * Based on: * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. @@ -42036,7 +42019,7 @@ Roo.extend(Roo.bootstrap.panel.TabItem, Roo.util.Observable, * Availability: https://github.com/jackocnr/intl-tel-input.git **/ -Roo.bootstrap.PhoneInputData = function() { +Roo.bootstrap.form.PhoneInputData = function() { var d = [ [ "Afghanistan (‫افغانستان‬‎)", @@ -43296,8 +43279,8 @@ Roo.bootstrap.PhoneInputData = function() { **/ /** - * @class Roo.bootstrap.PhoneInput - * @extends Roo.bootstrap.TriggerField + * @class Roo.bootstrap.form.PhoneInput + * @extends Roo.bootstrap.form.TriggerField * An input with International dial-code selection * @cfg {String} defaultDialCode default '+852' @@ -43308,11 +43291,11 @@ Roo.bootstrap.PhoneInputData = function() { * @param {Object} config Configuration options */ -Roo.bootstrap.PhoneInput = function(config) { - Roo.bootstrap.PhoneInput.superclass.constructor.call(this, config); +Roo.bootstrap.form.PhoneInput = function(config) { + Roo.bootstrap.form.PhoneInput.superclass.constructor.call(this, config); }; -Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { +Roo.extend(Roo.bootstrap.form.PhoneInput, Roo.bootstrap.form.TriggerField, { /** * @cfg {Roo.data.Store} store [required] The data store to which this combo is bound (defaults to undefined) */ @@ -43340,7 +43323,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { getAutoCreate : function() { - var data = Roo.bootstrap.PhoneInputData(); + var data = Roo.bootstrap.form.PhoneInputData(); var align = this.labelAlign || this.parentLabelAlign(); var id = Roo.id(); @@ -43568,7 +43551,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { initEvents : function() { this.createList(); - Roo.bootstrap.PhoneInput.superclass.initEvents.call(this); + Roo.bootstrap.form.PhoneInput.superclass.initEvents.call(this); this.indicator = this.indicatorEl(); this.flag = this.flagEl(); @@ -43850,8 +43833,8 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { }); /** - * @class Roo.bootstrap.MoneyField - * @extends Roo.bootstrap.ComboBox + * @class Roo.bootstrap.form.MoneyField + * @extends Roo.bootstrap.form.ComboBox * Bootstrap MoneyField class * * @constructor @@ -43859,13 +43842,13 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { * @param {Object} config Configuration options */ -Roo.bootstrap.MoneyField = function(config) { +Roo.bootstrap.form.MoneyField = function(config) { - Roo.bootstrap.MoneyField.superclass.constructor.call(this, config); + Roo.bootstrap.form.MoneyField.superclass.constructor.call(this, config); }; -Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { +Roo.extend(Roo.bootstrap.form.MoneyField, Roo.bootstrap.form.ComboBox, { /** * @cfg {Boolean} allowDecimals False to disallow decimal values (defaults to true) @@ -44471,7 +44454,7 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { validateValue : function(value) { - if(!Roo.bootstrap.MoneyField.superclass.validateValue.call(this, value)){ + if(!Roo.bootstrap.form.MoneyField.superclass.validateValue.call(this, value)){ return false; } @@ -45166,4 +45149,42 @@ Roo.extend(Roo.bootstrap.BezierSignature, Roo.bootstrap.Component, - \ No newline at end of file + // old names for form elements +Roo.bootstrap.Form = Roo.bootstrap.form.Form.Form; +Roo.bootstrap.Input = Roo.bootstrap.form.Form.Input; +Roo.bootstrap.TextArea = Roo.bootstrap.form.Form.TextArea; +Roo.bootstrap.TriggerField = Roo.bootstrap.form.Form.TriggerField; +Roo.bootstrap.ComboBox = Roo.bootstrap.form.Form.ComboBox; +Roo.bootstrap.DateField = Roo.bootstrap.form.Form.DateField; +Roo.bootstrap.TimeField = Roo.bootstrap.form.Form.TimeField; +Roo.bootstrap.MonthField = Roo.bootstrap.form.Form.MonthField; +Roo.bootstrap.CheckBox = Roo.bootstrap.form.Form.CheckBox; +Roo.bootstrap.Radio = Roo.bootstrap.form.Form.Radio; +Roo.bootstrap.RadioSet = Roo.bootstrap.form.Form.RadioSet; +Roo.bootstrap.SecurePass = Roo.bootstrap.form.Form.SecurePass; +Roo.bootstrap.FieldLabel = Roo.bootstrap.form.Form.FieldLabel; +Roo.bootstrap.DateSplitField= Roo.bootstrap.form.Form.DateSplitField; +Roo.bootstrap.NumberField = Roo.bootstrap.form.Form.NumberField; +Roo.bootstrap.PhoneInput = Roo.bootstrap.form.Form.PhoneInput; +Roo.bootstrap.PhoneInputData= Roo.bootstrap.form.Form.PhoneInputData; +Roo.bootstrap.MoneyField = Roo.bootstrap.form.Form.MoneyField; +Roo.bootstrap.HtmlEditor = Roo.bootstrap.form.Form.HtmlEditor; +Roo.bootstrap.HtmlEditor.ToolbarStandard = Roo.bootstrap.form.Form.HtmlEditorToolbarStandard; +Roo.bootstrap.Markdown = Roo.bootstrap.form.Markdown; +Roo.bootstrap.CardUploader = Roo.bootstrap.form.CardUploader;// depricated. +Roo.bootstrap.Navbar = Roo.bootstrap.nav.Bar; +Roo.bootstrap.NavGroup = Roo.bootstrap.nav.Group; +Roo.bootstrap.NavHeaderbar = Roo.bootstrap.nav.Headerbar; +Roo.bootstrap.NavItem = Roo.bootstrap.nav.Item; + +Roo.bootstrap.NavProgressBar = Roo.bootstrap.nav.ProgressBar; +Roo.bootstrap.NavProgressBarItem = Roo.bootstrap.nav.ProgressBarItem; + +Roo.bootstrap.NavSidebar = Roo.bootstrap.nav.Sidebar; +Roo.bootstrap.NavSidebarItem = Roo.bootstrap.nav.SidebarItem; + +Roo.bootstrap.NavSimplebar = Roo.bootstrap.nav.Simplebar;// deprciated +Roo.bootstrap.Menu = Roo.bootstrap.menu.Menu; +Roo.bootstrap.MenuItem = Roo.bootstrap.menu.Item; +Roo.bootstrap.MenuSeparator = Roo.bootstrap.menu.Separator + diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index c3d848c98d..4392050e46 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1,5 +1,15 @@ // Roo/bootstrap/version.js Roo.bootstrap.version=(function(){var A=3;Roo.each(document.styleSheets,function(s){if(s.href&&s.href.match(/css-bootstrap4/)){A=4;}});if(A>3){Roo.Element.prototype.visibilityMode=Roo.Element.DISPLAY;}return A;})(); +// Roo/bootstrap/menu/namespace.js +Roo.bootstrap.menu=Roo.bootstrap.menu||{}; +// Roo/bootstrap/nav/namespace.js +Roo.bootstrap.nav={}; +// Roo/bootstrap/form/namespace.js +Roo.bootstrap.form.Form={}; +// Roo/bootstrap/panel/namespace.js +Roo.bootstrap.panel={}; +// Roo/bootstrap/layout/namespace.js +Roo.bootstrap.layout={}; // Roo/Shadow.js Roo.Shadow=function(A){Roo.apply(this,A);if(typeof this.mode!="string"){this.mode=this.defaultMode;}var o=this.offset,a={h:0};var B=Math.floor(this.offset/2);switch(this.mode.toLowerCase()){case "drop":a.w=0;a.l=a.t=o;a.t-=1;if(Roo.isIE){a.l-=this.offset+B; a.t-=this.offset+B;a.w-=B;a.h-=B;a.t+=1;}break;case "sides":a.w=(o*2);a.l=-o;a.t=o-1;if(Roo.isIE){a.l-=(this.offset-B);a.t-=this.offset+B;a.l+=1;a.w-=(this.offset-B)*2;a.w-=B+1;a.h-=1;}break;case "frame":a.w=a.h=(o*2);a.l=a.t=-o;a.t+=1;a.h-=2;if(Roo.isIE){a.l-=(this.offset-B); @@ -144,8 +154,6 @@ if(this.fa!==false){A='';}var B={tag:'a'};if(th // Roo/bootstrap/Header.js Roo.bootstrap.Header=function(A){Roo.bootstrap.Header.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.Header,Roo.bootstrap.Component,{html:false,level:1,getAutoCreate:function(){var A={tag:'h'+(1*this.level),html:this.html||''};return A;}}); -// Roo/bootstrap/menu/namespace.js -Roo.bootstrap.menu=Roo.bootstrap.menu||{}; // Roo/bootstrap/menu/Manager.js Roo.bootstrap.menu.Manager=function(){var A,B,C={},D=false,E=new Date();function init(){A={};B=new Roo.util.MixedCollection();Roo.get(document).addKeyListener(27,function(){if(B.length>0){hideAll();}});}function hideAll(){if(B&&B.length>0){var c=B.clone(); c.each(function(m){m.hide();});}}function onHide(m){B.remove(m);if(B.length<1){Roo.get(document).un("mouseup",onMouseDown);D=false;}}function onShow(m){var F=B.last();E=new Date();B.add(m);if(!D){Roo.get(document).on("mouseup",onMouseDown);D=true;}if(m.parentMenu){m.parentMenu.activeChild=m; @@ -181,8 +189,6 @@ this.menu.triggerEl=this.el;this.menu=this.addxtype(Roo.apply({},this.menu));}}, // Roo/bootstrap/menu/Separator.js Roo.bootstrap.menu.Separator=function(A){Roo.bootstrap.menu.Separator.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.menu.Separator,Roo.bootstrap.Component,{getAutoCreate:function(){var A={tag:'li',cls:'dropdown-divider divider'};return A;} }); -// Roo/bootstrap/menu/depricated.js -Roo.bootstrap.Menu=Roo.bootstrap.menu.Menu;Roo.bootstrap.MenuItem=Roo.bootstrap.menu.Item;Roo.bootstrap.MenuSeparator=Roo.bootstrap.menu.Separator // Roo/bootstrap/Modal.js Roo.bootstrap.Modal=function(A){Roo.bootstrap.Modal.superclass.constructor.call(this,A);this.addEvents({"btnclick":true,"resize":true,"titlechanged":true});this.buttons=this.buttons||[];if(this.tmpl){this.tmpl=Roo.factory(this.tmpl);}};Roo.extend(Roo.bootstrap.Modal,Roo.bootstrap.Component,{title:'test dialog',buttons:false,html:false,tmp:false,specificTitle:false,buttonPosition:'right',allow_close:true,animate:true,fitwindow:false,dialogEl:false,bodyEl:false,footerEl:false,titleEl:false,closeEl:false,size:'',max_width:0,max_height:0,fit_content:false,editableTitle:false,onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A); if(!this.el){var B=Roo.apply({},this.getAutoCreate());B.id=Roo.id();if(this.cls){B.cls+=' '+this.cls;}if(this.style){B.style=this.style;}this.el=Roo.get(document.body).createChild(B,A);}if(this.tabIndex!==undefined){this.el.dom.setAttribute('tabIndex',this.tabIndex); @@ -230,8 +236,6 @@ H.hide();}I.setDisplayed(B.progress===true);if(B.progress){d.animate=false;}this },confirm:function(Q,R,fn,S){this.show({title:Q,msg:R,buttons:this.YESNO,fn:fn,scope:S,modal:true});return this;},prompt:function(Q,R,fn,S,T){this.show({title:Q,msg:R,buttons:this.OKCANCEL,fn:fn,minWidth:250,scope:S,prompt:true,multiline:T,modal:true});return this; },OK:{ok:true},YESNO:{yes:true,no:true},OKCANCEL:{ok:true,cancel:true},YESNOCANCEL:{yes:true,no:true,cancel:true},defaultTextHeight:75,maxWidth:600,minWidth:100,minProgressWidth:250,buttonText:{ok:"OK",cancel:"Cancel",yes:"Yes",no:"No"}};}();Roo.MessageBox=Roo.MessageBox||Roo.bootstrap.MessageBox; Roo.Msg=Roo.Msg||Roo.MessageBox; -// Roo/bootstrap/nav/namespace.js -Roo.bootstrap.nav={}; // Roo/bootstrap/nav/Bar.js Roo.bootstrap.nav.Bar=function(A){Roo.bootstrap.nav.Bar.superclass.constructor.call(this,A);this.addEvents({"beforetoggle":true});};Roo.extend(Roo.bootstrap.nav.Bar,Roo.bootstrap.Component,{navItems:false,loadMask:false,getAutoCreate:function(){throw {message:"nav bar is now a abstract base class - use NavSimplebar / NavHeaderbar / NavSidebar etc..."} ;},initEvents:function(){this.el.select('.navbar-toggle',true).on('click',this.onToggle,this);var A={tag:"div",cls:"x-dlg-mask"};this.maskEl=Roo.DomHelper.append(this.el,A,true);var B=this.el.getSize();this.maskEl.setSize(B.width,B.height);this.maskEl.enableDisplayMode("block"); @@ -310,9 +314,6 @@ A+=((this.icon)?(' '+this.icon):(' step-number'));var B={tag:'li',cls:'roo-navig },initEvents:function(){this.iconEl=this.el.select('.roo-navigation-bar-item-icon',true).first();this.iconEl.on('click',this.onClick,this);},onClick:function(e){e.preventDefault();if(this.disabled){return;}if(this.fireEvent('click',this,e)===false){return; };this.parent().setActiveItem(this);},isActive:function(){return this.active;},setActive:function(A){if(this.active==A){return;}this.active=A;if(A){this.el.addClass('active');return;}this.el.removeClass('active');return;},setDisabled:function(A){if(this.disabled==A){return; }this.disabled=A;if(A){this.el.addClass('disabled');return;}this.el.removeClass('disabled');},tooltipEl:function(){return this.el.select('.roo-navigation-bar-item-icon',true).first();;}}); -// Roo/bootstrap/nav/depricated.js -Roo.bootstrap.Navbar=Roo.bootstrap.nav.Bar;Roo.bootstrap.NavGroup=Roo.bootstrap.nav.Group;Roo.bootstrap.NavHeaderbar=Roo.bootstrap.nav.Headerbar;Roo.bootstrap.NavItem=Roo.bootstrap.nav.Item;Roo.bootstrap.NavProgressBar=Roo.bootstrap.nav.ProgressBar;Roo.bootstrap.NavProgressBarItem=Roo.bootstrap.nav.ProgressBarItem; -Roo.bootstrap.NavSidebar=Roo.bootstrap.nav.Sidebar;Roo.bootstrap.NavSidebarItem=Roo.bootstrap.nav.SidebarItem;Roo.bootstrap.NavSimplebar=Roo.bootstrap.nav.Simplebar; // Roo/bootstrap/breadcrumb/Nav.js Roo.namespace('Roo.bootstrap.breadcrumb');Roo.bootstrap.breadcrumb.Nav=function(A){Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.breadcrumb.Nav,Roo.bootstrap.Component,{getAutoCreate:function(){var A={tag:'nav',cn:[{tag:'ol',cls:'breadcrumb'} ]};return A;},initEvents:function(){this.olEl=this.el.select('ol',true).first();},getChildContainer:function(){return this.olEl;}}); @@ -482,12 +483,12 @@ try{D=Roo.decode(A.responseText);}catch(e){D={success:false,errorMsg:"Failed to this.reader=this.form.reader;};Roo.extend(Roo.form.Action.Load,Roo.form.Action,{type:'load',run:function(){Roo.Ajax.request(Roo.apply(this.createCallback(),{method:this.getMethod(),url:this.getUrl(false),params:this.getParams()}));},success:function(A){var B=this.processResponse(A); if(B===true||!B.success||!B.data){this.failureType=Roo.form.Action.LOAD_FAILURE;this.form.afterAction(this,false);return;}this.form.clearInvalid();this.form.setValues(B.data);this.form.afterAction(this,true);},handleResponse:function(A){if(this.form.reader){var rs=this.form.reader.read(A); var B=rs.records&&rs.records[0]?rs.records[0].data:null;return {success:rs.success,data:B};}return Roo.decode(A.responseText);}});Roo.form.Action.ACTION_TYPES={'load':Roo.form.Action.Load,'submit':Roo.form.Action.Submit}; -// Roo/bootstrap/Form.js -Roo.bootstrap.Form=function(A){Roo.bootstrap.Form.superclass.constructor.call(this,A);Roo.bootstrap.Form.popover.apply();this.addEvents({clientvalidation:true,beforeaction:true,actionfailed:true,actioncomplete:true});};Roo.extend(Roo.bootstrap.Form,Roo.bootstrap.Component,{method:'POST',timeout:30,align:'left',activeAction:null,waitMsgTarget:false,loadMask:true,errorMask:false,maskOffset:100,maskBody:false,getAutoCreate:function(){var A={tag:'form',method:this.method||'POST',id:this.id||Roo.id(),cls:''} +// Roo/bootstrap/form/Form.js +Roo.bootstrap.form.Form=function(A){Roo.bootstrap.form.Form.superclass.constructor.call(this,A);Roo.bootstrap.form.Form.popover.apply();this.addEvents({clientvalidation:true,beforeaction:true,actionfailed:true,actioncomplete:true});};Roo.extend(Roo.bootstrap.form.Form,Roo.bootstrap.Component,{method:'POST',timeout:30,align:'left',activeAction:null,waitMsgTarget:false,loadMask:true,errorMask:false,maskOffset:100,maskBody:false,getAutoCreate:function(){var A={tag:'form',method:this.method||'POST',id:this.id||Roo.id(),cls:''} ;if(this.parent().xtype.match(/^Nav/)){A.cls='navbar-form form-inline navbar-'+this.align;}if(this.labelAlign=='left'){A.cls+=' form-horizontal';}return A;},initEvents:function(){this.el.on('submit',this.onSubmit,this);this.el.on('keypress',function(e){if(e.getCharCode()!=13){return true; }if(e.getTarget().nodeName.toLowerCase()==='textarea'){return true;}Roo.log("keypress blocked");e.preventDefault();return false;});},onSubmit:function(e){e.stopEvent();},isValid:function(){var A=this.getItems();var B=true;var C=false;A.each(function(f){if(f.validate()){return; -}Roo.log('invalid field: '+f.name);B=false;if(!C&&f.el.isVisible(true)){C=f;}});if(this.errorMask&&!B){Roo.bootstrap.Form.popover.mask(this,C);}return B;},isDirty:function(){var A=false;var B=this.getItems();B.each(function(f){if(f.isDirty()){A=true;return false; -}return true;});return A;},doAction:function(A,B){if(typeof A=='string'){A=new Roo.form.Action.ACTION_TYPES[A](this,B);}if(this.fireEvent('beforeaction',this,A)!==false){this.beforeAction(A);A.run.defer(100,A);}return this;},beforeAction:function(A){var o=A.options; +}Roo.log('invalid field: '+f.name);B=false;if(!C&&f.el.isVisible(true)){C=f;}});if(this.errorMask&&!B){Roo.bootstrap.form.Form.popover.mask(this,C);}return B;},isDirty:function(){var A=false;var B=this.getItems();B.each(function(f){if(f.isDirty()){A=true; +return false;}return true;});return A;},doAction:function(A,B){if(typeof A=='string'){A=new Roo.form.Action.ACTION_TYPES[A](this,B);}if(this.fireEvent('beforeaction',this,A)!==false){this.beforeAction(A);A.run.defer(100,A);}return this;},beforeAction:function(A){var o=A.options; if(this.loadMask){if(this.maskBody){Roo.get(document.body).mask(o.waitMsg||"Sending",'x-mask-loading')}else{this.el.mask(o.waitMsg||"Sending",'x-mask-loading');}}},afterAction:function(A,B){this.activeAction=null;var o=A.options;if(this.loadMask){if(this.maskBody){Roo.get(document.body).unmask(); }else{this.el.unmask();}}if(B){if(o.reset){this.reset();}Roo.callback(o.success,o.scope,[this,A]);this.fireEvent('actioncomplete',this,A);}else{if((typeof(A.result)!='undefined')&&(typeof(A.result.errors)!='undefined')&&(typeof(A.result.errors.needs_confirm)!='undefined')){var _t=this; Roo.log("not supported yet");return;}Roo.callback(o.failure,o.scope,[this,A]);if(!this.hasListener('actionfailed')){Roo.log("need to add dialog support");}this.fireEvent('actionfailed',this,A);}},findField:function(id){var A=this.getItems();var B=A.get(id); @@ -499,7 +500,7 @@ if(A===true){return fs;}return Roo.urlDecode(fs);},getFieldValues:function(A){va }if(!f.el.dom.checked){return;}v=f.el.dom.value;}if(f.xtype=='MoneyField'){C[f.currencyName]=f.getCurrency();}if((typeof(v)=='object')&&f.getRawValue){v=f.getRawValue();}if(f.name!==false&&f.name!=''&&f.name!=f.getName()){C[f.name]=f.getRawValue();}C[f.getName()]=v; });return C;},clearInvalid:function(){var A=this.getItems();A.each(function(f){f.clearInvalid();});return this;},reset:function(){var A=this.getItems();A.each(function(f){f.reset();});Roo.each(this.childForms||[],function(f){f.reset();});return this;},getItems:function(){var r=new Roo.util.MixedCollection(false,function(o){return o.id||(o.id=Roo.id()); });var A=function(el){if(el.inputEl){r.add(el);}if(!el.items){return;}Roo.each(el.items,function(e){A(e);});};A(this);return r;},hideFields:function(A){Roo.each(A,function(i){var f=this.findField(i);if(!f){return;}f.hide();},this);},showFields:function(A){Roo.each(A,function(i){var f=this.findField(i); -if(!f){return;}f.show();},this);}});Roo.apply(Roo.bootstrap.Form,{popover:{padding:5,isApplied:false,isMasked:false,form:false,target:false,toolTip:false,intervalID:false,maskEl:false,apply:function(){if(this.isApplied){return;}this.maskEl={top:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-top-mask"} +if(!f){return;}f.show();},this);}});Roo.apply(Roo.bootstrap.form.Form,{popover:{padding:5,isApplied:false,isMasked:false,form:false,target:false,toolTip:false,intervalID:false,maskEl:false,apply:function(){if(this.isApplied){return;}this.maskEl={top:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-top-mask"} ,true),left:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-left-mask"},true),bottom:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-bottom-mask"},true),right:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-right-mask"} ,true)};this.maskEl.top.enableDisplayMode("block");this.maskEl.left.enableDisplayMode("block");this.maskEl.bottom.enableDisplayMode("block");this.maskEl.right.enableDisplayMode("block");this.toolTip=new Roo.bootstrap.Tooltip({cls:'roo-form-error-popover',alignment:{'left':['r-l',[-2,0],'right'],'right':['l-r',[2,0],'left'],'bottom':['tl-bl',[0,2],'top'],'top':['bl-tl',[0,-2],'bottom']} });this.toolTip.render(Roo.get(document.body));this.toolTip.el.enableDisplayMode("block");Roo.get(document.body).on('click',function(){this.unmask();},this);Roo.get(document.body).on('touchstart',function(){this.unmask();},this);this.isApplied=true},mask:function(A,B){this.form=A; @@ -509,16 +510,16 @@ this.maskEl.top.setLeft(0);this.maskEl.top.setTop(0);this.maskEl.top.show();this this.maskEl.left.setTop(E.y-this.padding);this.maskEl.left.show();this.maskEl.bottom.setStyle('position','absolute');this.maskEl.bottom.setStyle('z-index',F);this.maskEl.bottom.setSize(Roo.lib.Dom.getDocumentWidth(),Roo.lib.Dom.getDocumentHeight()-E.bottom-this.padding); this.maskEl.bottom.setLeft(0);this.maskEl.bottom.setTop(E.bottom+this.padding);this.maskEl.bottom.show();this.maskEl.right.setStyle('position','absolute');this.maskEl.right.setStyle('z-index',F);this.maskEl.right.setSize(Roo.lib.Dom.getDocumentWidth()-E.right-this.padding,E.height+this.padding*2); this.maskEl.right.setLeft(E.right+this.padding);this.maskEl.right.setTop(E.y-this.padding);this.maskEl.right.show();this.toolTip.bindEl=this.target.el;this.toolTip.el.setStyle('z-index',Roo.bootstrap.Modal.zIndex++);var G=this.target.blankText;if(this.target.getValue()!==''){if(this.target.invalidText.length){G=this.target.invalidText; -}else if(this.target.regexText.length){G=this.target.regexText;}}this.toolTip.show(G);this.intervalID=window.setInterval(function(){Roo.bootstrap.Form.popover.unmask();},10000);window.onwheel=function(){return false;};(function(){this.isMasked=true;}).defer(500,this); -},unmask:function(){if(!this.isApplied||!this.isMasked||!this.form||!this.target||!this.form.errorMask){return;}this.maskEl.top.setStyle('position','absolute');this.maskEl.top.setSize(0,0).setXY([0,0]);this.maskEl.top.hide();this.maskEl.left.setStyle('position','absolute'); +}else if(this.target.regexText.length){G=this.target.regexText;}}this.toolTip.show(G);this.intervalID=window.setInterval(function(){Roo.bootstrap.form.Form.popover.unmask();},10000);window.onwheel=function(){return false;};(function(){this.isMasked=true;} +).defer(500,this);},unmask:function(){if(!this.isApplied||!this.isMasked||!this.form||!this.target||!this.form.errorMask){return;}this.maskEl.top.setStyle('position','absolute');this.maskEl.top.setSize(0,0).setXY([0,0]);this.maskEl.top.hide();this.maskEl.left.setStyle('position','absolute'); this.maskEl.left.setSize(0,0).setXY([0,0]);this.maskEl.left.hide();this.maskEl.bottom.setStyle('position','absolute');this.maskEl.bottom.setSize(0,0).setXY([0,0]);this.maskEl.bottom.hide();this.maskEl.right.setStyle('position','absolute');this.maskEl.right.setSize(0,0).setXY([0,0]); this.maskEl.right.hide();this.toolTip.hide();this.toolTip.el.hide();window.onwheel=function(){return true;};if(this.intervalID){window.clearInterval(this.intervalID);this.intervalID=false;}this.isMasked=false;}}}); // Roo/form/VTypes.js Roo.form.VTypes=function(){var A=/^[a-zA-Z_]+$/;var B=/^[a-zA-Z0-9_]+$/;var C=/^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,24}$/;var D=/(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i;return {'email':function(v){return C.test(v); },'emailText':'This field should be an e-mail address in the format "user@domain.com"','emailMask':/[a-z0-9_\.\-@]/i,'url':function(v){return D.test(v);},'urlText':'This field should be a URL in the format "http:/'+'/www.domain.com"','alpha':function(v){return A.test(v); },'alphaText':'This field should only contain letters and _','alphaMask':/[a-z_]/i,'alphanum':function(v){return B.test(v);},'alphanumText':'This field should only contain letters, numbers and _','alphanumMask':/[a-z0-9_]/i};}(); -// Roo/bootstrap/Input.js -Roo.bootstrap.Input=function(A){Roo.bootstrap.Input.superclass.constructor.call(this,A);this.addEvents({focus:true,blur:true,specialkey:true,change:true,invalid:true,valid:true,keyup:true,paste:true});};Roo.extend(Roo.bootstrap.Input,Roo.bootstrap.Component,{validationEvent:"keyup",validateOnBlur:true,validationDelay:250,focusClass:"x-form-focus",invalidClass:"has-warning",validClass:"has-success",hasFeedback:true,invalidFeedbackClass:"glyphicon-warning-sign",validFeedbackClass:"glyphicon-ok",selectOnFocus:false,maskRe:null,vtype:null,disableKeyFilter:false,disabled:false,allowBlank:true,blankText:"Please complete this mandatory field",minLength:0,maxLength:Number.MAX_VALUE,minLengthText:"The minimum length for this field is {0}",maxLengthText:"The maximum length for this field is {0}",validator:null,regex:null,regexText:"",invalidText:"",autocomplete:false,fieldLabel:'',inputType:'text',name:false,placeholder:false,before:false,after:false,size:false,hasFocus:false,preventMark:false,isFormField:true,value:'',labelWidth:2,labelAlign:false,readOnly:false,align:false,formatedValue:false,forceFeedback:false,indicatorpos:'left',labellg:0,labelmd:0,labelsm:0,labelxs:0,capture:'',accept:'',parentLabelAlign:function(){var A=this; +// Roo/bootstrap/form/Input.js +Roo.bootstrap.form.Input=function(A){Roo.bootstrap.form.Input.superclass.constructor.call(this,A);this.addEvents({focus:true,blur:true,specialkey:true,change:true,invalid:true,valid:true,keyup:true,paste:true});};Roo.extend(Roo.bootstrap.form.Input,Roo.bootstrap.Component,{validationEvent:"keyup",validateOnBlur:true,validationDelay:250,focusClass:"x-form-focus",invalidClass:"has-warning",validClass:"has-success",hasFeedback:true,invalidFeedbackClass:"glyphicon-warning-sign",validFeedbackClass:"glyphicon-ok",selectOnFocus:false,maskRe:null,vtype:null,disableKeyFilter:false,disabled:false,allowBlank:true,blankText:"Please complete this mandatory field",minLength:0,maxLength:Number.MAX_VALUE,minLengthText:"The minimum length for this field is {0}",maxLengthText:"The maximum length for this field is {0}",validator:null,regex:null,regexText:"",invalidText:"",autocomplete:false,fieldLabel:'',inputType:'text',name:false,placeholder:false,before:false,after:false,size:false,hasFocus:false,preventMark:false,isFormField:true,value:'',labelWidth:2,labelAlign:false,readOnly:false,align:false,formatedValue:false,forceFeedback:false,indicatorpos:'left',labellg:0,labelmd:0,labelsm:0,labelxs:0,capture:'',accept:'',parentLabelAlign:function(){var A=this; while(A.parent()){A=A.parent();if(typeof(A.labelAlign)!='undefined'){return A.labelAlign;}}return 'left';},getAutoCreate:function(){var A=(!this.labelAlign)?this.parentLabelAlign():this.labelAlign;var id=Roo.id();var B={};if(this.inputType!='hidden'){B.cls='form-group'} var C={tag:'input',id:id,type:this.inputType,value:this.value,cls:'form-control',placeholder:this.placeholder||'',autocomplete:this.autocomplete||'new-password'};if(this.inputType=='file'){C.style='overflow:hidden';}if(this.capture.length){C.capture=this.capture; }if(this.accept.length){C.accept=this.accept+"/*";}if(this.align){C.style=(typeof(C.style)=='undefined')?('text-align:'+this.align):(C.style+'text-align:'+this.align);}if(this.maxLength&&this.maxLength!=Number.MAX_VALUE){C.maxLength=this.maxLength;}if(this.disabled){C.disabled=true; @@ -563,8 +564,8 @@ if(B){this.el.select('.form-control-feedback',true).first().removeClass([this.in }}}return w;},setFieldLabel:function(v){if(!this.rendered){return;}if(this.indicatorEl()){var ar=this.el.select('label > span',true);if(ar.elements.length){this.el.select('label > span',true).first().dom.innerHTML=(v===null||v===undefined?'':v);this.fieldLabel=v; return;}var br=this.el.select('label',true);if(br.elements.length){this.el.select('label',true).first().dom.innerHTML=(v===null||v===undefined?'':v);this.fieldLabel=v;return;}Roo.log('Cannot Found any of label > span || label in input');return;}this.el.select('label',true).first().dom.innerHTML=(v===null||v===undefined?'':v); this.fieldLabel=v;}}); -// Roo/bootstrap/TextArea.js -Roo.bootstrap.TextArea=function(A){Roo.bootstrap.TextArea.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.TextArea,Roo.bootstrap.Input,{cols:false,rows:5,readOnly:false,warp:'soft',resize:false,value:false,html:false,getAutoCreate:function(){var A=(!this.labelAlign)?this.parentLabelAlign():this.labelAlign; +// Roo/bootstrap/form/TextArea.js +Roo.bootstrap.form.TextArea=function(A){Roo.bootstrap.form.TextArea.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.TextArea,Roo.bootstrap.form.Input,{cols:false,rows:5,readOnly:false,warp:'soft',resize:false,value:false,html:false,getAutoCreate:function(){var A=(!this.labelAlign)?this.parentLabelAlign():this.labelAlign; var id=Roo.id();var B={};if(this.inputType!='hidden'){B.cls='form-group'}var C={tag:'textarea',id:id,warp:this.warp,rows:this.rows,value:this.value||'',html:this.html||'',cls:'form-control',placeholder:this.placeholder||''};if(this.maxLength&&this.maxLength!=Number.MAX_VALUE){C.maxLength=this.maxLength; }if(this.resize){C.style=(typeof(C.style)=='undefined')?'resize:'+this.resize:C.style+'resize:'+this.resize;}if(this.cols){C.cols=this.cols;}if(this.readOnly){C.readonly=true;}if(this.name){C.name=this.name;}if(this.size){C.cls=(typeof(C.cls)=='undefined')?'input-'+this.size:C.cls+' input-'+this.size; }var D=this;['xs','sm','md','lg'].map(function(G){if(D[G]){B.cls+=' col-'+G+'-'+D[G];}});var E=C;if(this.hasFeedback&&!this.allowBlank){var F={tag:'span',cls:'glyphicon form-control-feedback'};E={cls:'has-feedback',cn:[C,F]};}if(this.before||this.after){E={cls:'input-group',cn:[]} @@ -581,8 +582,8 @@ if(A){this.el.select('.form-control-feedback',true).first().removeClass([this.in }if(this.disabled||this.allowBlank){return;}var C=this.el.select('label',true).first();var D=this.el.select('i.fa-star',true).first();if(!this.getValue().length&&C&&!D){this.el.createChild({tag:'i',cls:'text-danger fa fa-lg fa-star',tooltip:'This field is required',style:'margin-right:5px;'} ,C,true);}if(Roo.bootstrap.version==3){this.el.addClass(this.invalidClass);}else{this.inputEl().addClass('is-invalid');}if(this.hasFeedback&&this.inputType!='hidden'&&!this.allowBlank){var B=this.el.select('.form-control-feedback',true).first();if(B){this.el.select('.form-control-feedback',true).first().removeClass([this.invalidFeedbackClass,this.validFeedbackClass]); if(this.getValue().length||this.forceFeedback){this.el.select('.form-control-feedback',true).first().addClass([this.invalidFeedbackClass]);}}}this.fireEvent('invalid',this,A);}}); -// Roo/bootstrap/TriggerField.js -Roo.bootstrap.TriggerField=function(A){this.mimicing=false;Roo.bootstrap.TriggerField.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.TriggerField,Roo.bootstrap.Input,{hideTrigger:false,removable:false,autoSize:Roo.emptyFn,monitorTab:true,deferHeight:true,actionMode:'wrap',caret:false,getAutoCreate:function(){var A=this.labelAlign||this.parentLabelAlign(); +// Roo/bootstrap/form/TriggerField.js +Roo.bootstrap.form.TriggerField=function(A){this.mimicing=false;Roo.bootstrap.form.TriggerField.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.TriggerField,Roo.bootstrap.form.Input,{hideTrigger:false,removable:false,autoSize:Roo.emptyFn,monitorTab:true,deferHeight:true,actionMode:'wrap',caret:false,getAutoCreate:function(){var A=this.labelAlign||this.parentLabelAlign(); var id=Roo.id();var B={cls:'form-group'};var C={tag:'input',id:id,type:this.inputType,cls:'form-control',autocomplete:'new-password',placeholder:this.placeholder||''};if(this.name){C.name=this.name;}if(this.size){C.cls+=' input-'+this.size;}if(this.disabled){C.disabled=true; }var D=C;if(this.hasFeedback&&!this.allowBlank){var E={tag:'span',cls:'glyphicon form-control-feedback'};if(this.removable&&!this.editable){D={cls:'has-feedback',cn:[D,{tag:'button',html:'x',cls:'roo-combo-removable-btn close'},E]};}else{D={cls:'has-feedback',cn:[D,E]} ;}}else{if(this.removable&&!this.editable){D={cls:'roo-removable',cn:[D,{tag:'button',html:'x',cls:'roo-combo-removable-btn close'}]};}}if(this.before||this.after){D={cls:'input-group',cn:[]};if(this.before){D.cn.push({tag:'span',cls:'input-group-addon input-group-prepend input-group-text',html:this.before} @@ -594,28 +595,28 @@ var id=Roo.id();var B={cls:'form-group'};var C={tag:'input',id:id,type:this.inpu }if(this.labelmd>0){J.cls+=' col-md-'+this.labelmd;K.cls+=' col-md-'+(12-this.labelmd);}if(this.labelsm>0){J.cls+=' col-sm-'+this.labelsm;K.cls+=' col-sm-'+(12-this.labelsm);}if(this.labelxs>0){J.cls+=' col-xs-'+this.labelxs;K.cls+=' col-xs-'+(12-this.labelxs); }}else if(this.fieldLabel.length){B.cn=[I,{tag:'label',html:this.fieldLabel},G];if(this.indicatorpos=='right'){B.cn=[{tag:'label',cn:[{tag:'span',html:this.fieldLabel},I]},G];}}else{B=G}var L=this;['xs','sm','md','lg'].map(function(M){if(L[M]){B.cls+=' col-'+M+'-'+L[M]; }});return B;},onResize:function(w,h){},adjustSize:Roo.BoxComponent.prototype.adjustSize,getResizeEl:function(){return this.inputEl();},getPositionEl:function(){return this.inputEl();},alignErrorIcon:function(){this.errorIcon.alignTo(this.inputEl(),'tl-tr',[2,0]); -},initEvents:function(){this.createList();Roo.bootstrap.TriggerField.superclass.initEvents.call(this);if(!this.multiple&&this.showToggleBtn){this.trigger=this.el.select('span.dropdown-toggle',true).first();if(this.hideTrigger){this.trigger.setDisplayed(false); +},initEvents:function(){this.createList();Roo.bootstrap.form.TriggerField.superclass.initEvents.call(this);if(!this.multiple&&this.showToggleBtn){this.trigger=this.el.select('span.dropdown-toggle',true).first();if(this.hideTrigger){this.trigger.setDisplayed(false); }this.trigger.on("click",this.onTriggerClick,this,{preventDefault:true});}if(this.multiple){this.inputEl().on("click",this.onTriggerClick,this,{preventDefault:true});}if(this.removable&&!this.editable&&!this.tickable){var A=this.closeTriggerEl();if(A){A.setVisibilityMode(Roo.Element.DISPLAY).hide(); A.on('click',this.removeBtnClick,this,A);}}},closeTriggerEl:function(){var A=this.el.select('.roo-combo-removable-btn',true).first();return A?A:false;},removeBtnClick:function(e,h,el){e.preventDefault();if(this.fireEvent("remove",this)!==false){this.reset(); this.fireEvent("afterremove",this)}},createList:function(){this.list=Roo.get(document.body).createChild({tag:Roo.bootstrap.version==4?'div':'ul',cls:'typeahead typeahead-long dropdown-menu shadow',style:'display:none'});this.list.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block'; -;},initTrigger:function(){},onDestroy:function(){if(this.trigger){this.trigger.removeAllListeners();}Roo.bootstrap.TriggerField.superclass.onDestroy.call(this);},onFocus:function(){Roo.bootstrap.TriggerField.superclass.onFocus.call(this);},checkTab:function(e){if(e.getKey()==e.TAB){this.triggerBlur(); -}},onBlur:function(){},mimicBlur:function(e,t){},triggerBlur:function(){this.mimicing=false;Roo.get(Roo.isIE?document.body:document).un("mousedown",this.mimicBlur);if(this.monitorTab){this.el.un("keydown",this.checkTab,this);}Roo.bootstrap.TriggerField.superclass.onBlur.call(this); +;},initTrigger:function(){},onDestroy:function(){if(this.trigger){this.trigger.removeAllListeners();}Roo.bootstrap.form.TriggerField.superclass.onDestroy.call(this);},onFocus:function(){Roo.bootstrap.form.TriggerField.superclass.onFocus.call(this);},checkTab:function(e){if(e.getKey()==e.TAB){this.triggerBlur(); +}},onBlur:function(){},mimicBlur:function(e,t){},triggerBlur:function(){this.mimicing=false;Roo.get(Roo.isIE?document.body:document).un("mousedown",this.mimicBlur);if(this.monitorTab){this.el.un("keydown",this.checkTab,this);}Roo.bootstrap.form.TriggerField.superclass.onBlur.call(this); },validateBlur:function(e,t){return true;},onDisable:function(){this.inputEl().dom.disabled=true;},onEnable:function(){this.inputEl().dom.disabled=false;},onShow:function(){var ae=this.getActionEl();if(ae){ae.dom.style.display='';ae.dom.style.visibility='visible'; }},onHide:function(){var ae=this.getActionEl();ae.dom.style.display='none';},onTriggerClick:Roo.emptyFn}); -// Roo/bootstrap/CardUploader.js -Roo.bootstrap.CardUploader=function(A){Roo.bootstrap.CardUploader.superclass.constructor.call(this,A);this.fileCollection=new Roo.util.MixedCollection(false,function(r){return r.data.id});this.addEvents({'preview':true,'download':true});};Roo.extend(Roo.bootstrap.CardUploader,Roo.bootstrap.Input,{errorTimeout:3000,images:false,fileCollection:false,allowBlank:true,getAutoCreate:function(){var A={cls:'form-group',cn:[{tag:'label',html:this.fieldLabel} +// Roo/bootstrap/form/CardUploader.js +Roo.bootstrap.form.CardUploader=function(A){Roo.bootstrap.form.CardUploader.superclass.constructor.call(this,A);this.fileCollection=new Roo.util.MixedCollection(false,function(r){return r.data.id});this.addEvents({'preview':true,'download':true});};Roo.extend(Roo.bootstrap.form.CardUploader,Roo.bootstrap.form.Input,{errorTimeout:3000,images:false,fileCollection:false,allowBlank:true,getAutoCreate:function(){var A={cls:'form-group',cn:[{tag:'label',html:this.fieldLabel} ,{tag:'input',type:'hidden',name:this.name,value:this.value,cls:'d-none form-control'},{tag:'input',multiple:'multiple',type:'file',cls:'d-none roo-card-upload-selector'},{cls:'roo-card-uploader-button-container w-100 mb-2'},{cls:'card-columns roo-card-uploader-container'} -]};return A;},getChildContainer:function(){return this.containerEl;},getButtonContainer:function(){return this.el.select(".roo-card-uploader-button-container").first();},initEvents:function(){Roo.bootstrap.Input.prototype.initEvents.call(this);var t=this; +]};return A;},getChildContainer:function(){return this.containerEl;},getButtonContainer:function(){return this.el.select(".roo-card-uploader-button-container").first();},initEvents:function(){Roo.bootstrap.form.Input.prototype.initEvents.call(this);var t=this; this.addxtype({xns:Roo.bootstrap,xtype:'Button',container_method:'getButtonContainer',html:this.html,cls:'w-100 ',listeners:{'click':function(A,e){t.onClick(e);}}});this.urlAPI=(window.createObjectURL&&window)||(window.URL&&URL.revokeObjectURL&&URL)||(window.webkitURL&&webkitURL); this.selectorEl=this.el.select('.roo-card-upload-selector',true).first();this.selectorEl.on('change',this.onFileSelected,this);if(this.images){var t=this;this.images.forEach(function(A){t.addCard(A)});this.images=false;}this.containerEl=this.el.select('.roo-card-uploader-container',true).first(); },onClick:function(e){e.preventDefault();this.selectorEl.dom.click();},onFileSelected:function(e){e.preventDefault();if(typeof(this.selectorEl.dom.files)=='undefined'||!this.selectorEl.dom.files.length){return;}Roo.each(this.selectorEl.dom.files,function(A){this.addFile(A); -},this);},addFile:function(A){if(typeof(A)==='string'){throw "Add file by name?";return;}if(!A||!this.urlAPI){return;}var B=this;var C=B.urlAPI.createObjectURL(A);this.addCard({id:Roo.bootstrap.CardUploader.ID--,is_uploaded:false,src:C,srcfile:A,title:A.name,mimetype:A.type,preview:false,is_deleted:0} +},this);},addFile:function(A){if(typeof(A)==='string'){throw "Add file by name?";return;}if(!A||!this.urlAPI){return;}var B=this;var C=B.urlAPI.createObjectURL(A);this.addCard({id:Roo.bootstrap.form.CardUploader.ID--,is_uploaded:false,src:C,srcfile:A,title:A.name,mimetype:A.type,preview:false,is_deleted:0} );},addCard:function(A){var t=this;var B=[{xns:Roo.bootstrap,xtype:'CardFooter',items:[{xns:Roo.bootstrap,xtype:'Element',cls:'d-flex',items:[{xns:Roo.bootstrap,xtype:'Button',html:String.format("{0}",A.title),cls:'col-10 text-left',size:'sm',weight:'link',fa:'download',listeners:{click:function(){t.fireEvent("download",t,A); }}},{xns:Roo.bootstrap,xtype:'Button',style:'max-height: 28px; ',size:'sm',weight:'danger',cls:'col-2',fa:'times',listeners:{click:function(){t.removeCard(A.id)}}}]}]}];var cn=this.addxtype({xns:Roo.bootstrap,xtype:'Card',closeable:true,header:!A.mimetype.match(/image/)&&!A.preview?"Document":false,header_image:A.mimetype.match(/image/)?A.src:A.preview,header_image_fit_square:true,data:A,html:false,items:B,initEvents:function(){Roo.bootstrap.Card.prototype.initEvents.call(this); var D=this;this.imgEl=this.el.select('.card-img-top').first();if(this.imgEl){this.imgEl.on('click',function(){t.fireEvent("preview",t,A);},this);this.imgEl.set({'pointer':'cursor'});}this.getCardFooter().addClass('p-1');}});this.fileCollection.add(cn);if(!A.srcfile){this.updateInput(); return;}var _t=this;var C=new FileReader();C.addEventListener("load",function(){A.srcdata=C.result;_t.updateInput();});C.readAsDataURL(A.srcfile);},removeCard:function(id){var A=this.fileCollection.get(id);A.data.is_deleted=1;A.data.src='';A.el.dom.parentNode.removeChild(A.el.dom); this.updateInput();},reset:function(){this.fileCollection.each(function(A){if(A.el.dom&&A.el.dom.parentNode){A.el.dom.parentNode.removeChild(A.el.dom);}});this.fileCollection.clear();this.updateInput();},updateInput:function(){var A=[];this.fileCollection.each(function(e){A.push(e.data); -});this.inputEl().dom.value=JSON.stringify(A);}});Roo.bootstrap.CardUploader.ID=-1; +});this.inputEl().dom.value=JSON.stringify(A);}});Roo.bootstrap.form.CardUploader.ID=-1; // Roo/data/SortTypes.js Roo.data.SortTypes={none:function(s){return s;},stripTagsRE:/<\/?[^>]+>/gi,asText:function(s){return String(s).replace(this.stripTagsRE,"");},asUCText:function(s){return String(s).toUpperCase().replace(this.stripTagsRE,"");},asUCString:function(s){return String(s).toUpperCase(); },asDate:function(s){if(!s){return 0;}if(s instanceof Date){return s.getTime();}return Date.parse(String(s));},asFloat:function(s){var A=parseFloat(String(s).replace(/,/g,""));if(isNaN(A)){A=0;}return A;},asInt:function(s){var A=parseInt(String(s).replace(/,/g,"")); @@ -699,10 +700,10 @@ if(vs===false||vs==='false'){E=false;}}var F=[];for(var i=0;i0){L.cls+=' col-sm-'+this.l ,I];if(this.indicatorpos=='right'){A.cn=[{tag:'label',html:this.fieldLabel},K,I];}}else{A=I}var N=this;['xs','sm','md','lg'].map(function(O){if(N[O]){A.cls+=' col-'+O+'-'+N[O];}});return A;},_initEventsCalled:false,initEvents:function(){if(this._initEventsCalled){return; }this._initEventsCalled=true;if(!this.store){throw "can not find store for combo";}this.indicator=this.indicatorEl();this.store=Roo.factory(this.store,Roo.data);this.store.parent=this;if(Roo.XComponent.build_from_html){var e=this.el.dom,k=0;while(e){e=e.previousSibling; ++k;}this.el.remove();this.el=false;this.rendered=false;this.render(this.parent().getChildContainer(true),k);}if(Roo.isIOS&&this.useNativeIOS){this.initIOSView();return;}if(Roo.isTouch&&this.mobileTouchView){this.initTouchView();return;}if(this.tickable){this.initTickableEvents(); -return;}Roo.bootstrap.ComboBox.superclass.initEvents.call(this);if(this.hiddenName){this.hiddenField=this.el.select('input.form-hidden-field',true).first();this.hiddenField.dom.value=this.hiddenValue!==undefined?this.hiddenValue:this.value!==undefined?this.value:''; +return;}Roo.bootstrap.form.ComboBox.superclass.initEvents.call(this);if(this.hiddenName){this.hiddenField=this.el.select('input.form-hidden-field',true).first();this.hiddenField.dom.value=this.hiddenValue!==undefined?this.hiddenValue:this.value!==undefined?this.value:''; this.el.dom.removeAttribute('name');this.hiddenField.dom.setAttribute('name',this.hiddenName);}var A='x-combo-list';var B=this;(function(){var lw=B.listWidth||Math.max(B.inputEl().getWidth(),B.minListWidth);B.list.setWidth(lw);}).defer(100);this.list.on('mouseover',this.onViewOver,this); this.list.on('mousemove',this.onViewMove,this);this.list.on('scroll',this.onViewScroll,this);if(!this.tpl){this.tpl=Roo.bootstrap.version==4?'{'+this.displayField+'}':'
  • {'+this.displayField+'}
  • '; }this.view=new Roo.View(this.list,this.tpl,{singleSelect:true,store:this.store,selectedClass:this.selectedClass});this.view.on('click',this.onViewClick,this);this.store.on('beforeload',this.onBeforeLoad,this);this.store.on('load',this.onLoad,this);this.store.on('loadexception',this.onLoadException,this); @@ -733,7 +734,7 @@ this.store.on('loadexception',this.onLoadException,this);if(this.editable){this. }return true;},"esc":function(e){this.onTickableFooterButtonClick(e,false,false);},"tab":function(e){this.fireEvent("specialkey",this,e);this.onTickableFooterButtonClick(e,false,false);return true;},scope:this,doRelay:function(e,fn,B){if(this.scope.isExpanded()){return Roo.KeyNav.prototype.doRelay.apply(this,arguments); }return true;},forceKeyDown:true});}this.queryDelay=Math.max(this.queryDelay||10,this.mode=='local'?10:250);this.dqTask=new Roo.util.DelayedTask(this.initQuery,this);if(this.typeAhead){this.taTask=new Roo.util.DelayedTask(this.onTypeAhead,this);}if(this.editable!==false){this.tickableInputEl().on("keyup",this.onKeyUp,this); }this.indicator=this.indicatorEl();if(this.indicator){this.indicator.setVisibilityMode(Roo.Element.DISPLAY);this.indicator.hide();}},onDestroy:function(){if(this.view){this.view.setStore(null);this.view.el.removeAllListeners();this.view.el.remove();this.view.purgeListeners(); -}if(this.list){this.list.dom.innerHTML='';}if(this.store){this.store.un('beforeload',this.onBeforeLoad,this);this.store.un('load',this.onLoad,this);this.store.un('loadexception',this.onLoadException,this);}Roo.bootstrap.ComboBox.superclass.onDestroy.call(this); +}if(this.list){this.list.dom.innerHTML='';}if(this.store){this.store.un('beforeload',this.onBeforeLoad,this);this.store.un('load',this.onLoad,this);this.store.un('loadexception',this.onLoadException,this);}Roo.bootstrap.form.ComboBox.superclass.onDestroy.call(this); },fireKey:function(e){if(e.isNavKeyPress()&&!this.list.isVisible()){this.fireEvent("specialkey",this,e);}},onResize:function(w,h){},setEditable:function(A){if(A==this.editable){return;}this.editable=A;if(!A){this.inputEl().dom.setAttribute('readOnly',true); this.inputEl().on('mousedown',this.onTriggerClick,this);this.inputEl().addClass('x-combo-noedit');}else{this.inputEl().dom.removeAttribute('readOnly');this.inputEl().un('mousedown',this.onTriggerClick,this);this.inputEl().removeClass('x-combo-noedit');}},onBeforeLoad:function(A,B){if(!this.hasFocus){return; }if(!B.add){this.list.dom.innerHTML='
  • '+(this.loadingText||'loading')+'
  • ';}this.restrictHeight();this.selectedIndex=-1;},onLoad:function(){this.hasQuery=false;if(!this.hasFocus){return;}if(typeof(this.loading)!=='undefined'&&this.loading!==null){this.loading.hide(); @@ -742,13 +743,13 @@ this.inputEl().on('mousedown',this.onTriggerClick,this);this.inputEl().addClass( if(typeof(this.loading)!=='undefined'&&this.loading!==null){this.loading.hide();}if(this.tickable&&this.editable){return;}this.collapse();},onTypeAhead:function(){if(this.store.getCount()>0){var r=this.store.getAt(0);var A=r.data[this.displayField];var B=A.length; var C=this.getRawValue().length;if(C!=B){this.setRawValue(A);this.selectText(C,A.length);}}},onSelect:function(A,B){if(this.fireEvent('beforeselect',this,A,B)!==false){this.setFromData(B>-1?A.data:false);this.collapse();this.fireEvent('select',this,A,B);} },getValue:function(){if(Roo.isIOS&&this.useNativeIOS){return this.ios_options[this.inputEl().dom.selectedIndex].data[this.valueField];}if(this.multiple){return (this.hiddenField)?this.hiddenField.dom.value:this.value;}if(this.valueField){return typeof this.value!='undefined'?this.value:''; -}else{return Roo.bootstrap.ComboBox.superclass.getValue.call(this);}},getRawValue:function(){if(Roo.isIOS&&this.useNativeIOS){return this.ios_options[this.inputEl().dom.selectedIndex].data[this.displayField];}var v=this.inputEl().getValue();return v;},clearValue:function(){if(this.hiddenField){this.hiddenField.dom.value=''; -}this.value='';this.setRawValue('');this.lastSelectionText='';this.lastData=false;var A=this.closeTriggerEl();if(A){A.hide();}this.validate();},setValue:function(v){if(Roo.isIOS&&this.useNativeIOS){this.setIOSValue(v);return;}if(this.multiple){this.syncValue(); -return;}var A=v;if(this.valueField){var r=this.findRecord(this.valueField,v);if(r){A=r.data[this.displayField];}else if(this.valueNotFoundText!==undefined){A=this.valueNotFoundText;}}this.lastSelectionText=A;if(this.hiddenField){this.hiddenField.dom.value=v; -}Roo.bootstrap.ComboBox.superclass.setValue.call(this,A);this.value=v;var B=this.closeTriggerEl();if(B){(v&&(v.length||v*1>0))?B.show():B.hide();}this.validate();},lastData:false,setFromData:function(o){if(this.multiple){this.addItem(o);return;}var dv=''; +}else{return Roo.bootstrap.form.ComboBox.superclass.getValue.call(this);}},getRawValue:function(){if(Roo.isIOS&&this.useNativeIOS){return this.ios_options[this.inputEl().dom.selectedIndex].data[this.displayField];}var v=this.inputEl().getValue();return v; +},clearValue:function(){if(this.hiddenField){this.hiddenField.dom.value='';}this.value='';this.setRawValue('');this.lastSelectionText='';this.lastData=false;var A=this.closeTriggerEl();if(A){A.hide();}this.validate();},setValue:function(v){if(Roo.isIOS&&this.useNativeIOS){this.setIOSValue(v); +return;}if(this.multiple){this.syncValue();return;}var A=v;if(this.valueField){var r=this.findRecord(this.valueField,v);if(r){A=r.data[this.displayField];}else if(this.valueNotFoundText!==undefined){A=this.valueNotFoundText;}}this.lastSelectionText=A;if(this.hiddenField){this.hiddenField.dom.value=v; +}Roo.bootstrap.form.ComboBox.superclass.setValue.call(this,A);this.value=v;var B=this.closeTriggerEl();if(B){(v&&(v.length||v*1>0))?B.show():B.hide();}this.validate();},lastData:false,setFromData:function(o){if(this.multiple){this.addItem(o);return;}var dv=''; var vv='';this.lastData=o;if(this.displayField){dv=!o||typeof(o[this.displayField])=='undefined'?'':o[this.displayField];}else{Roo.log('no displayField value set for '+(this.name?this.name:this.id));}if(this.valueField){vv=!o||typeof(o[this.valueField])=='undefined'?dv:o[this.valueField]; -}var A=this.closeTriggerEl();if(A){if(dv.length||vv*1>0){A.show();this.blockFocus=true;}else{A.hide();}}if(this.hiddenField){this.hiddenField.dom.value=vv;this.lastSelectionText=dv;Roo.bootstrap.ComboBox.superclass.setValue.call(this,dv);this.value=vv;return; -}this.lastSelectionText=dv;Roo.bootstrap.ComboBox.superclass.setValue.call(this,dv);this.value=vv;},reset:function(){if(this.multiple){this.clearItem();return;}this.setValue(this.originalValue);this.lastData=false;if(this.view){this.view.clearSelections(); +}var A=this.closeTriggerEl();if(A){if(dv.length||vv*1>0){A.show();this.blockFocus=true;}else{A.hide();}}if(this.hiddenField){this.hiddenField.dom.value=vv;this.lastSelectionText=dv;Roo.bootstrap.form.ComboBox.superclass.setValue.call(this,dv);this.value=vv; +return;}this.lastSelectionText=dv;Roo.bootstrap.form.ComboBox.superclass.setValue.call(this,dv);this.value=vv;},reset:function(){if(this.multiple){this.clearItem();return;}this.setValue(this.originalValue);this.lastData=false;if(this.view){this.view.clearSelections(); }this.validate();},findRecord:function(A,B){var C;if(this.store.getCount()>0){this.store.each(function(r){if(r.data[A]==B){C=r;return false;}return true;});}return C;},getName:function(){if(!this.rendered){return ''};return !this.hiddenName&&this.inputEl().dom.name?this.inputEl().dom.name:(this.hiddenName||''); },onViewMove:function(e,t){this.inKeyMode=false;},onViewOver:function(e,t){if(this.inKeyMode){return;}var A=this.view.findItemFromChild(t);if(A){var B=this.view.indexOf(A);this.select(B,false);}},onViewClick:function(A,B,el,e){var C=this.view.getSelectedIndexes()[0]; var r=this.store.getAt(C);if(this.tickable){if(typeof(e)!='undefined'&&e.getTarget().nodeName.toLowerCase()!='input'){return;}var rm=false;var D=this;Roo.each(this.tickItems,function(v,k){if(typeof(v)!='undefined'&&v[D.valueField]==r.data[D.valueField]){Roo.log(v); @@ -798,7 +799,7 @@ this.inputEl().on("click",this.showTouchView,this);if(this.triggerEl){this.trigg this.maskEl=new Roo.LoadMask(this.touchViewEl,{store:this.store,msgCls:'roo-el-mask-msg'});this.store.on('beforeload',this.onTouchViewBeforeLoad,this);this.store.on('load',this.onTouchViewLoad,this);this.store.on('loadexception',this.onTouchViewLoadException,this); if(this.hiddenName){this.hiddenField=this.el.select('input.form-hidden-field',true).first();this.hiddenField.dom.value=this.hiddenValue!==undefined?this.hiddenValue:this.value!==undefined?this.value:'';this.el.dom.removeAttribute('name');this.hiddenField.dom.setAttribute('name',this.hiddenName); }if(this.multiple){this.choices=this.el.select('ul.roo-select2-choices',true).first();this.searchField=this.el.select('ul li.roo-select2-search-field',true).first();}if(this.removable&&!this.multiple){var A=this.closeTriggerEl();if(A){A.setVisibilityMode(Roo.Element.DISPLAY).hide(); -A.on('click',this.removeBtnClick,this,A);}}this.inputEl().on("focus",function(e){document.activeElement.blur();},this);this._touchViewMask=Roo.DomHelper.append(document.body,{tag:"div",cls:"x-dlg-mask"},true);return;},renderTouchView:function(){this.touchViewEl=Roo.get(document.body).createChild(Roo.bootstrap.ComboBox.touchViewTemplate); +A.on('click',this.removeBtnClick,this,A);}}this.inputEl().on("focus",function(e){document.activeElement.blur();},this);this._touchViewMask=Roo.DomHelper.append(document.body,{tag:"div",cls:"x-dlg-mask"},true);return;},renderTouchView:function(){this.touchViewEl=Roo.get(document.body).createChild(Roo.bootstrap.form.ComboBox.touchViewTemplate); this.touchViewEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.touchViewHeaderEl=this.touchViewEl.select('.modal-header',true).first();this.touchViewHeaderEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.touchViewBodyEl=this.touchViewEl.select('.modal-body',true).first(); this.touchViewBodyEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.touchViewBodyEl.setStyle('overflow','auto');this.touchViewListGroup=this.touchViewBodyEl.select('.list-group',true).first();this.touchViewListGroup.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block'; this.touchViewFooterEl=this.touchViewEl.select('.modal-footer',true).first();this.touchViewFooterEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';},showTouchView:function(){if(this.disabled){return;}this.touchViewHeaderEl.hide();if(this.modalTitle.length){this.touchViewHeaderEl.dom.innerHTML=this.modalTitle; @@ -808,13 +809,13 @@ this._touchViewMask.setSize(Roo.lib.Dom.getViewWidth(true),Roo.lib.Dom.getViewHe if(this.animate){var A=this;(function(){A.touchViewEl.setStyle('display','none');}).defer(150);}else{this.touchViewEl.setStyle('display','none');}if(this._touchViewMask){this._touchViewMask.removeClass('show');Roo.get(document.body).removeClass("x-body-masked"); }},setTouchViewValue:function(){if(this.multiple){this.clearItem();var A=this;Roo.each(this.tickItems,function(o){this.addItem(o);},this);}this.hideTouchView();},doTouchViewQuery:function(){var qe={query:'',forceAll:true,combo:this,cancel:false};if(this.fireEvent('beforequery',qe)===false||qe.cancel){return false; }if(!this.alwaysQuery||this.mode=='local'){this.onTouchViewLoad();return;}this.store.load();},onTouchViewBeforeLoad:function(A,B){return;},onTouchViewLoad:function(){if(this.store.getCount()<1){this.onTouchViewEmptyResults();return;}this.clearTouchView(); -var A=this.getRawValue();var B=(this.multiple)?Roo.bootstrap.ComboBox.listItemCheckbox:Roo.bootstrap.ComboBox.listItemRadio;this.tickItems=[];this.store.data.each(function(d,G){var H=this.touchViewListGroup.createChild(B);if(typeof(d.data.cls)!='undefined'&&d.data.cls.length){H.addClass(d.data.cls); +var A=this.getRawValue();var B=(this.multiple)?Roo.bootstrap.form.ComboBox.listItemCheckbox:Roo.bootstrap.form.ComboBox.listItemRadio;this.tickItems=[];this.store.data.each(function(d,G){var H=this.touchViewListGroup.createChild(B);if(typeof(d.data.cls)!='undefined'&&d.data.cls.length){H.addClass(d.data.cls); }if(this.displayField&&typeof(d.data[this.displayField])!='undefined'){var I={data:d.data,html:d.data[this.displayField]};if(this.fireEvent('touchviewdisplay',this,I)!==false){H.select('.roo-combobox-list-group-item-value',true).first().dom.innerHTML=I.html; }}H.removeClass('selected');if(!this.multiple&&this.valueField&&typeof(d.data[this.valueField])!='undefined'&&d.data[this.valueField]==this.getValue()){H.select('.roo-combobox-list-group-item-box > input',true).first().attr('checked',true);H.addClass('selected'); }if(this.multiple&&this.valueField&&typeof(d.data[this.valueField])!='undefined'&&this.getValue().indexOf(d.data[this.valueField])!=-1){H.select('.roo-combobox-list-group-item-box > input',true).first().attr('checked',true);this.tickItems.push(d.data);}H.on('click',this.onTouchViewClick,this,{row:H,rowIndex:G} );},this);var C=this.touchViewListGroup.select('.list-group-item > .roo-combobox-list-group-item-box > input:checked',true).first();var D=Roo.lib.Dom.getViewHeight()-this.touchViewFooterEl.getHeight()+this.touchViewBodyEl.getPadding('tb');if(this.modalTitle.length){D=D-this.touchViewHeaderEl.getHeight(); }var E=this.touchViewListGroup.getHeight()+this.touchViewBodyEl.getPadding('tb')*2;if(this.mobile_restrict_height&&ED){(function(){C.findParent('li').scrollIntoView(F.touchViewListGroup.dom);}).defer(500); -}},onTouchViewLoadException:function(){this.hideTouchView();},onTouchViewEmptyResults:function(){this.clearTouchView();this.touchViewListGroup.createChild(Roo.bootstrap.ComboBox.emptyResult);this.touchViewListGroup.select('.roo-combobox-touch-view-empty-result',true).first().dom.innerHTML=this.emptyResultText; +}},onTouchViewLoadException:function(){this.hideTouchView();},onTouchViewEmptyResults:function(){this.clearTouchView();this.touchViewListGroup.createChild(Roo.bootstrap.form.ComboBox.emptyResult);this.touchViewListGroup.select('.roo-combobox-touch-view-empty-result',true).first().dom.innerHTML=this.emptyResultText; },clearTouchView:function(){this.touchViewListGroup.dom.innerHTML='';},onTouchViewClick:function(e,el,o){e.preventDefault();var A=o.row;var B=o.rowIndex;var r=this.store.getAt(B);if(this.fireEvent('beforeselect',this,r,B)!==false){if(!this.multiple){Roo.each(this.touchViewListGroup.select('.list-group-item > .roo-combobox-list-group-item-box > input:checked',true).elements,function(c){c.dom.removeAttribute('checked'); },this);A.select('.roo-combobox-list-group-item-box > input',true).first().attr('checked',true);this.setFromData(r.data);var C=this.closeTriggerEl();if(C){C.show();}this.hideTouchView();this.fireEvent('select',this,r,B);return;}if(this.valueField&&typeof(r.data[this.valueField])!='undefined'&&this.getValue().indexOf(r.data[this.valueField])!=-1){A.select('.roo-combobox-list-group-item-box > input',true).first().dom.removeAttribute('checked'); this.tickItems.splice(this.tickItems.indexOf(r.data),1);return;}A.select('.roo-combobox-list-group-item-box > input',true).first().attr('checked',true);this.addItem(r.data);this.tickItems.push(r.data);}},getAutoCreateNativeIOS:function(){var A={cls:'form-group'} @@ -823,10 +824,10 @@ return;},onIOSViewLoad:function(){if(this.store.getCount()<1){return;}this.clear );var o={};o[this.valueField]=0;o[this.displayField]=A;this.ios_options.push({data:o,el:B});}this.store.data.each(function(d,C){var D='';if(this.displayField&&typeof(d.data[this.displayField])!='undefined'){D=d.data[this.displayField];}var E='';if(this.valueField&&typeof(d.data[this.valueField])!='undefined'){E=d.data[this.valueField]; }var F={tag:'option',value:E,html:D};if(this.value==d.data[this.valueField]){F['selected']=true;}var G=this.inputEl().createChild(F);this.ios_options.push({data:d.data,el:G});},this);this.inputEl().on('change',function(){this.fireEvent('select',this);},this); },clearIOSView:function(){this.inputEl().dom.innerHTML='';this.ios_options=[];},setIOSValue:function(v){this.value=v;if(!this.ios_options){return;}Roo.each(this.ios_options,function(A){A.el.dom.removeAttribute('selected');if(A.data[this.valueField]!=v){return; -}A.el.dom.setAttribute('selected',true);},this);}});Roo.apply(Roo.bootstrap.ComboBox,{header:{tag:'div',cls:'modal-header',cn:[{tag:'h4',cls:'modal-title'}]},body:{tag:'div',cls:'modal-body',cn:[{tag:'ul',cls:'list-group'}]},listItemRadio:{tag:'li',cls:'list-group-item',cn:[{tag:'span',cls:'roo-combobox-list-group-item-value'} +}A.el.dom.setAttribute('selected',true);},this);}});Roo.apply(Roo.bootstrap.form.ComboBox,{header:{tag:'div',cls:'modal-header',cn:[{tag:'h4',cls:'modal-title'}]},body:{tag:'div',cls:'modal-body',cn:[{tag:'ul',cls:'list-group'}]},listItemRadio:{tag:'li',cls:'list-group-item',cn:[{tag:'span',cls:'roo-combobox-list-group-item-value'} ,{tag:'div',cls:'roo-combobox-list-group-item-box pull-xs-right radio-inline radio radio-info',cn:[{tag:'input',type:'radio'},{tag:'label'}]}]},listItemCheckbox:{tag:'li',cls:'list-group-item',cn:[{tag:'span',cls:'roo-combobox-list-group-item-value'},{tag:'div',cls:'roo-combobox-list-group-item-box pull-xs-right checkbox-inline checkbox checkbox-info',cn:[{tag:'input',type:'checkbox'} ,{tag:'label'}]}]},emptyResult:{tag:'div',cls:'alert alert-danger roo-combobox-touch-view-empty-result'},footer:{tag:'div',cls:'modal-footer',cn:[{tag:'div',cls:'row',cn:[{tag:'div',cls:'col-xs-6 text-left',cn:{tag:'button',cls:'btn btn-danger roo-touch-view-cancel',html:'Cancel'} -},{tag:'div',cls:'col-xs-6 text-right',cn:{tag:'button',cls:'btn btn-success roo-touch-view-ok',html:'OK'}}]}]}});Roo.apply(Roo.bootstrap.ComboBox,{touchViewTemplate:{tag:'div',cls:'modal fade roo-combobox-touch-view',cn:[{tag:'div',cls:'modal-dialog',style:'position:fixed',cn:[{tag:'div',cls:'modal-content',cn:[Roo.bootstrap.ComboBox.header,Roo.bootstrap.ComboBox.body,Roo.bootstrap.ComboBox.footer]} +},{tag:'div',cls:'col-xs-6 text-right',cn:{tag:'button',cls:'btn btn-success roo-touch-view-ok',html:'OK'}}]}]}});Roo.apply(Roo.bootstrap.form.ComboBox,{touchViewTemplate:{tag:'div',cls:'modal fade roo-combobox-touch-view',cn:[{tag:'div',cls:'modal-dialog',style:'position:fixed',cn:[{tag:'div',cls:'modal-content',cn:[Roo.bootstrap.form.ComboBox.header,Roo.bootstrap.form.ComboBox.body,Roo.bootstrap.form.ComboBox.footer]} ]}]}}); // Roo/View.js Roo.View=function(A,B,C){this.parent=false;if(typeof(B)=='undefined'){Roo.apply(this,A);this.el=Roo.get(this.el);}else{this.el=Roo.get(A);this.tpl=B;Roo.apply(this,C);}this.wrapEl=this.el.wrap().wrap();if(typeof(this.tpl)=="string"){this.tpl=new Roo.Template(this.tpl); @@ -950,22 +951,22 @@ if(this.active&&tg.bullets>0&&ithis.startX){A.showPanelPrev();return;}if(this.startX>this.endX){A.showPanelNext();return;}}}); -// Roo/bootstrap/DateField.js -Roo.bootstrap.DateField=function(A){Roo.bootstrap.DateField.superclass.constructor.call(this,A);this.addEvents({show:true,hide:true,select:true,beforeselect:true});};Roo.extend(Roo.bootstrap.DateField,Roo.bootstrap.Input,{format:"m/d/y",altFormats:"m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d",weekStart:0,viewMode:'',minViewMode:'',todayHighlight:false,todayBtn:false,language:'en',keyboardNavigation:true,calendarWeeks:false,startDate:-Infinity,endDate:Infinity,daysOfWeekDisabled:[],_events:[],singleMode:false,UTCDate:function(){return new Date(Date.UTC.apply(Date,arguments)); +// Roo/bootstrap/form/DateField.js +Roo.bootstrap.form.DateField=function(A){Roo.bootstrap.form.DateField.superclass.constructor.call(this,A);this.addEvents({show:true,hide:true,select:true,beforeselect:true});};Roo.extend(Roo.bootstrap.form.DateField,Roo.bootstrap.form.Input,{format:"m/d/y",altFormats:"m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d",weekStart:0,viewMode:'',minViewMode:'',todayHighlight:false,todayBtn:false,language:'en',keyboardNavigation:true,calendarWeeks:false,startDate:-Infinity,endDate:Infinity,daysOfWeekDisabled:[],_events:[],singleMode:false,UTCDate:function(){return new Date(Date.UTC.apply(Date,arguments)); },UTCToday:function(){var A=new Date();return this.UTCDate(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate());},getDate:function(){var d=this.getUTCDate();return new Date(d.getTime()+(d.getTimezoneOffset()*60000));},getUTCDate:function(){return this.date; -},setDate:function(d){this.setUTCDate(new Date(d.getTime()-(d.getTimezoneOffset()*60000)));},setUTCDate:function(d){this.date=d;this.setValue(this.formatDate(this.date));},onRender:function(ct,A){Roo.bootstrap.DateField.superclass.onRender.call(this,ct,A); -this.language=this.language||'en';this.language=this.language in Roo.bootstrap.DateField.dates?this.language:this.language.split('-')[0];this.language=this.language in Roo.bootstrap.DateField.dates?this.language:"en";this.isRTL=Roo.bootstrap.DateField.dates[this.language].rtl||false; +},setDate:function(d){this.setUTCDate(new Date(d.getTime()-(d.getTimezoneOffset()*60000)));},setUTCDate:function(d){this.date=d;this.setValue(this.formatDate(this.date));},onRender:function(ct,A){Roo.bootstrap.form.DateField.superclass.onRender.call(this,ct,A); +this.language=this.language||'en';this.language=this.language in Roo.bootstrap.form.DateField.dates?this.language:this.language.split('-')[0];this.language=this.language in Roo.bootstrap.form.DateField.dates?this.language:"en";this.isRTL=Roo.bootstrap.form.DateField.dates[this.language].rtl||false; this.format=this.format||'m/d/y';this.isInline=false;this.isInput=true;this.component=this.el.select('.add-on',true).first()||false;this.component=(this.component&&this.component.length===0)?false:this.component;this.hasInput=this.component&&this.inputEl().length; if(typeof(this.minViewMode==='string')){switch(this.minViewMode){case 'months':this.minViewMode=1;break;case 'years':this.minViewMode=2;break;default:this.minViewMode=0;break;}}if(typeof(this.viewMode==='string')){switch(this.viewMode){case 'months':this.viewMode=1; -break;case 'years':this.viewMode=2;break;default:this.viewMode=0;break;}}this.pickerEl=Roo.get(document.body).createChild(Roo.bootstrap.DateField.template);this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.picker().on('mousedown',this.onMousedown,this); +break;case 'years':this.viewMode=2;break;default:this.viewMode=0;break;}}this.pickerEl=Roo.get(document.body).createChild(Roo.bootstrap.form.DateField.template);this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.picker().on('mousedown',this.onMousedown,this); this.picker().on('click',this.onClick,this);this.picker().addClass('datepicker-dropdown');this.startViewMode=this.viewMode;if(this.singleMode){Roo.each(this.picker().select('thead > tr > th',true).elements,function(v){v.setVisibilityMode(Roo.Element.DISPLAY); -v.hide();});Roo.each(this.picker().select('tbody > tr > td',true).elements,function(v){v.setStyle('width','189px');});}Roo.each(this.picker().select('tfoot th.today',true).elements,function(v){if(!this.calendarWeeks){v.remove();return;}v.dom.innerHTML=Roo.bootstrap.DateField.dates[this.language].today; +v.hide();});Roo.each(this.picker().select('tbody > tr > td',true).elements,function(v){v.setStyle('width','189px');});}Roo.each(this.picker().select('tfoot th.today',true).elements,function(v){if(!this.calendarWeeks){v.remove();return;}v.dom.innerHTML=Roo.bootstrap.form.DateField.dates[this.language].today; v.attr('colspan',function(i,B){return parseInt(B)+1;});});this.weekEnd=this.weekStart===0?6:this.weekStart-1;this.setStartDate(this.startDate);this.setEndDate(this.endDate);this.setDaysOfWeekDisabled(this.daysOfWeekDisabled);this.fillDow();this.fillMonths(); -this.update();this.showMode();if(this.isInline){this.showPopup();}},picker:function(){return this.pickerEl;},fillDow:function(){var A=this.weekStart;var B={tag:'tr',cn:[]};if(this.calendarWeeks){B.cn.push({tag:'th',cls:'cw',html:' '})}while(A.datepicker-days thead',true).first().createChild(B);},fillMonths:function(){var i=0;var A=this.picker().select('>.datepicker-months td',true).first();A.dom.innerHTML='';while(i<12){var B={tag:'span',cls:'month',html:Roo.bootstrap.DateField.dates[this.language].monthsShort[i++]} +this.update();this.showMode();if(this.isInline){this.showPopup();}},picker:function(){return this.pickerEl;},fillDow:function(){var A=this.weekStart;var B={tag:'tr',cn:[]};if(this.calendarWeeks){B.cn.push({tag:'th',cls:'cw',html:' '})}while(A.datepicker-days thead',true).first().createChild(B);},fillMonths:function(){var i=0;var A=this.picker().select('>.datepicker-months td',true).first();A.dom.innerHTML='';while(i<12){var B={tag:'span',cls:'month',html:Roo.bootstrap.form.DateField.dates[this.language].monthsShort[i++]} ;A.createChild(B);}},update:function(){this.date=(typeof(this.date)==='undefined'||((typeof(this.date)==='string')&&!this.date.length))?this.UTCToday():(typeof(this.date)==='string')?this.parseDate(this.date):this.date;if(this.datethis.endDate){this.viewDate=new Date(this.endDate);}else{this.viewDate=new Date(this.date);}this.fill();},fill:function(){var d=new Date(this.viewDate),A=d.getUTCFullYear(),B=d.getUTCMonth(),C=this.startDate!==-Infinity?this.startDate.getUTCFullYear():-Infinity,D=this.startDate!==-Infinity?this.startDate.getUTCMonth():-Infinity,E=this.endDate!==Infinity?this.endDate.getUTCFullYear():Infinity,F=this.endDate!==Infinity?this.endDate.getUTCMonth():Infinity,G=this.date&&this.date.valueOf(),H=this.UTCToday(); -this.picker().select('>.datepicker-days thead th.switch',true).first().dom.innerHTML=Roo.bootstrap.DateField.dates[this.language].months[B]+' '+A;this.updateNavArrows();this.fillMonths();var I=this.UTCDate(A,B-1,28,0,0,0,0),J=I.getDaysInMonth(I.getUTCFullYear(),I.getUTCMonth()); +this.picker().select('>.datepicker-days thead th.switch',true).first().dom.innerHTML=Roo.bootstrap.form.DateField.dates[this.language].months[B]+' '+A;this.updateNavArrows();this.fillMonths();var I=this.UTCDate(A,B-1,28,0,0,0,0),J=I.getDaysInMonth(I.getUTCFullYear(),I.getUTCMonth()); I.setUTCDate(J);I.setUTCDate(J-(I.getUTCDay()-this.weekStart+7)%7);var K=new Date(I);K.setUTCDate(K.getUTCDate()+42);K=K.valueOf();var L=false;this.picker().select('>.datepicker-days tbody',true).first().dom.innerHTML='';while(I.valueOf()<=K){var M='';if(I.getUTCDay()===this.weekStart){if(L){this.picker().select('>.datepicker-days tbody',true).first().createChild(L); }L={tag:'tr',cn:[]};if(this.calendarWeeks){var ws=new Date(+I+(this.weekStart-I.getUTCDay()-7)%7*864e5),th=new Date(+ws+(7+4-ws.getUTCDay())%7*864e5),N=new Date(+(N=this.UTCDate(th.getUTCFullYear(),0,1))+(7+4-N.getUTCDay())%7*864e5),O=(th-N)/864e5/7+1;L.cn.push({tag:'td',cls:'cw',html:O} );}}if(I.getUTCFullYear()A||(I.getUTCFullYear()==A&&I.getUTCMonth()>B)){M+=' new';}if(this.todayHighlight&&I.getUTCFullYear()==H.getFullYear()&&I.getUTCMonth()==H.getMonth()&&I.getUTCDate()==H.getDate()){M+=' today'; @@ -973,23 +974,23 @@ I.setUTCDate(J);I.setUTCDate(J-(I.getUTCDay()-this.weekStart+7)%7);var K=new Dat var Q=this.date&&this.date.getUTCMonth();this.picker().select('>.datepicker-months th.switch',true).first().dom.innerHTML=A;Roo.each(this.picker().select('>.datepicker-months tbody span',true).elements,function(v,k){v.removeClass('active');if(P===A&&k===Q){v.addClass('active'); }if(AE||(A==C&&kF)){v.addClass('disabled');}});A=parseInt(A/10,10)*10;this.picker().select('>.datepicker-years th.switch',true).first().dom.innerHTML=A+'-'+(A+9);this.picker().select('>.datepicker-years tbody td',true).first().dom.innerHTML=''; A-=1;for(var i=-1;i<11;i++){this.picker().select('>.datepicker-years tbody td',true).first().createChild({tag:'span',cls:'year'+(i===-1||i===10?' old':'')+(P===A?' active':'')+(AE?' disabled':''),html:A});A+=1;}},showMode:function(A){if(A){this.viewMode=Math.max(this.minViewMode,Math.min(2,this.viewMode+A)); -}Roo.each(this.picker().select('>div',true).elements,function(v){v.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';v.hide();});this.picker().select('>.datepicker-'+Roo.bootstrap.DateField.modes[this.viewMode].clsName,true).first().show();},place:function(){if(this.isInline){return; -}this.picker().removeClass(['bottom','top']);if((Roo.lib.Dom.getViewHeight()+Roo.get(document.body).getScroll().top)-(this.inputEl().getBottom()+this.picker().getHeight())<0){this.picker().addClass('top');this.picker().setTop(this.inputEl().getTop()-this.picker().getHeight()).setLeft(this.inputEl().getLeft()); +}Roo.each(this.picker().select('>div',true).elements,function(v){v.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';v.hide();});this.picker().select('>.datepicker-'+Roo.bootstrap.form.DateField.modes[this.viewMode].clsName,true).first().show(); +},place:function(){if(this.isInline){return;}this.picker().removeClass(['bottom','top']);if((Roo.lib.Dom.getViewHeight()+Roo.get(document.body).getScroll().top)-(this.inputEl().getBottom()+this.picker().getHeight())<0){this.picker().addClass('top');this.picker().setTop(this.inputEl().getTop()-this.picker().getHeight()).setLeft(this.inputEl().getLeft()); return;}this.picker().addClass('bottom');this.picker().setTop(this.inputEl().getBottom()).setLeft(this.inputEl().getLeft());},parseDate:function(A){if(!A||A instanceof Date){return A;}var v=Date.parseDate(A,this.format);if(!v&&(this.useIso||A.match(/^(\d{4})-0?(\d+)-0?(\d+)/))){v=Date.parseDate(A,'Y-m-d'); }if(!v&&this.altFormats){if(!this.altFormatsArray){this.altFormatsArray=this.altFormats.split("|");}for(var i=0,B=this.altFormatsArray.length;i-1){this.viewDate.setUTCMonth(Roo.bootstrap.DateField.dates[this.language].monthsShort.indexOf(D));}else{var G=parseInt(D,10)||0; +}break;case 'span':if(C.indexOf('disabled')<0){if(!this.viewDate){this.viewDate=new Date();}this.viewDate.setUTCDate(1);if(C.indexOf('month')>-1){this.viewDate.setUTCMonth(Roo.bootstrap.form.DateField.dates[this.language].monthsShort.indexOf(D));}else{var G=parseInt(D,10)||0; this.viewDate.setUTCFullYear(G);}if(this.singleMode){this.setValue(this.formatDate(this.viewDate));this.hidePopup();return;}this.showMode(-1);this.fill();}break;case 'td':if(C.indexOf('day')>-1&&C.indexOf('disabled')<0){var H=parseInt(D,10)||1;var G=(this.viewDate||new Date()).getUTCFullYear(),I=(this.viewDate||new Date()).getUTCMonth(); if(C.indexOf('old')>-1){if(I===0){I=11;G-=1;}else{I-=1;}}else if(C.indexOf('new')>-1){if(I==11){I=0;G+=1;}else{I+=1;}}this.date=this.UTCDate(G,I,H,0,0,0,0);this.viewDate=this.UTCDate(G,I,Math.min(28,H),0,0,0,0);this.setValue(this.formatDate(this.date));this.hidePopup(); }break;}},setStartDate:function(A){this.startDate=A||-Infinity;if(this.startDate!==-Infinity){this.startDate=this.parseDate(this.startDate);}this.update();this.updateNavArrows();},setEndDate:function(A){this.endDate=A||Infinity;if(this.endDate!==Infinity){this.endDate=this.parseDate(this.endDate); @@ -1001,14 +1002,14 @@ if(C.indexOf('old')>-1){if(I===0){I=11;G-=1;}else{I-=1;}}else if(C.indexOf('new' }return C;},moveYear:function(A,B){return this.moveMonth(A,B*12);},dateWithinRange:function(A){return A>=this.startDate&&A<=this.endDate;},remove:function(){this.picker().remove();},validateValue:function(A){if(this.getVisibilityEl().hasClass('hidden')){return true; }if(A.length<1){if(this.allowBlank){return true;}return false;}if(A.lengththis.maxLength){return false;}if(this.vtype){var vt=Roo.form.VTypes;if(!vt[this.vtype](A,this)){return false;}}if(typeof this.validator=="function"){var B=this.validator(A); if(B!==true){return false;}}if(this.regex&&!this.regex.test(A)){return false;}if(typeof(this.parseDate(A))=='undefined'){return false;}if(this.endDate!==Infinity&&this.parseDate(A).getTime()>this.endDate.getTime()){return false;}if(this.startDate!==-Infinity&&this.parseDate(A).getTime()'},{tag:'th',cls:'switch',colspan:'5'} -,{tag:'th',cls:'next',html:''}]}]},content:{tag:'tbody',cn:[{tag:'tr',cn:[{tag:'td',colspan:'7'}]}]},footer:{tag:'tfoot',cn:[{tag:'tr',cn:[{tag:'th',colspan:'7',cls:'today'}]}]},dates:{en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today"} -},modes:[{clsName:'days',navFnc:'Month',navStep:1},{clsName:'months',navFnc:'FullYear',navStep:1},{clsName:'years',navFnc:'FullYear',navStep:10}]});Roo.apply(Roo.bootstrap.DateField,{template:{tag:'div',cls:'datepicker dropdown-menu roo-dynamic shadow',cn:[{tag:'div',cls:'datepicker-days',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.DateField.head,{tag:'tbody'} -,Roo.bootstrap.DateField.footer]}]},{tag:'div',cls:'datepicker-months',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.DateField.head,Roo.bootstrap.DateField.content,Roo.bootstrap.DateField.footer]}]},{tag:'div',cls:'datepicker-years',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.DateField.head,Roo.bootstrap.DateField.content,Roo.bootstrap.DateField.footer]} +}return true;},reset:function(){this.date=this.viewDate='';Roo.bootstrap.form.DateField.superclass.setValue.call(this,'');}});Roo.apply(Roo.bootstrap.form.DateField,{head:{tag:'thead',cn:[{tag:'tr',cn:[{tag:'th',cls:'prev',html:''} +,{tag:'th',cls:'switch',colspan:'5'},{tag:'th',cls:'next',html:''}]}]},content:{tag:'tbody',cn:[{tag:'tr',cn:[{tag:'td',colspan:'7'}]}]},footer:{tag:'tfoot',cn:[{tag:'tr',cn:[{tag:'th',colspan:'7',cls:'today'}]}]},dates:{en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today"} +},modes:[{clsName:'days',navFnc:'Month',navStep:1},{clsName:'months',navFnc:'FullYear',navStep:1},{clsName:'years',navFnc:'FullYear',navStep:10}]});Roo.apply(Roo.bootstrap.form.DateField,{template:{tag:'div',cls:'datepicker dropdown-menu roo-dynamic shadow',cn:[{tag:'div',cls:'datepicker-days',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.form.DateField.head,{tag:'tbody'} +,Roo.bootstrap.form.DateField.footer]}]},{tag:'div',cls:'datepicker-months',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.form.DateField.head,Roo.bootstrap.form.DateField.content,Roo.bootstrap.form.DateField.footer]}]},{tag:'div',cls:'datepicker-years',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.form.DateField.head,Roo.bootstrap.form.DateField.content,Roo.bootstrap.form.DateField.footer]} ]}]}}); -// Roo/bootstrap/TimeField.js -Roo.bootstrap.TimeField=function(A){Roo.bootstrap.TimeField.superclass.constructor.call(this,A);this.addEvents({show:true,hide:true,select:true});};Roo.extend(Roo.bootstrap.TimeField,Roo.bootstrap.Input,{format:"H:i",getAutoCreate:function(){this.after=''; -return Roo.bootstrap.TimeField.superclass.getAutoCreate.call(this);},onRender:function(ct,A){Roo.bootstrap.TimeField.superclass.onRender.call(this,ct,A);this.pickerEl=Roo.get(document.body).createChild(Roo.bootstrap.TimeField.template);this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block'; +// Roo/bootstrap/form/TimeField.js +Roo.bootstrap.form.TimeField=function(A){Roo.bootstrap.form.TimeField.superclass.constructor.call(this,A);this.addEvents({show:true,hide:true,select:true});};Roo.extend(Roo.bootstrap.form.TimeField,Roo.bootstrap.form.Input,{format:"H:i",getAutoCreate:function(){this.after=''; +return Roo.bootstrap.form.TimeField.superclass.getAutoCreate.call(this);},onRender:function(ct,A){Roo.bootstrap.form.TimeField.superclass.onRender.call(this,ct,A);this.pickerEl=Roo.get(document.body).createChild(Roo.bootstrap.form.TimeField.template);this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block'; this.pop=this.picker().select('>.datepicker-time',true).first();this.pop.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.picker().on('mousedown',this.onMousedown,this);this.picker().on('click',this.onClick,this);this.picker().addClass('datepicker-dropdown'); this.fillTime();this.update();this.pop.select('.hours-up',true).first().on('click',this.onIncrementHours,this);this.pop.select('.hours-down',true).first().on('click',this.onDecrementHours,this);this.pop.select('.minutes-up',true).first().on('click',this.onIncrementMinutes,this); this.pop.select('.minutes-down',true).first().on('click',this.onDecrementMinutes,this);this.pop.select('button.period',true).first().on('click',this.onTogglePeriod,this);this.pop.select('button.ok',true).first().on('click',this.setTime,this);},fireKey:function(e){if(!this.picker().isVisible()){if(e.keyCode==27){this.show(); @@ -1020,33 +1021,33 @@ e.preventDefault();},picker:function(){return this.pickerEl;},fillTime:function( },fill:function(){var A=this.time.getHours();var B=this.time.getMinutes();var C='AM';if(A>11){C='PM';}if(A==0){A=12;}if(A>12){A=A-12;}if(A<10){A='0'+A;}if(B<10){B='0'+B;}this.pop.select('.timepicker-hour',true).first().dom.innerHTML=A;this.pop.select('.timepicker-minute',true).first().dom.innerHTML=B; this.pop.select('button',true).first().dom.innerHTML=C;},place:function(){this.picker().removeClass(['bottom-left','bottom-right','top-left','top-right']);var A=['bottom'];if((Roo.lib.Dom.getViewHeight()+Roo.get(document.body).getScroll().top)-(this.inputEl().getBottom()+this.picker().getHeight())<0){A.pop(); A.push('top');}A.push('right');if((Roo.lib.Dom.getViewWidth()+Roo.get(document.body).getScroll().left)-(this.inputEl().getLeft()+this.picker().getWidth())<0){A.pop();A.push('left');}this.picker().addClass(A.join('-'));var B=this;Roo.each(A,function(c){if(c=='bottom'){(function(){} -).defer(200);B.picker().alignTo(B.inputEl(),"tr-br",[0,10],false);return;}if(c=='top'){B.picker().alignTo(B.inputEl(),"br-tr",[0,10],false);return;}});},onFocus:function(){Roo.bootstrap.TimeField.superclass.onFocus.call(this);this.show();},onBlur:function(){Roo.bootstrap.TimeField.superclass.onBlur.call(this); +).defer(200);B.picker().alignTo(B.inputEl(),"tr-br",[0,10],false);return;}if(c=='top'){B.picker().alignTo(B.inputEl(),"br-tr",[0,10],false);return;}});},onFocus:function(){Roo.bootstrap.form.TimeField.superclass.onFocus.call(this);this.show();},onBlur:function(){Roo.bootstrap.form.TimeField.superclass.onBlur.call(this); this.hide();},show:function(){this.picker().show();this.pop.show();this.update();this.place();this.fireEvent('show',this,this.date);},hide:function(){this.picker().hide();this.pop.hide();this.fireEvent('hide',this,this.date);},setTime:function(){this.hide(); this.setValue(this.time.format(this.format));this.fireEvent('select',this,this.date);},onMousedown:function(e){e.stopPropagation();e.preventDefault();},onIncrementHours:function(){Roo.log('onIncrementHours');this.time=this.time.add(Date.HOUR,1);this.update(); },onDecrementHours:function(){Roo.log('onDecrementHours');this.time=this.time.add(Date.HOUR,-1);this.update();},onIncrementMinutes:function(){Roo.log('onIncrementMinutes');this.time=this.time.add(Date.MINUTE,1);this.update();},onDecrementMinutes:function(){Roo.log('onDecrementMinutes'); -this.time=this.time.add(Date.MINUTE,-1);this.update();},onTogglePeriod:function(){Roo.log('onTogglePeriod');this.time=this.time.add(Date.HOUR,12);this.update();}});Roo.apply(Roo.bootstrap.TimeField,{template:{tag:'div',cls:'datepicker dropdown-menu',cn:[{tag:'div',cls:'datepicker-time',cn:[{tag:'table',cls:'table-condensed',cn:[{tag:'tbody',cn:[{tag:'tr',cn:[{tag:'td',colspan:'7'} +this.time=this.time.add(Date.MINUTE,-1);this.update();},onTogglePeriod:function(){Roo.log('onTogglePeriod');this.time=this.time.add(Date.HOUR,12);this.update();}});Roo.apply(Roo.bootstrap.form.TimeField,{template:{tag:'div',cls:'datepicker dropdown-menu',cn:[{tag:'div',cls:'datepicker-time',cn:[{tag:'table',cls:'table-condensed',cn:[{tag:'tbody',cn:[{tag:'tr',cn:[{tag:'td',colspan:'7'} ]}]},{tag:'tfoot',cn:[{tag:'tr',cn:[{tag:'th',colspan:'7',cls:'',cn:[{tag:'button',cls:'btn btn-info ok',html:'OK'}]}]}]}]}]}]}}); -// Roo/bootstrap/MonthField.js -Roo.bootstrap.MonthField=function(A){Roo.bootstrap.MonthField.superclass.constructor.call(this,A);this.addEvents({show:true,hide:true,select:true});};Roo.extend(Roo.bootstrap.MonthField,Roo.bootstrap.Input,{onRender:function(ct,A){Roo.bootstrap.MonthField.superclass.onRender.call(this,ct,A); -this.language=this.language||'en';this.language=this.language in Roo.bootstrap.MonthField.dates?this.language:this.language.split('-')[0];this.language=this.language in Roo.bootstrap.MonthField.dates?this.language:"en";this.isRTL=Roo.bootstrap.MonthField.dates[this.language].rtl||false; -this.isInline=false;this.isInput=true;this.component=this.el.select('.add-on',true).first()||false;this.component=(this.component&&this.component.length===0)?false:this.component;this.hasInput=this.component&&this.inputEL().length;this.pickerEl=Roo.get(document.body).createChild(Roo.bootstrap.MonthField.template); +// Roo/bootstrap/form/MonthField.js +Roo.bootstrap.form.MonthField=function(A){Roo.bootstrap.form.MonthField.superclass.constructor.call(this,A);this.addEvents({show:true,hide:true,select:true});};Roo.extend(Roo.bootstrap.form.MonthField,Roo.bootstrap.form.Input,{onRender:function(ct,A){Roo.bootstrap.form.MonthField.superclass.onRender.call(this,ct,A); +this.language=this.language||'en';this.language=this.language in Roo.bootstrap.form.MonthField.dates?this.language:this.language.split('-')[0];this.language=this.language in Roo.bootstrap.form.MonthField.dates?this.language:"en";this.isRTL=Roo.bootstrap.form.MonthField.dates[this.language].rtl||false; +this.isInline=false;this.isInput=true;this.component=this.el.select('.add-on',true).first()||false;this.component=(this.component&&this.component.length===0)?false:this.component;this.hasInput=this.component&&this.inputEL().length;this.pickerEl=Roo.get(document.body).createChild(Roo.bootstrap.form.MonthField.template); this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.picker().on('mousedown',this.onMousedown,this);this.picker().on('click',this.onClick,this);this.picker().addClass('datepicker-dropdown');Roo.each(this.picker().select('tbody > tr > td',true).elements,function(v){v.setStyle('width','189px'); -});this.fillMonths();this.update();if(this.isInline){this.show();}},setValue:function(v,A){var o=this.getValue();Roo.bootstrap.MonthField.superclass.setValue.call(this,v);this.update();if(A!==true){this.fireEvent('select',this,o,v);}},getValue:function(){return this.value; +});this.fillMonths();this.update();if(this.isInline){this.show();}},setValue:function(v,A){var o=this.getValue();Roo.bootstrap.form.MonthField.superclass.setValue.call(this,v);this.update();if(A!==true){this.fireEvent('select',this,o,v);}},getValue:function(){return this.value; },onClick:function(e){e.stopPropagation();e.preventDefault();var A=e.getTarget();if(A.nodeName.toLowerCase()==='i'){A=Roo.get(A).dom.parentNode;}var B=A.nodeName;var C=A.className;var D=A.innerHTML;if(B.toLowerCase()!='span'||C.indexOf('disabled')>-1||C.indexOf('month')==-1){return; -}this.vIndex=Roo.bootstrap.MonthField.dates[this.language].monthsShort.indexOf(D);this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]);this.hide();},picker:function(){return this.pickerEl;},fillMonths:function(){var i=0;var A=this.picker().select('>.datepicker-months td',true).first(); -A.dom.innerHTML='';while(i<12){var B={tag:'span',cls:'month',html:Roo.bootstrap.MonthField.dates[this.language].monthsShort[i++]};A.createChild(B);}},update:function(){var A=this;if(typeof(this.vIndex)=='undefined'&&this.value.length){this.vIndex=Roo.bootstrap.MonthField.dates[this.language].months.indexOf(this.value); +}this.vIndex=Roo.bootstrap.form.MonthField.dates[this.language].monthsShort.indexOf(D);this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]);this.hide();},picker:function(){return this.pickerEl;},fillMonths:function(){var i=0; +var A=this.picker().select('>.datepicker-months td',true).first();A.dom.innerHTML='';while(i<12){var B={tag:'span',cls:'month',html:Roo.bootstrap.form.MonthField.dates[this.language].monthsShort[i++]};A.createChild(B);}},update:function(){var A=this;if(typeof(this.vIndex)=='undefined'&&this.value.length){this.vIndex=Roo.bootstrap.form.MonthField.dates[this.language].months.indexOf(this.value); }Roo.each(this.pickerEl.select('> .datepicker-months tbody > tr > td > span',true).elements,function(e,k){e.removeClass('active');if(typeof(A.vIndex)!='undefined'&&k==A.vIndex){e.addClass('active');}})},place:function(){if(this.isInline){return;}this.picker().removeClass(['bottom','top']); if((Roo.lib.Dom.getViewHeight()+Roo.get(document.body).getScroll().top)-(this.inputEl().getBottom()+this.picker().getHeight())<0){this.picker().addClass('top');this.picker().setTop(this.inputEl().getTop()-this.picker().getHeight()).setLeft(this.inputEl().getLeft()); -return;}this.picker().addClass('bottom');this.picker().setTop(this.inputEl().getBottom()).setLeft(this.inputEl().getLeft());},onFocus:function(){Roo.bootstrap.MonthField.superclass.onFocus.call(this);this.show();},onBlur:function(){Roo.bootstrap.MonthField.superclass.onBlur.call(this); +return;}this.picker().addClass('bottom');this.picker().setTop(this.inputEl().getBottom()).setLeft(this.inputEl().getLeft());},onFocus:function(){Roo.bootstrap.form.MonthField.superclass.onFocus.call(this);this.show();},onBlur:function(){Roo.bootstrap.form.MonthField.superclass.onBlur.call(this); var d=this.inputEl().getValue();this.setValue(d);this.hide();},show:function(){this.picker().show();this.picker().select('>.datepicker-months',true).first().show();this.update();this.place();this.fireEvent('show',this,this.date);},hide:function(){if(this.isInline){return; -}this.picker().hide();this.fireEvent('hide',this,this.date);},onMousedown:function(e){e.stopPropagation();e.preventDefault();},keyup:function(e){Roo.bootstrap.MonthField.superclass.keyup.call(this);this.update();},fireKey:function(e){if(!this.picker().isVisible()){if(e.keyCode==27){this.show(); -}return;}var A;switch(e.keyCode){case 27:this.hide();e.preventDefault();break;case 37:case 39:A=e.keyCode==37?-1:1;this.vIndex=this.vIndex+A;if(this.vIndex<0){this.vIndex=0;}if(this.vIndex>11){this.vIndex=11;}if(isNaN(this.vIndex)){this.vIndex=0;}this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); -break;case 38:case 40:A=e.keyCode==38?-1:1;this.vIndex=this.vIndex+A*4;if(this.vIndex<0){this.vIndex=0;}if(this.vIndex>11){this.vIndex=11;}if(isNaN(this.vIndex)){this.vIndex=0;}this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); -break;case 13:if(typeof(this.vIndex)!='undefined'&&!isNaN(this.vIndex)){this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]);}this.hide();e.preventDefault();break;case 9:if(typeof(this.vIndex)!='undefined'&&!isNaN(this.vIndex)){this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]); -}this.hide();break;case 16:case 17:case 18:break;default:this.hide();}},remove:function(){this.picker().remove();}});Roo.apply(Roo.bootstrap.MonthField,{content:{tag:'tbody',cn:[{tag:'tr',cn:[{tag:'td',colspan:'7'}]}]},dates:{en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]} -}});Roo.apply(Roo.bootstrap.MonthField,{template:{tag:'div',cls:'datepicker dropdown-menu roo-dynamic',cn:[{tag:'div',cls:'datepicker-months',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.DateField.content]}]}]}}); -// Roo/bootstrap/CheckBox.js -Roo.bootstrap.CheckBox=function(A){Roo.bootstrap.CheckBox.superclass.constructor.call(this,A);this.addEvents({check:true,click:true});};Roo.extend(Roo.bootstrap.CheckBox,Roo.bootstrap.Input,{inputType:'checkbox',inputValue:1,valueOff:0,boxLabel:false,checked:false,weight:false,inline:false,tooltip:'',invalidClass:"",validClass:"",getAutoCreate:function(){var A=(!this.labelAlign)?this.parentLabelAlign():this.labelAlign; +}this.picker().hide();this.fireEvent('hide',this,this.date);},onMousedown:function(e){e.stopPropagation();e.preventDefault();},keyup:function(e){Roo.bootstrap.form.MonthField.superclass.keyup.call(this);this.update();},fireKey:function(e){if(!this.picker().isVisible()){if(e.keyCode==27){this.show(); +}return;}var A;switch(e.keyCode){case 27:this.hide();e.preventDefault();break;case 37:case 39:A=e.keyCode==37?-1:1;this.vIndex=this.vIndex+A;if(this.vIndex<0){this.vIndex=0;}if(this.vIndex>11){this.vIndex=11;}if(isNaN(this.vIndex)){this.vIndex=0;}this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); +break;case 38:case 40:A=e.keyCode==38?-1:1;this.vIndex=this.vIndex+A*4;if(this.vIndex<0){this.vIndex=0;}if(this.vIndex>11){this.vIndex=11;}if(isNaN(this.vIndex)){this.vIndex=0;}this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); +break;case 13:if(typeof(this.vIndex)!='undefined'&&!isNaN(this.vIndex)){this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]);}this.hide();e.preventDefault();break;case 9:if(typeof(this.vIndex)!='undefined'&&!isNaN(this.vIndex)){this.setValue(Roo.bootstrap.form.MonthField.dates[this.language].months[this.vIndex]); +}this.hide();break;case 16:case 17:case 18:break;default:this.hide();}},remove:function(){this.picker().remove();}});Roo.apply(Roo.bootstrap.form.MonthField,{content:{tag:'tbody',cn:[{tag:'tr',cn:[{tag:'td',colspan:'7'}]}]},dates:{en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]} +}});Roo.apply(Roo.bootstrap.form.MonthField,{template:{tag:'div',cls:'datepicker dropdown-menu roo-dynamic',cn:[{tag:'div',cls:'datepicker-months',cn:[{tag:'table',cls:'table-condensed',cn:[Roo.bootstrap.form.DateField.content]}]}]}}); +// Roo/bootstrap/form/CheckBox.js +Roo.bootstrap.form.CheckBox=function(A){Roo.bootstrap.form.CheckBox.superclass.constructor.call(this,A);this.addEvents({check:true,click:true});};Roo.extend(Roo.bootstrap.form.CheckBox,Roo.bootstrap.form.Input,{inputType:'checkbox',inputValue:1,valueOff:0,boxLabel:false,checked:false,weight:false,inline:false,tooltip:'',invalidClass:"",validClass:"",getAutoCreate:function(){var A=(!this.labelAlign)?this.parentLabelAlign():this.labelAlign; var id=Roo.id();var B={};B.cls='form-group form-check '+this.inputType;if(this.inline){B.cls+=' '+this.inputType+'-inline form-check-inline';}var C={tag:'input',id:id,type:this.inputType,value:this.inputValue,cls:'roo-'+this.inputType,placeholder:this.placeholder||''} ;if(this.inputType!='radio'){var D={tag:'input',type:'hidden',cls:'roo-hidden-value',value:this.checked?this.inputValue:this.valueOff};}if(this.weight){B.cls+=" "+this.inputType+"-"+this.weight;}if(this.disabled){C.disabled=true;}if(this.checked){C.checked=this.checked; }if(this.name){C.name=this.name;if(this.inputType!='radio'){D.name=this.name;C.name='_hidden_'+this.name;}}if(this.size){C.cls+=' input-'+this.size;}var E=this;['xs','sm','md','lg'].map(function(H){if(E[H]){B.cls+=' col-'+H+'-'+E[H];}});var F=C;if(this.before||this.after){F={cls:'input-group',cn:[]} @@ -1056,49 +1057,49 @@ var id=Roo.id();var B={};B.cls='form-group form-check '+this.inputType;if(this.i }if(this.labelsm>0){B.cn[0].cls+=' col-sm-'+this.labelsm;B.cn[1].cls+=' col-sm-'+(12-this.labelsm);}if(this.labelxs>0){B.cn[0].cls+=' col-xs-'+this.labelxs;B.cn[1].cls+=' col-xs-'+(12-this.labelxs);}}else if(this.fieldLabel.length){B.cn=[{tag:this.boxLabel?'span':'label','for':id,cls:'control-label box-input-label',html:this.fieldLabel} ,F];if(G){B.cn.push(G);}}else{B.cn=[F];if(G){B.cn.push(G);}}if(this.inputType!='radio'){B.cn.push(D);}return B;},inputEl:function(){return this.el.select('input.roo-'+this.inputType,true).first();},hiddenEl:function(){return this.el.select('input.roo-hidden-value',true).first(); },labelEl:function(){return this.el.select('label.control-label',true).first();},label:function(){return this.labelEl();},boxLabelEl:function(){return this.el.select('label.box-label',true).first();},initEvents:function(){this.inputEl().on('click',this.onClick,this); -if(this.boxLabel){this.el.select('label.box-label',true).first().on('click',this.onClick,this);}this.startValue=this.getValue();if(this.groupId){Roo.bootstrap.CheckBox.register(this);}},onClick:function(e){if(this.fireEvent('click',this,e)!==false){this.setChecked(!this.checked); +if(this.boxLabel){this.el.select('label.box-label',true).first().on('click',this.onClick,this);}this.startValue=this.getValue();if(this.groupId){Roo.bootstrap.form.CheckBox.register(this);}},onClick:function(e){if(this.fireEvent('click',this,e)!==false){this.setChecked(!this.checked); }},setChecked:function(A,B){this.startValue=this.getValue();if(this.inputType=='radio'){Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){e.dom.checked=false;});this.inputEl().dom.checked=true;this.inputEl().dom.value=this.inputValue; if(B!==true){this.fireEvent('check',this,true);}this.validate();return;}this.checked=A;this.inputEl().dom.checked=A;this.hiddenEl().dom.value=A?this.inputValue:this.valueOff;if(B!==true){this.fireEvent('check',this,A);}this.validate();},getValue:function(){if(this.inputType=='radio'){return this.getGroupValue(); }return this.hiddenEl().dom.value;},getGroupValue:function(){if(typeof(this.el.up('form').child('input[name='+this.name+']:checked',true))=='undefined'){return '';}return this.el.up('form').child('input[name='+this.name+']:checked',true).value;},setValue:function(v,A){if(this.inputType=='radio'){this.setGroupValue(v,A); return;}this.setChecked(((typeof(v)=='undefined')?this.checked:(String(v)===String(this.inputValue))),A);this.validate();},setGroupValue:function(v,A){this.startValue=this.getValue();Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){e.dom.checked=false; if(e.dom.value==v){e.dom.checked=true;}});if(A!==true){this.fireEvent('check',this,true);}this.validate();return;},validate:function(){if(this.getVisibilityEl().hasClass('hidden')){return true;}if(this.disabled||(this.inputType=='radio'&&this.validateRadio())||(this.inputType=='checkbox'&&this.validateCheckbox())){this.markValid(); return true;}this.markInvalid();return false;},validateRadio:function(){if(this.getVisibilityEl().hasClass('hidden')){return true;}if(this.allowBlank){return true;}var A=false;Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){if(!e.dom.checked){return; -}A=true;return false;});return A;},validateCheckbox:function(){if(!this.groupId){return (this.getValue()==this.inputValue||this.allowBlank)?true:false;}var A=Roo.bootstrap.CheckBox.get(this.groupId);if(!A){return false;}var r=false;for(var i in A){if(A[i].el.isVisible(true)){r=false; -break;}r=true;}for(var i in A){if(r){break;}r=(A[i].getValue()==A[i].inputValue)?true:false;}return r;},markValid:function(){var A=this;this.fireEvent('valid',this);var B=Roo.bootstrap.FieldLabel.get(this.name+'-group');if(this.groupId){B=Roo.bootstrap.FieldLabel.get(this.groupId+'-group'); +}A=true;return false;});return A;},validateCheckbox:function(){if(!this.groupId){return (this.getValue()==this.inputValue||this.allowBlank)?true:false;}var A=Roo.bootstrap.form.CheckBox.get(this.groupId);if(!A){return false;}var r=false;for(var i in A){if(A[i].el.isVisible(true)){r=false; +break;}r=true;}for(var i in A){if(r){break;}r=(A[i].getValue()==A[i].inputValue)?true:false;}return r;},markValid:function(){var A=this;this.fireEvent('valid',this);var B=Roo.bootstrap.form.FieldLabel.get(this.name+'-group');if(this.groupId){B=Roo.bootstrap.form.FieldLabel.get(this.groupId+'-group'); }if(B){B.markValid();}if(this.inputType=='radio'){Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){var fg=e.findParent('.form-group',false,true);if(Roo.bootstrap.version==3){fg.removeClass([A.invalidClass,A.validClass]); fg.addClass(A.validClass);}else{fg.removeClass(['is-valid','is-invalid']);fg.addClass('is-valid');}});return;}if(!this.groupId){var fg=this.el.findParent('.form-group',false,true);if(Roo.bootstrap.version==3){fg.removeClass([this.invalidClass,this.validClass]); -fg.addClass(this.validClass);}else{fg.removeClass(['is-valid','is-invalid']);fg.addClass('is-valid');}return;}var C=Roo.bootstrap.CheckBox.get(this.groupId);if(!C){return;}for(var i in C){var fg=C[i].el.findParent('.form-group',false,true);if(Roo.bootstrap.version==3){fg.removeClass([this.invalidClass,this.validClass]); -fg.addClass(this.validClass);}else{fg.removeClass(['is-valid','is-invalid']);fg.addClass('is-valid');}}},markInvalid:function(A){if(this.allowBlank){return;}var B=this;this.fireEvent('invalid',this,A);var C=Roo.bootstrap.FieldLabel.get(this.name+'-group'); -if(this.groupId){C=Roo.bootstrap.FieldLabel.get(this.groupId+'-group');}if(C){C.markInvalid();}if(this.inputType=='radio'){Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){var fg=e.findParent('.form-group',false,true); +fg.addClass(this.validClass);}else{fg.removeClass(['is-valid','is-invalid']);fg.addClass('is-valid');}return;}var C=Roo.bootstrap.form.CheckBox.get(this.groupId);if(!C){return;}for(var i in C){var fg=C[i].el.findParent('.form-group',false,true);if(Roo.bootstrap.version==3){fg.removeClass([this.invalidClass,this.validClass]); +fg.addClass(this.validClass);}else{fg.removeClass(['is-valid','is-invalid']);fg.addClass('is-valid');}}},markInvalid:function(A){if(this.allowBlank){return;}var B=this;this.fireEvent('invalid',this,A);var C=Roo.bootstrap.form.FieldLabel.get(this.name+'-group'); +if(this.groupId){C=Roo.bootstrap.form.FieldLabel.get(this.groupId+'-group');}if(C){C.markInvalid();}if(this.inputType=='radio'){Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){var fg=e.findParent('.form-group',false,true); if(Roo.bootstrap.version==3){fg.removeClass([B.invalidClass,B.validClass]);fg.addClass(B.invalidClass);}else{fg.removeClass(['is-invalid','is-valid']);fg.addClass('is-invalid');}});return;}if(!this.groupId){var fg=this.el.findParent('.form-group',false,true); -if(Roo.bootstrap.version==3){fg.removeClass([B.invalidClass,B.validClass]);fg.addClass(B.invalidClass);}else{fg.removeClass(['is-invalid','is-valid']);fg.addClass('is-invalid');}return;}var D=Roo.bootstrap.CheckBox.get(this.groupId);if(!D){return;}for(var i in D){var fg=D[i].el.findParent('.form-group',false,true); -if(Roo.bootstrap.version==3){fg.removeClass([B.invalidClass,B.validClass]);fg.addClass(B.invalidClass);}else{fg.removeClass(['is-invalid','is-valid']);fg.addClass('is-invalid');}}},clearInvalid:function(){Roo.bootstrap.Input.prototype.clearInvalid.call(this); -var A=Roo.bootstrap.FieldLabel.get(this.name+'-group');if(A&&A.iconEl){A.iconEl.removeClass([A.validClass,A.invalidClass]);A.iconEl.removeClass(['is-invalid','is-valid']);}},disable:function(){if(this.inputType!='radio'){Roo.bootstrap.CheckBox.superclass.disable.call(this); +if(Roo.bootstrap.version==3){fg.removeClass([B.invalidClass,B.validClass]);fg.addClass(B.invalidClass);}else{fg.removeClass(['is-invalid','is-valid']);fg.addClass('is-invalid');}return;}var D=Roo.bootstrap.form.CheckBox.get(this.groupId);if(!D){return;}for(var i in D){var fg=D[i].el.findParent('.form-group',false,true); +if(Roo.bootstrap.version==3){fg.removeClass([B.invalidClass,B.validClass]);fg.addClass(B.invalidClass);}else{fg.removeClass(['is-invalid','is-valid']);fg.addClass('is-invalid');}}},clearInvalid:function(){Roo.bootstrap.form.Input.prototype.clearInvalid.call(this); +var A=Roo.bootstrap.form.FieldLabel.get(this.name+'-group');if(A&&A.iconEl){A.iconEl.removeClass([A.validClass,A.invalidClass]);A.iconEl.removeClass(['is-invalid','is-valid']);}},disable:function(){if(this.inputType!='radio'){Roo.bootstrap.form.CheckBox.superclass.disable.call(this); return;}var A=this;if(this.rendered){Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){A.getActionEl().addClass(this.disabledClass);e.dom.disabled=true;});}this.disabled=true;this.fireEvent("disable",this);return this; -},enable:function(){if(this.inputType!='radio'){Roo.bootstrap.CheckBox.superclass.enable.call(this);return;}var A=this;if(this.rendered){Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){A.getActionEl().removeClass(this.disabledClass); -e.dom.disabled=false;});}this.disabled=false;this.fireEvent("enable",this);return this;},setBoxLabel:function(v){this.boxLabel=v;if(this.rendered){this.el.select('label.box-label',true).first().dom.innerHTML=(v===null||v===undefined?'':v);}}});Roo.apply(Roo.bootstrap.CheckBox,{groups:{} +},enable:function(){if(this.inputType!='radio'){Roo.bootstrap.form.CheckBox.superclass.enable.call(this);return;}var A=this;if(this.rendered){Roo.each(this.el.up('form').select('input[name='+this.name+']',true).elements,function(e){A.getActionEl().removeClass(this.disabledClass); +e.dom.disabled=false;});}this.disabled=false;this.fireEvent("enable",this);return this;},setBoxLabel:function(v){this.boxLabel=v;if(this.rendered){this.el.select('label.box-label',true).first().dom.innerHTML=(v===null||v===undefined?'':v);}}});Roo.apply(Roo.bootstrap.form.CheckBox,{groups:{} ,register:function(A){if(typeof(this.groups[A.groupId])=='undefined'){this.groups[A.groupId]={};}if(this.groups[A.groupId].hasOwnProperty(A.name)){return;}this.groups[A.groupId][A.name]=A;},get:function(A){if(typeof(this.groups[A])=='undefined'){return false; }return this.groups[A];}}); -// Roo/bootstrap/Radio.js -Roo.bootstrap.Radio=function(A){Roo.bootstrap.Radio.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.Radio,Roo.bootstrap.Component,{boxLabel:'',value:'',getAutoCreate:function(){var A={tag:'div',cls:'form-group radio',cn:[{tag:'label',cls:'box-label',html:this.boxLabel} +// Roo/bootstrap/form/Radio.js +Roo.bootstrap.form.Radio=function(A){Roo.bootstrap.form.Radio.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.Radio,Roo.bootstrap.Component,{boxLabel:'',value:'',getAutoCreate:function(){var A={tag:'div',cls:'form-group radio',cn:[{tag:'label',cls:'box-label',html:this.boxLabel} ]};return A;},initEvents:function(){this.parent().register(this);this.el.on('click',this.onClick,this);},onClick:function(e){if(this.parent().fireEvent('click',this.parent(),this,e)!==false){this.setChecked(true);}},setChecked:function(A,B){this.parent().setValue(this.value,B); },setBoxLabel:function(v){this.boxLabel=v;if(this.rendered){this.el.select('label.box-label',true).first().dom.innerHTML=(v===null||v===undefined?'':v);}}}); -// Roo/bootstrap/SecurePass.js -Roo.bootstrap.SecurePass=function(A){this.errors={PwdEmpty:"Please type a password, and then retype it to confirm.",PwdShort:"Your password must be at least 6 characters long. Please type a different password.",PwdLong:"Your password can't contain more than 16 characters. Please type a different password.",PwdBadChar:"The password contains characters that aren't allowed. Please type a different password.",IDInPwd:"Your password can't include the part of your ID. Please type a different password.",FNInPwd:"Your password can't contain your first name. Please type a different password.",LNInPwd:"Your password can't contain your last name. Please type a different password.",TooWeak:"Your password is Too Weak."} +// Roo/bootstrap/form/SecurePass.js +Roo.bootstrap.form.SecurePass=function(A){this.errors={PwdEmpty:"Please type a password, and then retype it to confirm.",PwdShort:"Your password must be at least 6 characters long. Please type a different password.",PwdLong:"Your password can't contain more than 16 characters. Please type a different password.",PwdBadChar:"The password contains characters that aren't allowed. Please type a different password.",IDInPwd:"Your password can't include the part of your ID. Please type a different password.",FNInPwd:"Your password can't contain your first name. Please type a different password.",LNInPwd:"Your password can't contain your last name. Please type a different password.",TooWeak:"Your password is Too Weak."} ,this.meterLabel="Password strength:";this.pwdStrengths=["Too Weak","Weak","Medium","Strong"];this.meterClass=["roo-password-meter-tooweak","roo-password-meter-weak","roo-password-meter-medium","roo-password-meter-strong","roo-password-meter-grey"];this.errors={} -;Roo.bootstrap.SecurePass.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.SecurePass,Roo.bootstrap.Input,{meterWidth:300,errorMsg:'',errors:false,imageRoot:'/',meterLabel:'',pwdStrengths:false,strength:0,_lastPwd:null,kCapitalLetter:0,kSmallLetter:1,kDigit:2,kPunctuation:3,insecure:false,initEvents:function(){Roo.bootstrap.SecurePass.superclass.initEvents.call(this); -if(this.el.is('input[type=password]')&&Roo.isSafari){this.el.on('keydown',this.SafariOnKeyDown,this);}this.el.on('keyup',this.checkStrength,this,{buffer:50});},onRender:function(ct,A){Roo.bootstrap.SecurePass.superclass.onRender.call(this,ct,A);this.wrap=this.el.wrap({cls:'x-form-field-wrap'} +;Roo.bootstrap.form.SecurePass.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.SecurePass,Roo.bootstrap.form.Input,{meterWidth:300,errorMsg:'',errors:false,imageRoot:'/',meterLabel:'',pwdStrengths:false,strength:0,_lastPwd:null,kCapitalLetter:0,kSmallLetter:1,kDigit:2,kPunctuation:3,insecure:false,initEvents:function(){Roo.bootstrap.form.SecurePass.superclass.initEvents.call(this); +if(this.el.is('input[type=password]')&&Roo.isSafari){this.el.on('keydown',this.SafariOnKeyDown,this);}this.el.on('keyup',this.checkStrength,this,{buffer:50});},onRender:function(ct,A){Roo.bootstrap.form.SecurePass.superclass.onRender.call(this,ct,A);this.wrap=this.el.wrap({cls:'x-form-field-wrap'} );this.trigger=this.wrap.createChild({tag:'div',cls:'StrengthMeter '+this.triggerClass});this.trigger.createChild({cn:[{tag:'div',cls:'roo-password-meter-grey col-xs-12',style:{}},{cls:'roo-password-meter-text'}]});if(this.hideTrigger){this.trigger.setDisplayed(false); -}this.setSize(this.width||'',this.height||'');},onDestroy:function(){if(this.trigger){this.trigger.removeAllListeners();this.trigger.remove();}if(this.wrap){this.wrap.remove();}Roo.bootstrap.TriggerField.superclass.onDestroy.call(this);},checkStrength:function(){var A=this.inputEl().getValue(); +}this.setSize(this.width||'',this.height||'');},onDestroy:function(){if(this.trigger){this.trigger.removeAllListeners();this.trigger.remove();}if(this.wrap){this.wrap.remove();}Roo.bootstrap.form.TriggerField.superclass.onDestroy.call(this);},checkStrength:function(){var A=this.inputEl().getValue(); if(A==this._lastPwd){return;}var B;if(this.ClientSideStrongPassword(A)){B=3;}else if(this.ClientSideMediumPassword(A)){B=2;}else if(this.ClientSideWeakPassword(A)){B=1;}else{B=0;}Roo.log('strength1: '+B);var pm=this.trigger.child('div/div');pm.removeClass(this.meterClass); -pm.addClass(this.meterClass[B]);var pt=this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom;pt.innerHTML=this.meterLabel+' '+this.pwdStrengths[B];this._lastPwd=A;},reset:function(){Roo.bootstrap.SecurePass.superclass.reset.call(this); +pm.addClass(this.meterClass[B]);var pt=this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom;pt.innerHTML=this.meterLabel+' '+this.pwdStrengths[B];this._lastPwd=A;},reset:function(){Roo.bootstrap.form.SecurePass.superclass.reset.call(this); this._lastPwd='';var pm=this.trigger.child('div/div');pm.removeClass(this.meterClass);pm.addClass('roo-password-meter-grey');var pt=this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom;pt.innerHTML='';this.inputEl().dom.type='password'; -},validateValue:function(A){if(!Roo.bootstrap.SecurePass.superclass.validateValue.call(this,A)){return false;}if(A.length==0){if(this.allowBlank){this.clearInvalid();return true;}this.markInvalid(this.errors.PwdEmpty);this.errorMsg=this.errors.PwdEmpty;return false; -}if(this.insecure){return true;}if(!A.match(/[\x21-\x7e]+/)){this.markInvalid(this.errors.PwdBadChar);this.errorMsg=this.errors.PwdBadChar;return false;}if(A.length<6){this.markInvalid(this.errors.PwdShort);this.errorMsg=this.errors.PwdShort;return false; -}if(A.length>16){this.markInvalid(this.errors.PwdLong);this.errorMsg=this.errors.PwdLong;return false;}var B;if(this.ClientSideStrongPassword(A)){B=3;}else if(this.ClientSideMediumPassword(A)){B=2;}else if(this.ClientSideWeakPassword(A)){B=1;}else{B=0;}if(B<2){this.errorMsg=this.errors.TooWeak; -}console.log('strength2: '+B);var pm=this.trigger.child('div/div');pm.removeClass(this.meterClass);pm.addClass(this.meterClass[B]);var pt=this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom;pt.innerHTML=this.meterLabel+' '+this.pwdStrengths[B]; -this.errorMsg='';return true;},CharacterSetChecks:function(A){this.type=A;this.fResult=false;},isctype:function(A,B){switch(B){case this.kCapitalLetter:if(A>='A'&&A<='Z'){return true;}break;case this.kSmallLetter:if(A>='a'&&A<='z'){return true;}break;case this.kDigit:if(A>='0'&&A<='9'){return true; -}break;case this.kPunctuation:if('!@#$%^&*()_+-=\'";:[{]}|.>,=0){return true;}break;default:return false;}},IsLongEnough:function(A,B){return !(A==null||isNaN(B)||A.length16){this.markInvalid(this.errors.PwdLong);this.errorMsg=this.errors.PwdLong;return false;}var B;if(this.ClientSideStrongPassword(A)){B=3;}else if(this.ClientSideMediumPassword(A)){B=2;}else if(this.ClientSideWeakPassword(A)){B=1; +}else{B=0;}if(B<2){this.errorMsg=this.errors.TooWeak;}console.log('strength2: '+B);var pm=this.trigger.child('div/div');pm.removeClass(this.meterClass);pm.addClass(this.meterClass[B]);var pt=this.trigger.child('/div').child('>*[class=roo-password-meter-text]').dom; +pt.innerHTML=this.meterLabel+' '+this.pwdStrengths[B];this.errorMsg='';return true;},CharacterSetChecks:function(A){this.type=A;this.fResult=false;},isctype:function(A,B){switch(B){case this.kCapitalLetter:if(A>='A'&&A<='Z'){return true;}break;case this.kSmallLetter:if(A>='a'&&A<='z'){return true; +}break;case this.kDigit:if(A>='0'&&A<='9'){return true;}break;case this.kPunctuation:if('!@#$%^&*()_+-=\'";:[{]}|.>,=0){return true;}break;default:return false;}},IsLongEnough:function(A,B){return !(A==null||isNaN(B)||A.length-1){return;}this. Roo.HtmlEditorCore.black=['applet','base','basefont','bgsound','blink','body','frame','frameset','head','html','ilayer','iframe','layer','link','meta','object','script','style','title','xml'];Roo.HtmlEditorCore.clean=['script','style','title','xml'];Roo.HtmlEditorCore.remove=['font']; Roo.HtmlEditorCore.ablack=['on'];Roo.HtmlEditorCore.aclean=['action','background','codebase','dynsrc','href','lowsrc'];Roo.HtmlEditorCore.pwhite=['http','https','mailto'];Roo.HtmlEditorCore.cwhite=[];Roo.HtmlEditorCore.cblack=[];Roo.HtmlEditorCore.swapCodes=[[8211,"–"],[8212,"—"],[8216,"'"],[8217,"'"],[8220,'"'],[8221,'"'],[8226,"*"],[8230,"..."]]; -// Roo/bootstrap/HtmlEditor.js -Roo.bootstrap.HtmlEditor=function(A){Roo.bootstrap.HtmlEditor.superclass.constructor.call(this,A);if(!this.toolbars){this.toolbars=[];}this.editorcore=new Roo.HtmlEditorCore(Roo.apply({owner:this},A));this.addEvents({initialize:true,activate:true,beforesync:true,beforepush:true,sync:true,push:true,editmodechange:true,editorevent:true,firstfocus:true,autosave:true,savedpreview:true} -);};Roo.extend(Roo.bootstrap.HtmlEditor,Roo.bootstrap.TextArea,{toolbars:false,btns:[],resizable:false,height:300,width:false,stylesheets:false,frameId:false,validationEvent:false,deferHeight:true,initialized:false,activated:false,onFocus:Roo.emptyFn,iframePad:3,hideMode:'offsets',tbContainer:false,bodyCls:'',toolbarContainer:function(){return this.wrap.select('.x-html-editor-tb',true).first(); -},createToolbar:function(){Roo.log('renewing');Roo.log("create toolbars");this.toolbars=[new Roo.bootstrap.htmleditor.ToolbarStandard({editor:this})];this.toolbars[0].render(this.toolbarContainer());return;},onRender:function(ct,A){var _t=this;Roo.bootstrap.HtmlEditor.superclass.onRender.call(this,ct,A); +// Roo/bootstrap/form/HtmlEditor.js +Roo.bootstrap.form.HtmlEditor=function(A){Roo.bootstrap.form.HtmlEditor.superclass.constructor.call(this,A);if(!this.toolbars){this.toolbars=[];}this.editorcore=new Roo.HtmlEditorCore(Roo.apply({owner:this},A));this.addEvents({initialize:true,activate:true,beforesync:true,beforepush:true,sync:true,push:true,editmodechange:true,editorevent:true,firstfocus:true,autosave:true,savedpreview:true} +);};Roo.extend(Roo.bootstrap.form.HtmlEditor,Roo.bootstrap.form.TextArea,{toolbars:false,btns:[],resizable:false,height:300,width:false,stylesheets:false,frameId:false,validationEvent:false,deferHeight:true,initialized:false,activated:false,onFocus:Roo.emptyFn,iframePad:3,hideMode:'offsets',tbContainer:false,bodyCls:'',toolbarContainer:function(){return this.wrap.select('.x-html-editor-tb',true).first(); +},createToolbar:function(){Roo.log('renewing');Roo.log("create toolbars");this.toolbars=[new Roo.bootstrap.form.HtmlEditorToolbarStandard({editor:this})];this.toolbars[0].render(this.toolbarContainer());return;},onRender:function(ct,A){var _t=this;Roo.bootstrap.form.HtmlEditor.superclass.onRender.call(this,ct,A); this.wrap=this.inputEl().wrap({cls:'x-html-editor-wrap',cn:{cls:'x-html-editor-tb'}});this.editorcore.onRender(ct,A);if(this.resizable){this.resizeEl=new Roo.Resizable(this.wrap,{pinned:true,wrap:true,dynamic:true,minHeight:this.height,height:this.height,handles:this.resizable,width:this.width,listeners:{resize:function(r,w,h){_t.onResize(w,h); -}}});}this.createToolbar(this);if(!this.width&&this.resizable){this.setSize(this.wrap.getSize());}if(this.resizeEl){this.resizeEl.resizeTo.defer(100,this.resizeEl,[this.width,this.height]);}},onResize:function(w,h){Roo.log('resize: '+w+','+h);Roo.bootstrap.HtmlEditor.superclass.onResize.apply(this,arguments); +}}});}this.createToolbar(this);if(!this.width&&this.resizable){this.setSize(this.wrap.getSize());}if(this.resizeEl){this.resizeEl.resizeTo.defer(100,this.resizeEl,[this.width,this.height]);}},onResize:function(w,h){Roo.log('resize: '+w+','+h);Roo.bootstrap.form.HtmlEditor.superclass.onResize.apply(this,arguments); var ew=false;var eh=false;if(this.inputEl()){if(typeof w=='number'){var aw=w-this.wrap.getFrameWidth('lr');this.inputEl().setWidth(this.adjustWidth('textarea',aw));ew=aw;}if(typeof h=='number'){var A=-11;for(var i=0;i'+f+'',tagname:f,listeners:{click:function(){C.insertTag(this.tagname); D.focus();}}});});E.push(style);F('bold',false,true);F('italic',false,true);F('align-left','justifyleft',true);F('align-center','justifycenter',true);F('align-right','justifyright',true);F('link',false,false,function(G){var H=prompt(this.createLinkText,this.defaultLinkValue); @@ -1196,13 +1197,13 @@ i++){E.push(this.editor.btns[i]);}}this.xtype='NavSimplebar';for(var i=0;i{0}',this.placeholder||'');}else{this.markdownEl.dom.innerHTML=Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); +// Roo/bootstrap/form/Markdown.js +Roo.bootstrap.form.Markdown=function(A){Roo.bootstrap.form.Markdown.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.Markdown,Roo.bootstrap.form.TextArea,{editing:false,initEvents:function(){Roo.bootstrap.form.TextArea.prototype.initEvents.call(this); +this.markdownEl=this.el.createChild({cls:'roo-markdown-area'});this.inputEl().addClass('d-none');if(this.getValue()==''){this.markdownEl.dom.innerHTML=String.format('{0}',this.placeholder||'');}else{this.markdownEl.dom.innerHTML=Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); }this.markdownEl.on('click',this.toggleTextEdit,this);this.on('blur',this.toggleTextEdit,this);this.on('specialkey',this.resizeTextArea,this);},toggleTextEdit:function(){var sh=this.markdownEl.getHeight();this.inputEl().addClass('d-none');this.markdownEl.addClass('d-none'); if(!this.editing){this.inputEl().setHeight(Math.min(500,Math.max(sh,(this.getValue().split("\n").length+1)*30)));this.inputEl().removeClass('d-none');this.inputEl().focus();this.editing=true;return;}this.updateMarkdown();this.markdownEl.removeClass('d-none'); this.editing=false;return;},updateMarkdown:function(){if(this.getValue()==''){this.markdownEl.dom.innerHTML=String.format('{0}',this.placeholder||'');return;}this.markdownEl.dom.innerHTML=Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); -},resizeTextArea:function(){var sh=100;Roo.log([sh,this.getValue().split("\n").length*30]);this.inputEl().setHeight(Math.min(500,Math.max(sh,(this.getValue().split("\n").length+1)*30)));},setValue:function(A){Roo.bootstrap.TextArea.prototype.setValue.call(this,A); +},resizeTextArea:function(){var sh=100;Roo.log([sh,this.getValue().split("\n").length*30]);this.inputEl().setHeight(Math.min(500,Math.max(sh,(this.getValue().split("\n").length+1)*30)));},setValue:function(A){Roo.bootstrap.form.TextArea.prototype.setValue.call(this,A); if(!this.editing){this.updateMarkdown();}},focus:function(){if(!this.editing){this.toggleTextEdit();}}}); // Roo/bootstrap/PagingToolbar.js Roo.bootstrap.PagingToolbar=function(A){this.ds=A.dataSource;if(A.store&&!this.ds){this.store=Roo.factory(A.store,Roo.data);this.ds=this.store;this.ds.xmodule=this.xmodule||false;}this.toolbarItems=[];if(A.items){this.toolbarItems=A.items;}Roo.bootstrap.PagingToolbar.superclass.constructor.call(this,A); @@ -1434,24 +1435,24 @@ this.footerEl.setVisibilityMode(Roo.Element.DISPLAY);this.downloadBtn=this.el.se this.trashBtn.setVisibilityMode(Roo.Element.DISPLAY);this.bodyEl.on('click',this.onClick,this);this.downloadBtn.on('click',this.onDownload,this);this.trashBtn.on('click',this.onTrash,this);this.downloadBtn.hide();this.trashBtn.hide();if(this.showDownload){this.downloadBtn.show(); }if(this.showTrash){this.trashBtn.show();}if(!this.showDownload&&!this.showTrash){this.footerEl.hide();}},initial:function(){this.fireEvent('initial',this);},onClick:function(e){e.preventDefault();this.fireEvent('click',this);},onDownload:function(e){e.preventDefault(); this.fireEvent('download',this);},onTrash:function(e){e.preventDefault();this.fireEvent('trash',this);}}); -// Roo/bootstrap/FieldLabel.js -Roo.bootstrap.FieldLabel=function(A){Roo.bootstrap.Element.superclass.constructor.call(this,A);this.addEvents({invalid:true,valid:true});};Roo.extend(Roo.bootstrap.FieldLabel,Roo.bootstrap.Component,{tag:'label',cls:'',html:'',target:'',allowBlank:true,invalidClass:'has-warning',validClass:'has-success',iconTooltip:'This field is required',indicatorpos:'left',getAutoCreate:function(){var A=""; +// Roo/bootstrap/form/FieldLabel.js +Roo.bootstrap.form.FieldLabel=function(A){Roo.bootstrap.Element.superclass.constructor.call(this,A);this.addEvents({invalid:true,valid:true});};Roo.extend(Roo.bootstrap.form.FieldLabel,Roo.bootstrap.Component,{tag:'label',cls:'',html:'',target:'',allowBlank:true,invalidClass:'has-warning',validClass:'has-success',iconTooltip:'This field is required',indicatorpos:'left',getAutoCreate:function(){var A=""; if(!this.allowBlank){A="visible";}var B={tag:this.tag,cls:'roo-bootstrap-field-label '+this.cls,for:this.target,cn:[{tag:'i',cls:'roo-required-indicator left-indicator text-danger fa fa-lg fa-star '+A,tooltip:this.iconTooltip},{tag:'span',html:this.html}]} ;if(this.indicatorpos=='right'){var B={tag:this.tag,cls:'roo-bootstrap-field-label '+this.cls,for:this.target,cn:[{tag:'span',html:this.html},{tag:'i',cls:'roo-required-indicator right-indicator text-danger fa fa-lg fa-star '+A,tooltip:this.iconTooltip}]} -;}return B;},initEvents:function(){Roo.bootstrap.Element.superclass.initEvents.call(this);this.indicator=this.indicatorEl();if(this.indicator){this.indicator.removeClass('visible');this.indicator.addClass('invisible');}Roo.bootstrap.FieldLabel.register(this); +;}return B;},initEvents:function(){Roo.bootstrap.Element.superclass.initEvents.call(this);this.indicator=this.indicatorEl();if(this.indicator){this.indicator.removeClass('visible');this.indicator.addClass('invisible');}Roo.bootstrap.form.FieldLabel.register(this); },indicatorEl:function(){var A=this.el.select('i.roo-required-indicator',true).first();if(!A){return false;}return A;},markValid:function(){if(this.indicator){this.indicator.removeClass('visible');this.indicator.addClass('invisible');}if(Roo.bootstrap.version==3){this.el.removeClass(this.invalidClass); this.el.addClass(this.validClass);}else{this.el.removeClass('is-invalid');this.el.addClass('is-valid');}this.fireEvent('valid',this);},markInvalid:function(A){if(this.indicator){this.indicator.removeClass('invisible');this.indicator.addClass('visible');}if(Roo.bootstrap.version==3){this.el.removeClass(this.validClass); -this.el.addClass(this.invalidClass);}else{this.el.removeClass('is-valid');this.el.addClass('is-invalid');}this.fireEvent('invalid',this,A);}});Roo.apply(Roo.bootstrap.FieldLabel,{groups:{},register:function(A){if(this.groups.hasOwnProperty(A.target)){return; +this.el.addClass(this.invalidClass);}else{this.el.removeClass('is-valid');this.el.addClass('is-invalid');}this.fireEvent('invalid',this,A);}});Roo.apply(Roo.bootstrap.form.FieldLabel,{groups:{},register:function(A){if(this.groups.hasOwnProperty(A.target)){return; }this.groups[A.target]=A;},get:function(A){if(typeof(this.groups[A])=='undefined'){return false;}return this.groups[A];}}); -// Roo/bootstrap/DateSplitField.js -Roo.bootstrap.DateSplitField=function(A){Roo.bootstrap.DateSplitField.superclass.constructor.call(this,A);this.addEvents({"years":true,"days":true,invalid:true,valid:true});};Roo.extend(Roo.bootstrap.DateSplitField,Roo.bootstrap.Component,{fieldLabel:'',labelAlign:'top',labelWidth:3,dayAllowBlank:false,monthAllowBlank:false,yearAllowBlank:false,dayPlaceholder:'',monthPlaceholder:'',yearPlaceholder:'',dayFormat:'d',monthFormat:'m',yearFormat:'Y',isFormField:true,labellg:0,labelmd:0,labelsm:0,labelxs:0,getAutoCreate:function(){var A={tag:'div',cls:'row roo-date-split-field-group',cn:[{tag:'input',type:'hidden',cls:'form-hidden-field roo-date-split-field-group-value',name:this.name} +// Roo/bootstrap/form/DateSplitField.js +Roo.bootstrap.form.DateSplitField=function(A){Roo.bootstrap.form.DateSplitField.superclass.constructor.call(this,A);this.addEvents({"years":true,"days":true,invalid:true,valid:true});};Roo.extend(Roo.bootstrap.form.DateSplitField,Roo.bootstrap.Component,{fieldLabel:'',labelAlign:'top',labelWidth:3,dayAllowBlank:false,monthAllowBlank:false,yearAllowBlank:false,dayPlaceholder:'',monthPlaceholder:'',yearPlaceholder:'',dayFormat:'d',monthFormat:'m',yearFormat:'Y',isFormField:true,labellg:0,labelmd:0,labelsm:0,labelxs:0,getAutoCreate:function(){var A={tag:'div',cls:'row roo-date-split-field-group',cn:[{tag:'input',type:'hidden',cls:'form-hidden-field roo-date-split-field-group-value',name:this.name} ]};var B='col-md-12';var C='col-md-4';if(this.fieldLabel){var D={tag:'div',cls:'column roo-date-split-field-label col-md-'+((this.labelAlign=='top')?'12':this.labelWidth),cn:[{tag:'label',html:this.fieldLabel}]};if(this.labelAlign=='left'){if(this.labelWidth>12){D.style="width: "+this.labelWidth+'px'; }if(this.labelWidth<13&&this.labelmd==0){this.labelmd=this.labelWidth;}if(this.labellg>0){B=' col-lg-'+this.labellg;C=' col-lg-'+((12-this.labellg)/3);}if(this.labelmd>0){B=' col-md-'+this.labelmd;C=' col-md-'+((12-this.labelmd)/3);}if(this.labelsm>0){B=' col-sm-'+this.labelsm; C=' col-sm-'+((12-this.labelsm)/3);}if(this.labelxs>0){B=' col-xs-'+this.labelxs;C=' col-xs-'+((12-this.labelxs)/3);}}D.cls+=' '+B;A.cn.push(D);}Roo.each(['day','month','year'],function(t){A.cn.push({tag:'div',cls:'column roo-date-split-field-'+t+' '+C}); },this);return A;},inputEl:function(){return this.el.select('.roo-date-split-field-group-value',true).first();},onRender:function(ct,A){var B=this;Roo.bootstrap.DateSplitFiel.superclass.onRender.call(this,ct,A);this.inputEl=this.el.select('.roo-date-split-field-group-value',true).first(); -this.dayField=new Roo.bootstrap.ComboBox({allowBlank:this.dayAllowBlank,alwaysQuery:true,displayField:'value',editable:false,fieldLabel:'',forceSelection:true,mode:'local',placeholder:this.dayPlaceholder,selectOnFocus:true,tpl:'
    {value}
    ',triggerAction:'all',typeAhead:true,valueField:'value',store:new Roo.data.SimpleStore({data:(function(){var C=[]; -B.fireEvent('days',B,C);return C;})(),fields:['value']}),listeners:{select:function(C,D,E){B.setValue(B.getValue());}}});this.dayField.render(this.el.select('.roo-date-split-field-day',true).first(),null);this.monthField=new Roo.bootstrap.MonthField({after:'',allowBlank:this.monthAllowBlank,placeholder:this.monthPlaceholder,readOnly:true,listeners:{render:function(C){this.el.select('span.input-group-addon',true).first().on('click',function(e){e.preventDefault(); -C.focus();});},select:function(C,D,E){B.setValue(B.getValue());}}});this.monthField.render(this.el.select('.roo-date-split-field-month',true).first(),null);this.yearField=new Roo.bootstrap.ComboBox({allowBlank:this.yearAllowBlank,alwaysQuery:true,displayField:'value',editable:false,fieldLabel:'',forceSelection:true,mode:'local',placeholder:this.yearPlaceholder,selectOnFocus:true,tpl:'
    {value}
    ',triggerAction:'all',typeAhead:true,valueField:'value',store:new Roo.data.SimpleStore({data:(function(){var C=[]; +this.dayField=new Roo.bootstrap.form.ComboBox({allowBlank:this.dayAllowBlank,alwaysQuery:true,displayField:'value',editable:false,fieldLabel:'',forceSelection:true,mode:'local',placeholder:this.dayPlaceholder,selectOnFocus:true,tpl:'
    {value}
    ',triggerAction:'all',typeAhead:true,valueField:'value',store:new Roo.data.SimpleStore({data:(function(){var C=[]; +B.fireEvent('days',B,C);return C;})(),fields:['value']}),listeners:{select:function(C,D,E){B.setValue(B.getValue());}}});this.dayField.render(this.el.select('.roo-date-split-field-day',true).first(),null);this.monthField=new Roo.bootstrap.form.MonthField({after:'',allowBlank:this.monthAllowBlank,placeholder:this.monthPlaceholder,readOnly:true,listeners:{render:function(C){this.el.select('span.input-group-addon',true).first().on('click',function(e){e.preventDefault(); +C.focus();});},select:function(C,D,E){B.setValue(B.getValue());}}});this.monthField.render(this.el.select('.roo-date-split-field-month',true).first(),null);this.yearField=new Roo.bootstrap.form.ComboBox({allowBlank:this.yearAllowBlank,alwaysQuery:true,displayField:'value',editable:false,fieldLabel:'',forceSelection:true,mode:'local',placeholder:this.yearPlaceholder,selectOnFocus:true,tpl:'
    {value}
    ',triggerAction:'all',typeAhead:true,valueField:'value',store:new Roo.data.SimpleStore({data:(function(){var C=[]; B.fireEvent('years',B,C);return C;})(),fields:['value']}),listeners:{select:function(C,D,E){B.setValue(B.getValue());}}});this.yearField.render(this.el.select('.roo-date-split-field-year',true).first(),null);},setValue:function(v,A){this.inputEl.dom.value=v; var f=A||(this.yearFormat+'-'+this.monthFormat+'-'+this.dayFormat);var d=Date.parseDate(v,f);if(!d){this.validate();return;}this.setDay(d.format(this.dayFormat));this.setMonth(d.format(this.monthFormat));this.setYear(d.format(this.yearFormat));this.validate(); return;},setDay:function(v){this.dayField.setValue(v);this.inputEl.dom.value=this.getValue();this.validate();return;},setMonth:function(v){this.monthField.setValue(v,true);this.inputEl.dom.value=this.getValue();this.validate();return;},setYear:function(v){this.yearField.setValue(v); @@ -1557,11 +1558,11 @@ if(this.href.length){A+=' roo-brick-link';}if(this.bgimage.length){A+=' roo-bric A.setHeight(A.getWidth()+A.getPadding('tb'));if(this.bgimage.length){var B=this.el.select('.roo-brick-image-view',true).first();B.setWidth(A.getWidth());if(this.square){B.setHeight(A.getWidth());}this.el.setHeight(B.getHeight());A.setHeight(B.getHeight()); }},enter:function(e,el){e.preventDefault();if(this.bgimage.length){this.el.select('.roo-brick-paragraph',true).first().setOpacity(0.9,true);this.el.select('.roo-brick-image-view',true).first().setOpacity(0.1,true);}},leave:function(e,el){e.preventDefault(); if(this.bgimage.length){this.el.select('.roo-brick-paragraph',true).first().setOpacity(0,true);this.el.select('.roo-brick-image-view',true).first().setOpacity(1,true);}}}); -// Roo/bootstrap/NumberField.js -Roo.bootstrap.NumberField=function(A){Roo.bootstrap.NumberField.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.NumberField,Roo.bootstrap.Input,{allowDecimals:true,decimalSeparator:".",decimalPrecision:2,allowNegative:true,allowZero:true,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,minText:"The minimum value for this field is {0}",maxText:"The maximum value for this field is {0}",nanText:"{0} is not a valid number",thousandsDelimiter:false,valueAlign:"left",getAutoCreate:function(){var A={tag:'input',type:'hidden',id:Roo.id(),cls:'hidden-number-input'} -;if(this.name){A.name=this.name;}this.name='';var B=Roo.bootstrap.NumberField.superclass.getAutoCreate.call(this);this.name=A.name;if(B.cn.length>0){B.cn.push(A);}return B;},initEvents:function(){Roo.bootstrap.NumberField.superclass.initEvents.call(this); +// Roo/bootstrap/form/NumberField.js +Roo.bootstrap.form.NumberField=function(A){Roo.bootstrap.form.NumberField.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.NumberField,Roo.bootstrap.form.Input,{allowDecimals:true,decimalSeparator:".",decimalPrecision:2,allowNegative:true,allowZero:true,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,minText:"The minimum value for this field is {0}",maxText:"The maximum value for this field is {0}",nanText:"{0} is not a valid number",thousandsDelimiter:false,valueAlign:"left",getAutoCreate:function(){var A={tag:'input',type:'hidden',id:Roo.id(),cls:'hidden-number-input'} +;if(this.name){A.name=this.name;}this.name='';var B=Roo.bootstrap.form.NumberField.superclass.getAutoCreate.call(this);this.name=A.name;if(B.cn.length>0){B.cn.push(A);}return B;},initEvents:function(){Roo.bootstrap.form.NumberField.superclass.initEvents.call(this); var A="0123456789";if(this.allowDecimals){A+=this.decimalSeparator;}if(this.allowNegative){A+="-";}if(this.thousandsDelimiter){A+=",";}this.stripCharsRe=new RegExp('[^'+A+']','gi');var B=function(e){var k=e.getKey();var c=e.getCharCode();if((String.fromCharCode(c)=='.'||String.fromCharCode(c)=='-')&&A.indexOf(String.fromCharCode(c))===-1){e.stopEvent(); -return;}if(!Roo.isIE&&(e.isSpecialKey()||k==e.BACKSPACE||k==e.DELETE)){return;}if(A.indexOf(String.fromCharCode(c))===-1){e.stopEvent();}};this.el.on("keypress",B,this);},validateValue:function(A){if(!Roo.bootstrap.NumberField.superclass.validateValue.call(this,A)){return false; +return;}if(!Roo.isIE&&(e.isSpecialKey()||k==e.BACKSPACE||k==e.DELETE)){return;}if(A.indexOf(String.fromCharCode(c))===-1){e.stopEvent();}};this.el.on("keypress",B,this);},validateValue:function(A){if(!Roo.bootstrap.form.NumberField.superclass.validateValue.call(this,A)){return false; }var B=this.parseValue(A);if(isNaN(B)){this.markInvalid(String.format(this.nanText,A));return false;}if(Bthis.maxValue){this.markInvalid(String.format(this.maxText,this.maxValue)); return false;}return true;},getValue:function(){var v=this.hiddenEl().getValue();return this.fixPrecision(this.parseValue(v));},parseValue:function(A){if(this.thousandsDelimiter){A+="";r=new RegExp(",","g");A=A.replace(r,"");}A=parseFloat(String(A).replace(this.decimalSeparator,".")); return isNaN(A)?'':A;},fixPrecision:function(A){if(this.thousandsDelimiter){A+="";r=new RegExp(",","g");A=A.replace(r,"");}var B=isNaN(A);if(!this.allowDecimals||this.decimalPrecision==-1||B||!A){return B?'':A;}return parseFloat(A).toFixed(this.decimalPrecision); @@ -1578,8 +1579,8 @@ this.nextIndicator=this.el.select('.roo-document-slider-next i',true).first();th },initial:function(){if(this.files.length){this.indicator=1;this.update()}this.fireEvent('initial',this);},update:function(){this.imageEl.attr('src',this.files[this.indicator-1]);this.titleEl.dom.innerHTML=String.format('{0} / {1}',this.indicator,this.files.length); this.prevIndicator.show();if(this.indicator==1){this.prevIndicator.hide();}this.nextIndicator.show();if(this.indicator==this.files.length){this.nextIndicator.hide();}this.thumbEl.scrollTo('top');this.fireEvent('update',this);},onClick:function(e){e.preventDefault(); this.fireEvent('click',this);},prev:function(e){e.preventDefault();this.indicator=Math.max(1,this.indicator-1);this.update();},next:function(e){e.preventDefault();this.indicator=Math.min(this.files.length,this.indicator+1);this.update();}}); -// Roo/bootstrap/RadioSet.js -Roo.bootstrap.RadioSet=function(A){Roo.bootstrap.RadioSet.superclass.constructor.call(this,A);this.radioes=[];Roo.bootstrap.RadioSet.register(this);this.addEvents({check:true,click:true});};Roo.extend(Roo.bootstrap.RadioSet,Roo.bootstrap.Input,{radioes:false,inline:true,weight:'',indicatorpos:'left',getAutoCreate:function(){var A={tag:'label',cls:'roo-radio-set-label',cn:[{tag:'span',html:this.fieldLabel} +// Roo/bootstrap/form/RadioSet.js +Roo.bootstrap.form.RadioSet=function(A){Roo.bootstrap.form.RadioSet.superclass.constructor.call(this,A);this.radioes=[];Roo.bootstrap.form.RadioSet.register(this);this.addEvents({check:true,click:true});};Roo.extend(Roo.bootstrap.form.RadioSet,Roo.bootstrap.form.Input,{radioes:false,inline:true,weight:'',indicatorpos:'left',getAutoCreate:function(){var A={tag:'label',cls:'roo-radio-set-label',cn:[{tag:'span',html:this.fieldLabel} ]};if(Roo.bootstrap.version==3){if(this.indicatorpos=='left'){A.cn.unshift({tag:'i',cls:'roo-required-indicator left-indicator text-danger fa fa-lg fa-star',tooltip:'This field is required'});}else{A.cn.push({tag:'i',cls:'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',tooltip:'This field is required'} );}}var B={tag:'div',cls:'roo-radio-set-items'};var C=(!this.labelAlign)?this.parentLabelAlign():this.labelAlign;if(C==='left'&&this.fieldLabel.length){B={cls:"roo-radio-set-right",cn:[B]};if(this.labelWidth>12){A.style="width: "+this.labelWidth+'px';}if(this.labelWidth<13&&this.labelmd==0){this.labelmd=this.labelWidth; }if(this.labellg>0){A.cls+=' col-lg-'+this.labellg;B.cls+=' col-lg-'+(12-this.labellg);}if(this.labelmd>0){A.cls+=' col-md-'+this.labelmd;B.cls+=' col-md-'+(12-this.labelmd);}if(this.labelsm>0){A.cls+=' col-sm-'+this.labelsm;B.cls+=' col-sm-'+(12-this.labelsm); @@ -1592,8 +1593,8 @@ this.indicatorEl().addClass('invisible');}if(Roo.bootstrap.version==3){this.el.r },markInvalid:function(A){if(this.allowBlank||this.disabled){return;}if(this.labelEl.isVisible(true)&&this.indicatorEl()){this.indicatorEl().removeClass('invisible');this.indicatorEl().addClass('visible');}if(Roo.bootstrap.version==3){this.el.removeClass([this.invalidClass,this.validClass]); this.el.addClass(this.invalidClass);}else{this.el.removeClass(['is-invalid','is-valid']);this.el.addClass(['is-invalid']);}this.fireEvent('invalid',this,A);},setValue:function(v,A){if(this.value===v){return;}this.value=v;if(this.rendered){this.inputEl().dom.value=(v===null||v===undefined?'':v); }Roo.each(this.radioes,function(i){i.checked=false;i.el.removeClass('checked');});Roo.each(this.radioes,function(i){if(i.value===v||i.value.toString()===v.toString()){i.checked=true;i.el.addClass('checked');if(A!==true){this.fireEvent('check',this,i);}return false; -}},this);this.validate();},clearInvalid:function(){if(!this.el||this.preventMark){return;}this.el.removeClass([this.invalidClass]);this.fireEvent('valid',this);}});Roo.apply(Roo.bootstrap.RadioSet,{groups:{},register:function(A){this.groups[A.name]=A;},get:function(A){if(typeof(this.groups[A])=='undefined'){return false; -}return this.groups[A];}}); +}},this);this.validate();},clearInvalid:function(){if(!this.el||this.preventMark){return;}this.el.removeClass([this.invalidClass]);this.fireEvent('valid',this);}});Roo.apply(Roo.bootstrap.form.RadioSet,{groups:{},register:function(A){this.groups[A.name]=A; +},get:function(A){if(typeof(this.groups[A])=='undefined'){return false;}return this.groups[A];}}); // Roo/bootstrap/SplitBar.js Roo.bootstrap.SplitBar=function(A){this.el=Roo.get(A.dragElement,true);this.el.dom.unselectable="on";this.resizingEl=Roo.get(A.resizingElement,true);this.orientation=A.orientation||Roo.bootstrap.SplitBar.HORIZONTAL;this.minSize=0;this.maxSize=2000;this.animate=false; this.useShim=false;this.shim=null;if(!A.existingProxy){this.proxy=Roo.bootstrap.SplitBar.createProxy(this.orientation);}else{this.proxy=Roo.get(A.existingProxy).dom;}this.dd=new Roo.dd.DDProxy(this.el.dom.id,"XSplitBars",{dragElId:this.proxy.id});this.dd.b4StartDrag=this.onStartProxyDrag.createDelegate(this); @@ -1614,8 +1615,6 @@ if(B){B(s,A);}}else{s.resizingEl.setHeight(A,true,.1,B,'easeOut');}}}};Roo.boots },getElementSize:function(s){return this.basic.getElementSize(s);},setElementSize:function(s,A,B){this.basic.setElementSize(s,A,this.moveSplitter.createDelegate(this,[s]));},moveSplitter:function(s){var A=Roo.bootstrap.SplitBar;switch(s.placement){case A.LEFT:s.el.setX(s.resizingEl.getRight()); break;case A.RIGHT:s.el.setStyle("right",(this.container.getWidth()-s.resizingEl.getLeft())+"px");break;case A.TOP:s.el.setY(s.resizingEl.getBottom());break;case A.BOTTOM:s.el.setY(s.resizingEl.getTop()-s.el.getHeight());break;}}};Roo.bootstrap.SplitBar.VERTICAL=1; Roo.bootstrap.SplitBar.HORIZONTAL=2;Roo.bootstrap.SplitBar.LEFT=1;Roo.bootstrap.SplitBar.RIGHT=2;Roo.bootstrap.SplitBar.TOP=3;Roo.bootstrap.SplitBar.BOTTOM=4; -// Roo/bootstrap/layout/layout-ns.js -Roo.namespace("Roo.bootstrap.layout"); // Roo/bootstrap/layout/Manager.js Roo.bootstrap.layout.Manager=function(A){Roo.bootstrap.layout.Manager.superclass.constructor.call(this,A);this.monitorWindowResize=true;this.regions={};this.addEvents({"layout":true,"regionresized":true,"regioncollapsed":true,"regionexpanded":true});this.updating=false; if(A.el){this.el=Roo.get(A.el);this.initEvents();}};Roo.extend(Roo.bootstrap.layout.Manager,Roo.bootstrap.Component,{regions:null,monitorWindowResize:true,updating:false,onRender:function(ct,A){if(!this.el){this.el=Roo.get(ct);this.initEvents();}},initEvents:function(){if(this.el.dom==document.body&&Roo.isIE&&!config.allowScroll){document.body.scroll="no"; @@ -1727,8 +1726,6 @@ Roo.bootstrap.layout.West=function(A){A.region="west";A.cursor="w-resize";Roo.bo }};Roo.extend(Roo.bootstrap.layout.West,Roo.bootstrap.layout.Split,{orientation:Roo.bootstrap.SplitBar.HORIZONTAL,onRender:function(A,B){Roo.bootstrap.layout.West.superclass.onRender.call(this,A,B);var C=this.config.initialSize||this.config.width;if(typeof C!="undefined"){this.el.setWidth(C); }},getBox:function(){if(this.collapsed){return this.collapsedEl.getBox();}var A=this.el.getBox();if(A.width==0){A.width=this.config.width;}if(this.split){A.width+=this.split.el.getWidth();}return A;},updateBox:function(A){if(this.split&&!this.collapsed){var sw=this.split.el.getWidth(); A.width-=sw;this.split.el.setLeft(A.x+A.width);this.split.el.setTop(A.y);this.split.el.setHeight(A.height);}if(this.collapsed){this.updateBody(null,A.height);}Roo.bootstrap.layout.Region.prototype.updateBox.call(this,A);}}); -// Roo/bootstrap/panel/panel-ns.js -Roo.namespace("Roo.bootstrap.panel"); // Roo/bootstrap/panel/Content.js Roo.bootstrap.panel.Content=function(A){this.tpl=A.tpl||false;var el=A.el;var B=A.content;if(A.autoCreate){el=Roo.id();}this.el=Roo.get(el);if(!this.el&&A&&A.autoCreate){if(typeof A.autoCreate=="object"){if(!A.autoCreate.id){A.autoCreate.id=A.id||el;}this.el=Roo.DomHelper.append(document.body,A.autoCreate,true); }else{var C={tag:"div",cls:(A.cls||'')+(A.background?' bg-'+A.background:'')+" roo-layout-inactive-content",id:A.id||el};if(A.iframe){C.cn=[{tag:'iframe',style:'border: 0px',src:'about:blank'}];}if(A.html){C.html=A.html;}this.el=Roo.DomHelper.append(document.body,C,true); @@ -1800,11 +1797,11 @@ this.status_node.addClass("disabled");}},enable:function(){this.disabled=false;t }this.refreshDelegate=this._handleRefresh.createDelegate(this,[A,B,C]);this.on("activate",this.refreshDelegate);return this.bodyEl.getUpdateManager();},_handleRefresh:function(A,B,C){if(!C||!this.loaded){var D=this.bodyEl.getUpdateManager();D.update(A,B,this._setLoaded.createDelegate(this)); }},refresh:function(){if(this.refreshDelegate){this.loaded=false;this.refreshDelegate();}},_setLoaded:function(){this.loaded=true;},closeClick:function(e){var o={};e.stopEvent();this.fireEvent("beforeclose",this,o);if(o.cancel!==true){this.tabPanel.removeTab(this.id); }},closeText:"Close this tab"}); -// Roo/bootstrap/PhoneInputData.js -Roo.bootstrap.PhoneInputData=function(){var d=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]]; +// Roo/bootstrap/form/PhoneInputData.js +Roo.bootstrap.form.PhoneInputData=function(){var d=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]]; return d;} -// Roo/bootstrap/PhoneInput.js -Roo.bootstrap.PhoneInput=function(A){Roo.bootstrap.PhoneInput.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.PhoneInput,Roo.bootstrap.TriggerField,{listWidth:undefined,selectedClass:'active',invalidClass:"has-warning",validClass:'has-success',allowed:'0123456789',max_length:15,defaultDialCode:'+852',preferedCountries:false,getAutoCreate:function(){var A=Roo.bootstrap.PhoneInputData(); +// Roo/bootstrap/form/PhoneInput.js +Roo.bootstrap.form.PhoneInput=function(A){Roo.bootstrap.form.PhoneInput.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.PhoneInput,Roo.bootstrap.form.TriggerField,{listWidth:undefined,selectedClass:'active',invalidClass:"has-warning",validClass:'has-success',allowed:'0123456789',max_length:15,defaultDialCode:'+852',preferedCountries:false,getAutoCreate:function(){var A=Roo.bootstrap.form.PhoneInputData(); var B=this.labelAlign||this.parentLabelAlign();var id=Roo.id();this.allCountries=[];this.dialCodeMapping=[];for(var i=0;i0){J.cls+=' col-xs-'+this.labelxs;H.cls+=' col-xs-'+(12-this.labelxs);}}}C.cn=[J,H];var L=this;['xs','sm','md','lg'].map(function(M){if(L[M]){C.cls+=' col-'+M+'-'+L[M];}});this.store=new Roo.data.Store({proxy:new Roo.data.MemoryProxy({}),reader:new Roo.data.JsonReader({fields:[{'name':'name','type':'string'} ,{'name':'iso2','type':'string'},{'name':'dialCode','type':'string'},{'name':'priority','type':'string'},{'name':'areaCodes','type':'string'}]})});if(!this.preferedCountries){this.preferedCountries=['hk','gb','us'];}var p=this.preferedCountries.reverse(); if(p){for(var i=0;ithis.maxValue){this.markInvalid(String.format(this.maxText,this.maxValue)); return false;}return true;},validate:function(){if(this.disabled||this.allowBlank){this.markValid();return true;}var A=this.getCurrency();if(this.validateValue(this.getRawValue())&&A.length){this.markValid();return true;}this.markInvalid();return false;},getName:function(){return this.name; },beforeBlur:function(){if(!this.castInt){return;}var v=this.parseValue(this.getRawValue());if(v||v==0){this.setValue(v);}},onBlur:function(){this.beforeBlur();if(!Roo.isOpera&&this.focusClass){}this.hasFocus=false;if(this.validationEvent!==false&&this.validateOnBlur&&this.validationEvent!="blur"){this.validate(); @@ -1894,3 +1891,14 @@ var c3=this.calculateControlPoints(A[1],A[2],A[3],C).c1;return new Bezier(A[1],c if(i>0){var C=cx-px;var D=cy-py;B+=Math.sqrt(C*C+D*D);}px=cx;py=cy;}return B;};Bezier.prototype.point=function(t,A,c1,c2,B){return (A*(1.0-t)*(1.0-t)*(1.0-t))+(3.0*c1*(1.0-t)*(1.0-t)*t)+(3.0*c2*(1.0-t)*t*t)+(B*t*t*t);};return Bezier;}()),throttleStroke:function(fn,A){if(A===void 0){A=250; }var B=0;var C=null;var D;var E;var F;var G=function(){B=Date.now();C=null;D=fn.apply(E,F);if(!C){E=null;F=[];}};return function H(){var I=[];for(var _i=0;_iA){if(C){clearTimeout(C); C=null;}B=J;D=fn.apply(E,F);if(!C){E=null;F=[];}}else if(!C){C=window.setTimeout(G,K);}return D;};}}); +// Roo/bootstrap/form/deprecated.js +Roo.bootstrap.Form=Roo.bootstrap.form.Form.Form;Roo.bootstrap.Input=Roo.bootstrap.form.Form.Input;Roo.bootstrap.TextArea=Roo.bootstrap.form.Form.TextArea;Roo.bootstrap.TriggerField=Roo.bootstrap.form.Form.TriggerField;Roo.bootstrap.ComboBox=Roo.bootstrap.form.Form.ComboBox; +Roo.bootstrap.DateField=Roo.bootstrap.form.Form.DateField;Roo.bootstrap.TimeField=Roo.bootstrap.form.Form.TimeField;Roo.bootstrap.MonthField=Roo.bootstrap.form.Form.MonthField;Roo.bootstrap.CheckBox=Roo.bootstrap.form.Form.CheckBox;Roo.bootstrap.Radio=Roo.bootstrap.form.Form.Radio; +Roo.bootstrap.RadioSet=Roo.bootstrap.form.Form.RadioSet;Roo.bootstrap.SecurePass=Roo.bootstrap.form.Form.SecurePass;Roo.bootstrap.FieldLabel=Roo.bootstrap.form.Form.FieldLabel;Roo.bootstrap.DateSplitField=Roo.bootstrap.form.Form.DateSplitField;Roo.bootstrap.NumberField=Roo.bootstrap.form.Form.NumberField; +Roo.bootstrap.PhoneInput=Roo.bootstrap.form.Form.PhoneInput;Roo.bootstrap.PhoneInputData=Roo.bootstrap.form.Form.PhoneInputData;Roo.bootstrap.MoneyField=Roo.bootstrap.form.Form.MoneyField;Roo.bootstrap.HtmlEditor=Roo.bootstrap.form.Form.HtmlEditor;Roo.bootstrap.HtmlEditor.ToolbarStandard=Roo.bootstrap.form.Form.HtmlEditorToolbarStandard; +Roo.bootstrap.Markdown=Roo.bootstrap.form.Markdown;Roo.bootstrap.CardUploader=Roo.bootstrap.form.CardUploader; +// Roo/bootstrap/nav/deprecated.js +Roo.bootstrap.Navbar=Roo.bootstrap.nav.Bar;Roo.bootstrap.NavGroup=Roo.bootstrap.nav.Group;Roo.bootstrap.NavHeaderbar=Roo.bootstrap.nav.Headerbar;Roo.bootstrap.NavItem=Roo.bootstrap.nav.Item;Roo.bootstrap.NavProgressBar=Roo.bootstrap.nav.ProgressBar;Roo.bootstrap.NavProgressBarItem=Roo.bootstrap.nav.ProgressBarItem; +Roo.bootstrap.NavSidebar=Roo.bootstrap.nav.Sidebar;Roo.bootstrap.NavSidebarItem=Roo.bootstrap.nav.SidebarItem;Roo.bootstrap.NavSimplebar=Roo.bootstrap.nav.Simplebar; +// Roo/bootstrap/menu/deprecated.js +Roo.bootstrap.Menu=Roo.bootstrap.menu.Menu;Roo.bootstrap.MenuItem=Roo.bootstrap.menu.Item;Roo.bootstrap.MenuSeparator=Roo.bootstrap.menu.Separator -- 2.39.2