Changes between Version 45 and Version 46 of AjaxList
- Timestamp:
- 2010-09-08T13:41:25Z (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AjaxList
v45 v46 124 124 $actions = array( 125 125 array(<action 1 name>, [warning message 1], [restrictions array 1], [controller 1], <function>, [param 1 [, param 2am 3 etc...]]]), 126 array(<action 2 name>, [warning message 2], [restrictions array 2], [controller 2], <function> , [param 1 [, param 2 etc...]]]),126 array(<action 2 name>, [warning message 2], [restrictions array 2], [controller 2], <function> [, param 1 [, param 2 etc...]]]), 127 127 [etc...] 128 128 ); 129 129 }}} 130 * '''Action Name''' - The name of the action shown to the user. Best to decide on one, and leave it be, since this name is referred to by some other parts of Ajax List (Action-type columns, for example). 130 * '''Action Name''' - The name of the action shown to the user. Best to decide on one, and leave it be, since this name is referred to by some other parts of Ajax List (Action-type columns, for example). Required. 131 131 * '''Warning Message''' - A message that will show up, asking the user to confirm the action. Enter {{{""}}} if unused. 132 132 * '''Restrictions''' - An array containing any restrictions on the action based on the entry's map column types, more on this bellow. Enter {{{""}}} if unused. 133 133 * '''Controller''' - If the target controller is ''not'' the same as the controller this Ajax List is in, specify it here. Otherwise, enter {{{""}}}. 134 * '''Param 1,2,3''' - The parameters passed to a controller function. If you specify a {{{Model.column}}} 134 * '''Function''[ - The name of a function to execute in the present controller on the action. Required. 135 * '''Param 1,2,3'''etc... - The parameters passed to a controller function. If you specify a {{{Model.column}}} type string, Ajax List will try to substitute that entry's column for this parameter, meaning that you can specify actions based item id's in the list. If the column is not found, the string will be given at the parameter literally. 136 137 ===== Action Restrictions ===== 138 If an action is restricted for an item, if will be greyed out and disabled when the user right-clicks the action menu 139 135 140 ==== Extra Filters ==== 136 141