new GridCell(opt_domHelper, opt_renderer)
GridCell
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
opt_domHelper |
goog.dom.DomHelper |
<optional> |
Optional DOM helper, used for document interaction. |
opt_renderer |
pear.ui.GridCellRenderer |
<optional> |
Optional GridCellRenderer |
- Source:
Extends
Members
-
<static> CSS_CLASS :string
-
Default CSS class to be applied to the root element of cell
Type:
- string
- Source:
-
contentElement_ :Element
-
Element to hold content
Type:
- Element
- Source:
Methods
-
applyFormatting()
-
Returns the text caption or DOM structure displayed in the component.
- Source:
-
createContentElement()
-
Create Content Element
- Source:
-
<protected> decorateElementWithClasses()
-
- Source:
-
disposeInternal()
-
[disposeInternal description]
- Source:
-
enterDocument()
-
Configures the component after its DOM has been rendered, and sets up event handling. Overrides goog.ui.Component#enterDocument.
- Source:
-
exitDocument()
-
Configures the component after its DOM has been rendered, and sets up event handling. Overrides goog.ui.Component#enterDocument.
- Source:
-
getCellData() → {*}
-
Get Cell Data
- Source:
Returns:
data- Type
- *
-
getCellIndex() → {number}
-
- Inherited From:
- Source:
Returns:
- Type
- number
-
getContent() → {goog.ui.ControlContent}
-
Returns the text caption or DOM structure displayed in the component.
- Source:
Returns:
Text caption or DOM structure comprising the component's contents.- Type
- goog.ui.ControlContent
-
getContentElement() → {Element}
-
get Content Element
- Source:
Returns:
[description]- Type
- Element
-
getDataColumn() → {pear.data.Column}
-
Get Data Column Associated with the Cell
- Inherited From:
- Source:
Returns:
Data Column- Type
- pear.data.Column
-
getGrid() → {pear.ui.Grid}
-
Get Instance of Grid , which owns this Cell
- Inherited From:
- Source:
Returns:
- Type
- pear.ui.Grid
-
getRow() → {pear.ui.Row}
-
Returns the component's parent, if any.
- Inherited From:
- Source:
Returns:
The Row Container.- Type
- pear.ui.Row
-
getRowPosition() → {number}
-
- Inherited From:
- Source:
Returns:
- Type
- number
-
removeContent()
-
Remove Content Element
- Source:
-
setCellIndex(index)
-
Parameters:
Name Type Description indexnumber - Inherited From:
- Source:
-
setContentElement(element)
-
set Content Element
Parameters:
Name Type Description elementElement [description] - Source:
-
setDataColumn(datacolumn)
-
Set Data Column
Parameters:
Name Type Description datacolumnpear.data.Column - Inherited From:
- Source:
-
setHighlight(highlight)
-
[setHighlight description]
Parameters:
Name Type Description highlightboolean - Source: