JHtmlJGrid::action
Returns an action on a grid
Signature
public function action(integer
$i,
[string
$task = '',
[string|array
$prefix = '',
[string
$text = '',
[string
$active_title = '',
[string
$inactive_title = '',
[boolean
$tip = false,
[string
$active_class = '',
[string
$inactive_class = '',
[boolean
$enabled = true,
[boolean
$translate = true,
[string
$checkbox = 'cb']]]]]]]]]]] )
Parameters
-
$i
- The row index
-
$task
- The task to fire
-
$prefix
- An optional task prefix or an array of options
-
$text
- An optional text to display [unused - @deprecated 4.0]
-
$active_title
- An optional active tooltip to display if $enable is true
-
$inactive_title
- An optional inactive tooltip to display if $enable is true
-
$tip
- An optional setting for tooltip
-
$active_class
- An optional active HTML class
-
$inactive_class
- An optional inactive HTML class
-
$enabled
- An optional setting for access control on the action.
-
$translate
- An optional setting for translation.
-
$checkbox
- An optional prefix for checkboxes.
Returns
- string
- The HTML markup