Changes between Version 4 and Version 5 of documentation/PythonManual/APIReference

Show
Ignore:
Author:
robertc (IP: 203.96.63.172)
Timestamp:
04/01/08 14:11:51 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/PythonManual/APIReference

    v4 v5  
    425425'''class'' ElementDataGrid 
    426426 
    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: 
    428428 
    429429 '''AddColumn'''(''fields'', ''formatter'', ''initial_width'', ''header_rml''):: 
    433433   Sets the name and table of the new data source to be used by the data grid. 
    434434 
     435 '''rows''':: 
     436   Returns an array containing all the rows in the data grid. 
     437 
    435438== ElementDataGridRow == 
    436439 
    437440'''class''' ElementDataGridRow 
    438441 
    439 ''ElementDataGridRow'' derives from ''Element''. The data grid row has the following property: 
     442''ElementDataGridRow'' derives from ''Element''. The data grid row has the following properties: 
    440443 
    441444 '''row_expanded''':: 
    442445   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.