API17

Difference between revisions of "JHtmlJGrid::action"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHtmlJGrid::action|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHtmlJGrid::action|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JHtmlJGrid::action ($i, $task, $prefix='', $text='', $active_title='', $inactive_title='', $tip=false, $active_class='', $inactive_class='', $enabled=true, $translate=true, $checkbox='cb')
+
public static function action (
 +
        $i
 +
        $task
 +
        $prefix=''
 +
        $text=''
 +
        $active_title=''
 +
        $inactive_title=''
 +
        $tip=false
 +
        $active_class=''
 +
        $inactive_class=''
 +
        $enabled=true
 +
        $translate=true
 +
        $checkbox='cb'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 82: Line 92:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' The Html code
The Html code
+
* '''Defined''' on line 42 of libraries/joomla/html/html/jgrid.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/html/html/jgrid.php (line 42)
 
* see source code in [[jplatform:html/html/jgrid.php#cl-42|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JHtmlJGrid::action source code''' on [[jplatform:html/html/jgrid.php#cl-34|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHtmlJGrid/11.1|JHtmlJGrid]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JHtmlJGrid::action|Other versions of JHtmlJGrid::action]]
 +
{{SeeAlso:JHtmlJGrid::action}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid::action|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid::action|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHtmlJGrid/11.1|JHtmlJGrid]]
+
===User contributed notes===
* [[JHtmlJGrid::action|Other versions of this method]]
 
{{SeeAlso:JHtmlJGrid::action}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 103: Line 112:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHtmlJGrid]][[Category:JHtmlJGrid::action]]</noinclude>
 
<noinclude>[[Category:JHtmlJGrid]][[Category:JHtmlJGrid::action]]</noinclude>

Revision as of 21:07, 27 April 2011

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JHtmlJGrid::action[edit]

Description[edit]

Returns an action on a grid.

Template:Description:JHtmlJGrid::action [Edit Descripton]

public static function action (
        $i
        $task
        $prefix=''
        $text=''
        $active_title=''
        $inactive_title=''
        $tip=false
        $active_class=''
        $inactive_class=''
        $enabled=true
        $translate=true
        $checkbox='cb'
)
Parameter Type Default Description
$i int The row index
$task string The task to fire
$prefix array An optional task prefix or an array of options
$text string An optional text to display
$active_title string An optional active tooltip to display if $enable is true
$inactive_title string An optional inactive tooltip to display if $enable is true
$tip boolean false An optional setting for tooltip
$active_class string An optional active html class
$inactive_class string An optional inactive html class
$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 42 of libraries/joomla/html/html/jgrid.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JHtmlJGrid::action [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />