Changes between Version 17 and Version 18 of AjaxList


Ignore:
Timestamp:
2010-09-02T18:15:52Z (14 years ago)
Author:
Serge Okon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AjaxList

    v17 v18  
    4444
    4545    // Which columns to list, and include data from.
    46     $columns = array();
     46    $columns = array(
     47        array("ListedModel.id"),
     48        array("ListedModel.value"),);
    4749    // The available actions for each column
    4850    $actions = array();
     
    8688
    8789==== Columns ====
    88 The $columns va
     90The $columns variable is an array of arrays. Each entry in the top array described a column. Each column entry is an array itself. The is the general format is the following:
     91{{{
     92$columns = array(
     93    array(<Column.id 1>, <Column Name 1>, <CSS width of column 1>, <column 1 type>> [, column 1 type parameters]),
     94    array(<Column.id 2>, <Column Name 1>, <CSS width of column 2>, <column 2 type>> [, column 2 type parameters]),
     95    [ etc...],
     96    );
     97}}}
     98 * '''Column.id''' -
    8999
    90100==== Actions ====