/**
* @class Ext.grid.column.Column
* @extends Ext.grid.header.Container
*
@@ -91,21 +108,21 @@ Ext.define('Ext.grid.column.Column', {
'<tpl if="!values.menuDisabled"><div class="' + Ext.baseCSSPrefix + 'column-header-trigger"></div></tpl>' +
'</div>',
- /**
+ /**
* @cfg {Array} columns
* <p>An optional array of sub-column definitions. This column becomes a group, and houses the columns defined in the <code>columns</code> config.</p>
* <p>Group columns may not be sortable. But they may be hideable and moveable. And you may move headers into and out of a group. Note that
* if all sub columns are dragged out of a group, the group is destroyed.
*/
- /**
+ /**
* @cfg {String} dataIndex <p><b>Required</b>. The name of the field in the
* grid's {@link Ext.data.Store}'s {@link Ext.data.Model} definition from
* which to draw the column's value.</p>
*/
dataIndex: null,
- /**
+ /**
* @cfg {String} text Optional. The header text to be used as innerHTML
* (html tags are accepted) to display in the Grid. <b>Note</b>: to
* have a clickable header with no text displayed you can use the
@@ -113,32 +130,32 @@ Ext.define('Ext.grid.column.Column', {
*/
text: ' ',
- /**
+ /**
* @cfg {Boolean} sortable Optional. <tt>true</tt> if sorting is to be allowed on this column.
* Whether local/remote sorting is used is specified in <code>{@link Ext.data.Store#remoteSort}</code>.
*/
sortable: true,
- /**
+ /**
* @cfg {Boolean} groupable Optional. If the grid uses a {@link Ext.grid.feature.Grouping}, this option
* may be used to disable the header menu item to group by the column selected. By default,
* the header menu group option is enabled. Set to false to disable (but still show) the
* group option in the header menu for the column.
*/
- /**
+ /**
* @cfg {Boolean} hideable Optional. Specify as <tt>false</tt> to prevent the user from hiding this column
* (defaults to true).
*/
hideable: true,
- /**
+ /**
* @cfg {Boolean} menuDisabled
* True to disabled the column header menu containing sort/hide options. Defaults to false.
*/
menuDisabled: false,
- /**
+ /**
* @cfg {Function} renderer
* <p>A renderer is an 'interceptor' method which can be used transform data (value, appearance, etc.) before it
* is rendered. Example:</p>
@@ -163,13 +180,13 @@ Ext.define('Ext.grid.column.Column', {
*/
renderer: false,
- /**
+ /**
* @cfg {String} align Sets the alignment of the header and rendered columns.
* Defaults to 'left'.
*/
align: 'left',
- /**
+ /**
* @cfg {Boolean} draggable Indicates whether or not the header can be drag and drop re-ordered.
* Defaults to true.
*/
@@ -179,19 +196,19 @@ Ext.define('Ext.grid.column.Column', {
// override this with an emptyFn. It is controlled at the HeaderDragZone.
initDraggable: Ext.emptyFn,
- /**
+ /**
* @cfg {String} tdCls <p>Optional. A CSS class names to apply to the table cells for this column.</p>
*/
- /**
+ /**
* @property {Ext.core.Element} triggerEl
*/
- /**
+ /**
* @property {Ext.core.Element} textEl
*/
- /**
+ /**
* @private
* Set in this class to identify, at runtime, instances which are not instances of the
* HeaderContainer base class, but are in fact, the subclass: Header.
@@ -304,7 +321,7 @@ Ext.define('Ext.grid.column.Column', {
return this.up(':not([isHeader])');
},
- /**
+ /**
* Returns the true grid column index assiciated with this Column only if this column is a base level Column.
* If it is a group column, it returns <code>false</code>
*/
@@ -448,7 +465,7 @@ Ext.define('Ext.grid.column.Column', {
this.onElClick(e, this.el.dom);
},
- /**
+ /**
* @private
* Double click
* @param e
@@ -481,7 +498,7 @@ Ext.define('Ext.grid.column.Column', {
}
},
- /**
+ /**
* @private
* Process UI events from the view. The owning TablePanel calls this method, relaying events from the TableView
* @param {String} type Event type, eg 'click'
@@ -516,7 +533,7 @@ Ext.define('Ext.grid.column.Column', {
});
},
- /**
+ /**
* Returns the parameter to sort upon when sorting this header. By default
* this returns the dataIndex and will not need to be overriden in most cases.
*/
@@ -693,7 +710,7 @@ Ext.define('Ext.grid.column.Column', {
return (this.el.getRight() - e.getXY()[0] <= this.handleWidth);
}
- /**
+ /**
* Retrieves the editing field for editing associated with this header. Returns false if there
* is no field associated with the Header the method will return false. If the
* field has not been instantiated it will be created. Note: These methods only has an implementation
@@ -707,10 +724,12 @@ Ext.define('Ext.grid.column.Column', {
// when the editing plugin is injected
- /**
+ /**
* Sets the form field to be used for editing. Note: This method only has an implementation
* if an Editing plugin has been enabled on the grid.
* @param {Mixed} field An object representing a field to be created. If no xtype is specified a 'textfield' is assumed.
* @method setEditor
*/
-});