-
19 Mar 2009 2:57 PM #621
Docs bug
Docs bug
[IMPLEMENTED]
Config option "closable" is missing from Panel.
-
19 Mar 2009 2:58 PM #622
triggerConfig option is wonderful!
triggerConfig option is wonderful!
[IMPLEMENTED]
I just wanted to say, I finally stumbled across a hint about a "triggerConfig" option for TriggerField and it's a *wonderful* thing, it should definitely be added to the documentation!!
-
20 Mar 2009 6:02 AM #623
BasicForm getValues asString default value
BasicForm getValues asString default value
[IMPLEMENTED]
The documentation indicates the default value for the BasicForm.getValues() parameter "asString" is true (returns as string) :
In the code an object is returned unless asString is passed in === true:Code:@param {Boolean} asString (optional) false to return the values as an object (defaults to returning as a string)
code and @param taken from my 2.2.1 download.Code:getValues: function(asString) { var fs = Ext.lib.Ajax.serializeForm(this.el.dom); if (asString === true) { return fs; } return Ext.urlDecode(fs); }
-
20 Mar 2009 6:20 AM #624
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
20 Mar 2009 6:20 AM #625Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
20 Mar 2009 12:51 PM #626
BasicForm getValues asString default value
BasicForm getValues asString default value
[IMPLEMENTED]
My response is "exactly". I am seriously trying to figure out how I am reading this wrong:
Using the Checkbox / Radio Group example I set a breakpoint in the Save button's handler. Then in the console call fp.getForm().getValues(). If I do not pass in a value for asString it returns an object, see attached screen shot from firebug. Is that not what is meant by default?@param {Boolean} asString (optional) false to return the values as an object (defaults to returning as a string)
basicForm.png
-
20 Mar 2009 4:56 PM #627MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
20 Mar 2009 6:03 PM #628
[IMPLEMENTED]
In TabPanel.js...
initTab checks the closable config option which adds 'x-tab-strip-closable' to the tab's dom helper config.
In findTargets it then checks the presence of 'x-tab-strip-close' to determine if the tab is closable.Code:initTab : function(item, index){ var before = this.strip.dom.childNodes[index]; var cls = item.closable ? 'x-tab-strip-closable' : ''; if(item.disabled){ cls += ' x-item-disabled'; } if(item.iconCls){ cls += ' x-tab-with-icon'; } if(item.tabCls){ cls += ' ' + item.tabCls; } var p = { id: this.id + this.idDelimiter + item.getItemId(), text: item.title, cls: cls, iconCls: item.iconCls || '' }; var el = before ? this.itemTpl.insertBefore(before, p) : this.itemTpl.append(this.strip, p); Ext.fly(el).addClassOnOver('x-tab-strip-over'); if(item.tabTip){ Ext.fly(el).child('span.x-tab-strip-text', true).qtip = item.tabTip; } item.tabEl = el; item.on('disable', this.onItemDisabled, this); item.on('enable', this.onItemEnabled, this); item.on('titlechange', this.onItemTitleChanged, this); item.on('iconchange', this.onItemIconChanged, this); item.on('beforeshow', this.onBeforeShowItem, this); }
IMO that closable should be a config of TabPanel's items but not of the TabPanel itself.Code:findTargets : function(e){ var item = null; var itemEl = e.getTarget('li', this.strip); if(itemEl){ item = this.getComponent(itemEl.id.split(this.idDelimiter)[1]); if(item.disabled){ return { close : null, item : null, el : null }; } } return { close : e.getTarget('.x-tab-strip-close', this.strip), item : item, el : itemEl }; }
-
20 Mar 2009 7:07 PM #629
[IMPLEMENTED]
Ok, adding this to Ext.Panel docs:
Code:/** * @cfg {Boolean} closable * Panels themselves do not directly support being closed, but some Panel * subclasses do (like {@link Ext.Window}) or a Panel Class within a Ext.TabPanel. * Specify <tt>true</tt> to enable closing in such situations. Defaults to <tt>false</tt> */MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
24 Mar 2009 7:42 AM #630
[no change made]
http://extjs.com/deploy/dev/docs/?class=Ext.Template
Shouldn't that be '[0]'?Code:overwrite( Mixed el, Object/Array values, [Boolean returnElement] ) : HTMLElement/Ext.Element Applies the supplied values to the template and overwrites the content of el with the new node(s). Parameters: * el : Mixed The context element * values : Object/Array The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}) * returnElement : Boolean (optional) true to return a Ext.Element (defaults to undefined) Returns: * HTMLElement/Ext.Element The new node or Element


Reply With Quote
