BiGridPanel
This layout component positions and sizes its children in a simple grid where the columns and rows are decided using string patterns much like the way the rows and cols attribute for HTML framesets decides the size and position of the frames.
This class extends BiComponent and therefore all methods and fields available for BiComponent are also available for BiGridPanel .
Constructor
new BiGridPanel ( [ sRows [ ,sCols [ ,nHGap [ ,nVGap ] ] ] ] )
Parameters
| Name | Type | Optional | Default | Descripton |
sRows | String | ![]() | Row heights pattern | |
sCols | String | ![]() | Column widths pattern | |
nHGap | Number | ![]() | The horizontal gap between columns | |
nVGap | Number | ![]() | The vertical gap between rows |
Properties
Methods
None.
Events
None.
Static Methods
None.
Static Fields
None.
Remarks
The syntax for the rows and cols is similar to how HTML framesets size their frames. These properties take a comma separated string of sizes. Sizes can be of the following formats: 75 : 75 px 25% : 25% of the client size of the BiGridPanel component * : Remaining space 1.5* : Weighted remaining space. This is used when more than one of the sizes contains a '*' to decide how to distribute the size. - : Maximum preferred size of the components Below is the syntax for the cols and rows properties: ROWS = SIZE ( ',' SIZE ) * COLS = SIZE ( ',' SIZE ) * SIZE = NUMBER | NUMBER '%' | '*' | NUMBER '*' | '-'
