Difference between revisions of "JHtmlJGrid::state"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (JoomlaWikiBot moved page JHtmlJGrid::state/11.1 to API17:JHtmlJGrid::state without leaving a redirect: Robot: Moved page)
(No difference)

Revision as of 18:46, 10 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JHtmlJGrid::state


Returns a state on a grid.

Description:JHtmlJGrid::state [Edit Descripton]

public static function state (
        $prefix= ''
Parameter Type Default Description
$states array array of value/state. Each state is an array of the form (task, text, title,html active class, html inactive class) or ('task'=>task, 'text'=>text, 'active_title'=>active title, 'inactive_title'=>inactive title, 'tip'=>boolean, 'active_class'=>html active class, 'inactive_class'=>html inactive class)
$value int The state value.
$i int The row index
$prefix array An optional task prefix or an array of options
$enabled boolean true An optional setting for access control on the action.
$translate boolean true An optional setting for translation.
$checkbox string 'cb' An optional prefix for checkboxes.
  • Returns The Html code
  • Defined on line 84 of libraries/joomla/html/html/jgrid.php
  • Since Joomla 1.

See also

SeeAlso:JHtmlJGrid::state [Edit See Also]

User contributed notes

<CodeExamplesForm />