|
| columns : ArrayAn Array of object literals. The config options defined by
Ext.grid.Column are the options which may appear in the o... An Array of object literals. The config options defined by
Ext.grid.Column are the options which may appear in the object literal for each
individual column definition. | ColumnModel |
| defaultSortable : BooleanDefault sortable of columns which have no
@@ -126,7 +126,7 @@ Or a shorthand syntax:
scope: this
}); Returns: | Observable |
| destroy()
:
- voidDestroys this column model by purging any event listeners, and removing any editors. Destroys this column model by purging any event listeners, and removing any editors. | ColumnModel |
| enableBubble( Object events )
+ voidDestroys this column model by purging any event listeners, and removing any editors. Destroys this column model by purging any event listeners, and removing any editors. | ColumnModel |
| enableBubble( String/Array events )
:
voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present... Enables events fired by this Observable to bubble up an owner hierarchy by calling
@@ -135,13 +135,13 @@ this.getBubbleTarget() if present... Enables events fi
implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to
access the required target more quickly.
Example: Ext.override(Ext.form.Field, {
-// Add functionality to Field's initComponent to enable the change event to bubble
- initComponent: Ext.form.Field.prototype.initComponent.createSequence(function() {
- this.enableBubble('change');
+ // Add functionality to Field's initComponent to enable the change event to bubble
+ initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+ this.enableBubble('change');
}),
-// We know that we want Field's events to bubble directly to the FormPanel.
- getBubbleTarget: function() {
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
if (!this.formPanel) {
this.formPanel = this.findParentByType('form');
}
@@ -156,11 +156,11 @@ access the required target more quickly.
}],
listeners: {
change: function() {
-// Title goes red if form has been modified.
- myForm.header.setStyle("color", "red");
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
}
}
-});
| Observable |
| findColumnIndex( String col )
+}); | Observable |
| findColumnIndex( String col )
:
NumberFinds the index of the first matching column for the given dataIndex. Finds the index of the first matching column for the given dataIndex. Parameters:col : StringThe dataIndex to find Returns: | ColumnModel |
| fireEvent( String eventName , Object... args )
:
@@ -191,7 +191,9 @@ with (columnConfig, index)
// returns an array of column config objects for all hidden columns
var columns = grid.getColumnModel().getColumnsBy(function(c){
return c.hidden;
-});
Parameters:fn : Functionscope : Object(optional) Returns: | ColumnModel |
| getDataIndex( Number col )
+}); | ColumnModel |
| getDataIndex( Number col )
:
StringReturns the dataIndex for the specified column.
// Get field name for the column
|