JHtmlJGrid::state
Returns a state on a grid
Signature
public function state(array
$states,
[integer
$value = '',
[integer
$i = '',
[string|array
$prefix = '',
[boolean
$enabled = true,
[boolean
$translate = true,
[string
$checkbox = 'cb']]]]]] )
Parameters
-
$states
- array of value/state. Each state is an array of the form
-
$value
- The state value.
-
$i
- The row index
-
$prefix
- An optional task prefix or an array of options
-
$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