new Row(grid, height, opt_domHelper)
Row - represent row in a grid. All kind of rows (datarow,footerrow)
must inherit this class
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
grid |
pear.ui.Grid | ||
height |
number | ||
opt_domHelper |
goog.dom.DomHelper |
<optional> |
DOM helper, used for document interaction. |
Extends
- goog.ui.Component
Members
-
<static> CSS_CLASS :string
-
Default CSS class to be applied to the root element
Type:
- string
Methods
-
addCell(cell, opt_render)
-
add Cell
Parameters:
Name Type Argument Description cellpear.ui.Cell opt_renderboolean <optional>
Whether the new child should be rendered immediately after being added (defaults to false). -
disposeInternal()
-
enterDocument()
-
getCellAt(index) → {pear.ui.Cell}
-
get Child Cell at
Parameters:
Name Type Description indexnumber Returns:
- Type
- pear.ui.Cell
-
getCellComputedWidth(index) → {number}
-
return computed cell width
Parameters:
Name Type Description indexnumber of cell Returns:
- Type
- number
-
getComputedHeight() → {number}
-
get computed height of row
Returns:
- Type
- number
-
getDataRowView() → {pear.data.RowView}
-
Returns:
- Type
- pear.data.RowView
-
getGrid() → {pear.ui.Grid}
-
Get Instance of Grid , which owns this Row
Returns:
- Type
- pear.ui.Grid
-
getHeaderCellByColumnId(id) → {pear.ui.GridHeaderCell}
-
Get Header Cell
Parameters:
Name Type Description idstring Column Id - Source:
Returns:
-
getHeaderCellByDataField(fieldName) → {pear.ui.GridHeaderCell}
-
Get Header Cell By Data Field
Parameters:
Name Type Description fieldNamestring - Source:
Returns:
-
getHeight() → {number}
-
get height of row
Returns:
- Type
- number
-
getLocationTop() → {number}
-
Returns:
- Type
- number
-
getNodeOwnerControl(node) → {pear.ui.GridCell}
-
Returns the child control that owns the given DOM node, or null if no such control is found.
Parameters:
Name Type Description nodeNode DOM node whose owner is to be returned. Returns:
Control hosted in the Component to which the node belongs (if found)- Type
- pear.ui.GridCell
-
getRowPosition() → {number}
-
get position of row
Returns:
- Type
- number
-
getWidth() → {number}
-
get width of row
Returns:
- Type
- number
-
setDataRowView(rowview)
-
set Data RowView
Parameters:
Name Type Description rowviewpear.data.RowView -
setGrid(grid)
-
setGrid
Parameters:
Name Type Description gridpear.ui.Grid [description] -
setHeight(height)
-
set height of row
Parameters:
Name Type Description heightnumber -
setPosition()
-
setRowPosition(pos)
-
set positon of row
Parameters:
Name Type Description posnumber