JHtmlJGrid::state: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Returns a state on a grid. | Returns a state on a grid. | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function state ( | ||
$states | |||
$value | |||
$i | |||
$prefix= '' | |||
$enabled=true | |||
$translate=true | |||
$checkbox='cb' | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 57: | Line 60: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' The Html code | |||
The Html code | * '''Defined''' on line 84 of libraries/joomla/html/html/jgrid.php | ||
* '''Since''' {{JVer|1. }} | |||
libraries/joomla/html/html/jgrid.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JHtmlJGrid::state source code''' on [[jplatform:html/html/jgrid.php#cl-76|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JHtmlJGrid|JHtmlJGrid]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]] | |||
* | * [[API17:JHtmlJGrid::state|Other versions of JHtmlJGrid::state]] | ||
* [[JHtmlJGrid::state|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JHtmlJGrid::state | category=JHtmlJGrid::state | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:12, 25 March 2017
JHtmlJGrid::state
Description
Returns a state on a grid.
public static function state (
$states
$value
$i
$prefix= ''
$enabled=true
$translate=true
$checkbox='cb'
)
| 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. |
See also
JHtmlJGrid::state source code on BitBucket
Class JHtmlJGrid
Subpackage Html- Other versions of JHtmlJGrid::state
User contributed notes
Code Examples