BiGridPanel2
BiGridPanel2 is a layout component based on BiGridPanel. It works similair to a html table. A layout is created by adding rows and cells to the Panel. Cells and rows can have padding, colspan, rowspan, alignment etc. Defaults can also be set on the grid panel itself.
This class extends BiGridPanel and therefore all methods and fields available for BiGridPanel are also available for BiGridPanel2 .
Constructor
new BiGridPanel2 ( )
Parameters
No parameters.
Properties
| Name | Type | get | set | Descripton |
align | String | ![]() | ![]() | Horizontal alignment for cells in the grid. Individual rows and cells can override this. |
cellMatrix | Array | ![]() | Returns a matrix (array of arrays) filled with the BiGridPanel2Cell cells that have been added to the grid panel. This is an example of how the matrix might look: [ [c1,c1,c2], [c1,c1,c2], [c3,c4,null] ] Here c1 has colSpan=rowSpan=2, c2 has rowSpan=2. In the null position no cell has been added. The matrix returned is temporary, changing it may yield strange sideeffects. | |
cellPadding | Number | ![]() | ![]() | Padding for cells in the grid. Individual rows and cells can override this. |
colSizes | Array | ![]() | The calculated colSizes in the grid. Calculated when the children are laid out. | |
defaultColWidth | String | ![]() | ![]() | Default column width to use for columns with no width given by the cols property. (defaults to "*") |
defaultRowHeight | String | ![]() | ![]() | Default row height to use for rows with no height given by the rows property. (defaults to "*") |
gridRows | | ![]() | The rows in the grid panel. | |
rowSizes | Array | ![]() | The calculated rowSizes in the grid. Calculated when the children are laid out. | |
valign | String | ![]() | ![]() | Vertical alignment for cells in the grid. Individual rows and cells can override this. |
Methods
| Name | Description |
add | Adds a row to the grid panel |
remove | Removes a row from the grid panel |
removeAll | Removes all rows from the grid panel |
Events
None.
Static Methods
None.
Static Fields
None.
Remarks
See BiGridPanel for syntax of rows and cols.
Method Details
add
Adds a row to the grid panel
Syntax
object.add ( oRow ) Parameters
| Name | Type | Optional | Default | Descripton |
oRow | | Row to add |
Return Type
void
remove
Removes a row from the grid panel
Syntax
object.remove ( oRow ) Parameters
| Name | Type | Optional | Default | Descripton |
oRow | | Row to remove |
Return Type
void
removeAll
Removes all rows from the grid panel
Syntax
object.removeAll ( ) Parameters
No arguments.
Return Type
void
