Changes between Version 20 and Version 21 of AjaxList
- Timestamp:
- 2010-09-02T18:29:18Z (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AjaxList
v20 v21 98 98 * '''Model.column''' - The CakePHP column id, in the format {{{Model.column}}}. This corresponds to the {{{table.column}}} format of the SQL database. This is the only required column in the column array entry, but it ''must'' be inside the an array, even if it's the only one. 99 99 * '''Column Name''' - The column name will be displayed to the user. It is used in the table headers, as well as the search-by-field descriptions. If this field is left out, the user will see the Column.id instead. 100 * '''CSS width of column''' - This entry is applied to inside the {{{tableColumn.style.width}}} 100 * '''CSS width of column''' - This entry is applied to inside the {{{tableColumn.style.width}}} CSS property of each column. By default, the value "auto" is used, which means that all columns are equally spaced. I would like to recommend that: 101 * The exact width be defined for all columns, but one. That is, leaving one column (who's entries are the lonest) as auto will give the best consistent look of the table as its data changes. 102 * Use "em" units for to define column widths. "em" are about the size of 1 text line height at present zoom level, and scale better than inches of pixels. Example "10em". 101 103 ==== Actions ==== 102 104