Class type Ext_view_Table.t


class type t = object .. end
Inherits
method addRowCls : 'a. 'a Js.t -> Js.js_string Js.t -> unit Js.meth

Adds a CSS Class to a specific row.

Parameters:


method autoSizeColumn : 'b. 'b Js.t -> unit Js.meth

Sizes the passed header to fit the max content width. Note that group columns shrinkwrap around the size of leaf columns. Auto sizing a group column autosizes descendant leaf columns.

Parameters:


method beforeDestroy : unit Js.meth

Invoked before the Component is destroyed.


method collectData : 'c.
Ext_data_Model.t Js.js_array Js.t ->
Js.number Js.t -> 'c Js.t Js.js_array Js.t Js.meth

Function which can be overridden which returns the data object passed to this DataView's template to render the whole DataView.

This is usually an Array of data objects, each element of which is processed by an XTemplate which uses '<tpl for=".">' to iterate over its supplied data object as an Array. However, named properties may be placed into the data object to provide non-repeating data such as headings, totals etc.

Parameters:

Returns:


method focus_table : 'd 'e 'f 'g.
bool Js.t Js.optdef ->
'd Js.t Js.optdef ->
'e Js.callback Js.optdef ->
'f Js.callback Js.optdef -> (#Ext_Component.t as 'g) Js.t Js.meth

Try to focus this component.

Parameters:

Returns:


method focusRow : 'h 'i. 'h Js.t -> 'i Js.t Js.optdef -> unit Js.meth

Focuses a particular row and brings it into view. Will fire the rowfocus event.

Parameters:


method getBodySelector : unit Js.meth

Returns a CSS selector which selects the outermost element(s) in this view.


method getCellSelector : Ext_grid_column_Column.t Js.t Js.optdef -> unit Js.meth

Returns a CSS selector which selects a particular column if the desired header is passed, or a general cell selector is no parameter is passed.

Parameters:


method getColumnSizerSelector : 'j. 'j Js.t -> unit Js.meth

Returns a CSS selector which selects the element(s) which define the width of a column.

This is used by the Ext.view.TableLayout when resizing columns.

Parameters:


method getDataRowSelector : unit Js.meth

Returns a CSS selector which selects a row which contains cells.

These may not correspond to actual records in the store. This selector may be used to identify things like total rows or header rows as injected by features which modify the rowTpl.


method getFeature : Js.js_string Js.t -> Ext_grid_feature_Feature.t Js.t Js.meth

Get a reference to a feature

Parameters:

Returns:


method getItemSelector : unit Js.meth

Returns a CSS selector which selects items of the view rendered by the rowTpl


method getNode_table : 'k. 'k Js.t -> bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth

Returns the node given the passed Record, or index or node.

Parameters:

Returns:


method getNodeContainerSelector : unit Js.meth

Returns a CSS selector which selects the element which contains record nodes.


method getPosition : bool Js.t Js.optdef -> Js.number Js.t Js.js_array Js.t Js.meth

Gets the current XY position of the component's underlying element.

Parameters:

Returns:


method getRecord : 'l. 'l Js.t -> Ext_data_Model.t Js.t Js.meth

Gets a record from a node

Parameters:

Returns:


method getRowClass : 'm.
Ext_data_Model.t Js.t ->
Js.number Js.t ->
'm Js.t -> Ext_data_Store.t Js.t -> Js.js_string Js.t Js.meth

Override this function to apply custom CSS classes to rows during rendering. This function should return the CSS class name (or empty string '' for none) that will be added to the row's wrapping div. To apply multiple class names, simply return them space-delimited within the string (e.g. 'my-class another-class'). Example usage:

viewConfig: {
    getRowClass: function(record, rowIndex, rowParams, store){
        return record.get("valid") ? "row-valid" : "row-error";
    }
}

Parameters:

Returns:


method indexOf : 'n. 'n Js.t -> Js.number Js.t Js.meth

Finds the index of the passed node.

Parameters:

Returns:


method initComponent : unit Js.meth

The initComponent template method is an important initialization step for a Component. It is intended to be implemented by each subclass of Ext.Component to provide any needed constructor logic. The initComponent method of the class being created is called first, with each initComponent method up the hierarchy to Ext.Component being called thereafter. This makes it easy to implement and, if needed, override the constructor logic of the Component at any step in the hierarchy.

The initComponent method must contain a call to callParent in order to ensure that the parent class' initComponent method is also called.

All config options passed to the constructor are applied to this before initComponent is called, so you can simply access them with this.someOption.

The following example demonstrates using a dynamic string for the text of a button at the time of instantiation of the class.

Ext.define('DynamicButtonText', {
    extend: 'Ext.button.Button',

    initComponent: function() {
        this.text = new Date();
        this.renderTo = Ext.getBody();
        this.callParent();
    }
});

Ext.onReady(function() {
    Ext.create('DynamicButtonText');
});

method onDestroy : unit Js.meth

Allows addition of behavior to the destroy operation. After calling the superclass's onDestroy, the Component will be destroyed.


method refresh : unit Js.meth

Refreshes the grid view. Sets the sort state and focuses the previously focused row.


method removeRowCls : 'o. 'o Js.t -> Js.js_string Js.t -> unit Js.meth

Removes a CSS Class from a specific row.

Parameters:


method walkRecs : Ext_data_Model.t Js.t -> Js.number Js.t -> unit Js.meth

Navigates from the passed record by the passed increment which may be +ve or -ve

Skips hidden records.

If no record is visible in the specified direction, returns the starting record index unchanged.

Parameters:


method walkRows : Js.number Js.t -> Js.number Js.t -> unit Js.meth

Increments the passed row index by the passed increment which may be +ve or -ve

Skips hidden rows.

If no row is visible in the specified direction, returns the input row index unchanged.

Parameters: