BiGridDataModel
This data model takes an array of arrays containing the text for a grid. This data model is to be used with BiTreeView
This class extends BiTreeViewDataModel and therefore all methods and fields available for BiTreeViewDataModel are also available for BiGridDataModel .
Constructor
new BiGridDataModel ( oData )
Parameters
| Name | Type | Optional | Default | Descripton |
oData | Object[][] | Optional matrix to use as the data |
Properties
None.
Methods
| Name | Description |
getDataAt | This returns the data at row y |
insertRowAt | inserts a new object into the tree rows |
removeRowAt | removes the row at the given row index |
setDataAt | Sets the data at row y |
Events
None.
Static Methods
None.
Static Fields
None.
Remarks
None.
Method Details
getDataAt
This returns the data at row y
Syntax
object.getDataAt ( y ) Parameters
| Name | Type | Optional | Default | Descripton |
y | Number | The index of the row |
Return Type
Object[]
insertRowAt
inserts a new object into the tree rows
Syntax
object.insertRowAt ( obj,y ) Parameters
| Name | Type | Optional | Default | Descripton |
obj | Object | the object describing the data | ||
y | Number | the index of the row where to insert |
Return Type
void
removeRowAt
removes the row at the given row index
Syntax
object.removeRowAt ( y ) Parameters
| Name | Type | Optional | Default | Descripton |
y | Number | the index of the row to remove |
Return Type
void
setDataAt
Sets the data at row y
Syntax
object.setDataAt ( y,oData ) Parameters
| Name | Type | Optional | Default | Descripton |
y | Number | The index of the row | ||
oData | Object[] | The new data |
Return Type
Object[]