API17

JHtmlJGrid::state: Difference between revisions

From Joomla! Documentation

m See also: moving preparation
m clean up
Line 4: Line 4:
Returns a state on a grid.  
Returns a state on a grid.  


{{Description:JHtmlJGrid::state}}
{{subst:Description:JHtmlJGrid::state}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JHtmlJGrid::state|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
public static function state (
public static function state (
Line 70: Line 68:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]]
* [[API17:JHtmlJGrid::state|Other versions of JHtmlJGrid::state]]
* [[API17:JHtmlJGrid::state|Other versions of JHtmlJGrid::state]]
{{SeeAlso:JHtmlJGrid::state}}
{{subst:SeeAlso:JHtmlJGrid::state}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid::state|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 15:37, 24 March 2017

Joomla 11.1 JHtmlJGrid::state

Description

Returns a state on a grid.

{{subst:Description:JHtmlJGrid::state}}

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.
  • Returns The Html code
  • Defined on line 84 of libraries/joomla/html/html/jgrid.php
  • Since Joomla 1.

See also

{{subst:SeeAlso:JHtmlJGrid::state}}

User contributed notes

<CodeExamplesForm />