API16

Difference between revisions of "JHtmlJGrid/orderUp"

From Joomla! Documentation

< API16:JHtmlJGrid
(New page: ===Description=== Create a order-up action icon. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowik...)
 
m (removing red link to edit, no existant pages)
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHtmlJGrid/orderUp|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JHtmlJGrid/orderUp}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 63: Line 63:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid/orderUp|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JHtmlJGrid/orderUp}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 78: Line 78:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API16]]

Revision as of 21:57, 13 May 2013

The "API16" 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.

Description[edit]

Create a order-up action icon.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

static orderUp($i, $task, $enabled=true, $alt= 'JGrid_Move_Up')
Parameter Name Default Value Description
$i The row index.
$task The task to fire.
$enabled true True to show the icon.
$alt 'JGrid_Move_Up' The image alternate text string.

Returns[edit]

string The HTML for the IMG tag.

Defined in[edit]

libraries/joomla/html/html/jgrid.php

Importing[edit]

jimport( 'joomla.html.html.jgrid' );

Source Body[edit]

public static function orderUp($i, $task, $enabled = true, $alt = 'JGrid_Move_Up')
{
        $alt = JText::_($alt);

        // TODO: Deal with hardcoded links.
        if ($enabled)
        {
                $html   = '<a href="#reorder" onclick="return listItemTask(\'cb'.$i.'\',\''.$task.'\')" title="'.$alt.'">';
                $html   .= JHTML::_('image','admin/uparrow.png', $alt, array( 'width' => 16, 'height' => 16, 'border' => 0), true);
                $html   .= '</a>';
        }
        else {
                $html   = JHTML::_('image','admin/uparrow0.png', $alt, array( 'width' => 16, 'height' => 16, 'border' => 0), true);
        }
        return $html;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

<CodeExamplesForm />