Class: Cell

Cell

Represent a Cell of Grid , this is a base class for All different types of cells e.g GridHeaderCell , GridCell

new Cell(opt_domHelper)

Parameters:
Name Type Argument Description
opt_domHelper goog.dom.DomHelper <optional>
Optional DOM helper, used for document interaction.
Source:

Extends

  • goog.ui.Component

Members

<static> CSS_CLASS :string

Default CSS class to be applied to the root element of cell
Type:
  • string
Source:

<static> EventType :string

Type:
  • string
Properties:
Name Type Default Description
OPTION_CLICK string evt-pear-grid-cell-options-click
Source:

Methods

<protected> decorateElementWithClasses()

Source:

disposeInternal()

Source:

enterDocument()

Configures the component after its DOM has been rendered, and sets up event handling. Overrides goog.ui.Component#enterDocument.
Source:

getCellIndex() → {number}

Source:
Returns:
Type
number

getDataColumn() → {pear.data.Column}

Get Data Column Associated with the Cell
Source:
Returns:
Data Column
Type
pear.data.Column

getGrid() → {pear.ui.Grid}

Get Instance of Grid , which owns this Cell
Source:
Returns:
Type
pear.ui.Grid

getRow() → {pear.ui.Row}

Returns the component's parent, if any.
Source:
Returns:
The Row Container.
Type
pear.ui.Row

getRowPosition() → {number}

Source:
Returns:
Type
number

setCellIndex(index)

Parameters:
Name Type Description
index number
Source:

setDataColumn(datacolumn)

Set Data Column
Parameters:
Name Type Description
datacolumn pear.data.Column
Source: