Changes between Version 23 and Version 24 of AjaxList


Ignore:
Timestamp:
2010-09-02T19:50:05Z (14 years ago)
Author:
Serge Okon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AjaxList

    v23 v24  
    104104  * ''string'' - The basic type. The value is display just like it appears in the database.
    105105  * ''number'' - Specifies a numerical value. In the present implementation, it acts like a string, but Ajax List could be extended in the future to search for greater or lesser numbers instead of just equivalents . So it's a good idea to specify numerical columns are "number" and not as "string".
    106   * ''map''
     106  * ''map'' - this is a dictionary look-up type. It takes the column entry to be a key, and look it up in an associative array. This array is passes as a Column Type Parameter, following the column type. For example, the following is used in the users controller to translate entries like "A", "S", and "I" to "Admin", "Student", and "Instructor", respectively.
     107   *{{{ array("User.role",       "Role",         "6em",    "map",
     108        array(  "A" => "Admin",  "I" => "Instructor", "S" => "Student")),}}}
    107109==== Actions ====
    108110