Changes between Version 4 and Version 5 of documentation/PythonManual/APIReference
- Timestamp:
- 04/01/08 14:11:51 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/PythonManual/APIReference
v4 v5 425 425 '''class'' ElementDataGrid 426 426 427 ''ElementDataGrid'' derives from ''Element''. The data grid has the following methods :427 ''ElementDataGrid'' derives from ''Element''. The data grid has the following methods and properties: 428 428 429 429 '''AddColumn'''(''fields'', ''formatter'', ''initial_width'', ''header_rml''):: 433 433 Sets the name and table of the new data source to be used by the data grid. 434 434 435 '''rows''':: 436 Returns an array containing all the rows in the data grid. 437 435 438 == ElementDataGridRow == 436 439 437 440 '''class''' ElementDataGridRow 438 441 439 ''ElementDataGridRow'' derives from ''Element''. The data grid row has the following propert y:442 ''ElementDataGridRow'' derives from ''Element''. The data grid row has the following properties: 440 443 441 444 '''row_expanded''':: 442 445 The expanded state of the row, either True or False. 446 447 '''parent_relative_index''':: 448 The index of the row, relative to its parent row. So if you are the third row in your parent, then it will be 3. 449 450 '''table_relative_index''':: 451 The index of the row, relative to the data grid it is in. This takes into account all previous rows and their children. 452 453 '''parent_row''':: 454 The parent row of this row. None if it at the top level. 455 456 '''parent_grid''':: 457 The data grid that this row belongs to.