Clear Up
SharpKit Reference

Table Class

This class encapsulates the user interface for a tabular data set. It acts as a centralized manager for controlling the various interface elements of the view. This includes handling events, such as row and cell level based DOM events. It also reacts to events from the underlying Ext.selection.Model to provide visual feedback to the user.

This class does not provide ways to manipulate the underlying data of the configured Ext.data.Store.

This is the base class for both Ext.grid.View and Ext.tree.View and is not to be used directly.

Namespace: Ext.view

Constructors

Methods

Name Description
addRowCls(object, JsString) Adds a CSS Class to a specific row.
focusRow(object) Focuses a particular row and brings it into view. Will fire the rowfocus event.
getFeature(JsString) Get a reference to a feature
getRowClass(Model, JsNumber, object, Store) 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";
            }
            }
            
getTableChunker() Returns the configured chunker or default of Ext.view.TableChunker
removeRowCls(object, JsString) Removes a CSS Class from a specific row.

Fields

Name Description
enableTextSelection True to enable text selections.
firstCls A CSS class to add to the first cell in every row to enable special styling for the first column. If no styling is needed on the first column, this may be configured as null. Defaults to: "x-grid-cell-first"
lastCls A CSS class to add to the last cell in every row to enable special styling for the last column. If no styling is needed on the last column, this may be configured as null. Defaults to: "x-grid-cell-last"
markDirty True to show the dirty cell indicator when a cell has been modified. Defaults to: true
stripeRows True to stripe the rows. This causes the CSS class x-grid-row-alt to be added to alternate rows of the grid. A default CSS rule is provided which sets a background color, but you can override this with a rule which either overrides the background-color style using the !important modifier, or which uses a CSS selector of higher specificity. Defaults to: true
© Copyright 2005-2011 SharpKit. All rights reserved.