Changes between Version 17 and Version 18 of AjaxList
- Timestamp:
- 2010-09-02T18:15:52Z (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AjaxList
v17 v18 44 44 45 45 // Which columns to list, and include data from. 46 $columns = array(); 46 $columns = array( 47 array("ListedModel.id"), 48 array("ListedModel.value"),); 47 49 // The available actions for each column 48 50 $actions = array(); … … 86 88 87 89 ==== Columns ==== 88 The $columns va 90 The $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''' - 89 99 90 100 ==== Actions ====