API16

JToolBar/render: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Render. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Descripti...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Render.
Render.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JToolBar/render|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JToolBar/render}}
 
 


===Syntax===
===Syntax===
Line 44: Line 42:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JToolBar/render|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JToolBar/render}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=render
  category=render
  category=JToolBar
  category=JToolBar
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:13, 25 March 2017

Description

Render.



Syntax

render()


Returns

string HTML

Defined in

libraries/joomla/html/toolbar.php

Importing

jimport( 'joomla.html.toolbar' );

Source Body

public function render()
{
        $html = array ();

        // Start toolbar div.
        $html[] = '<div class="toolbar-list" id="'.$this->_name.'">';
        $html[] = '<ul>';

        // Render each button in the toolbar.
        foreach ($this->_bar as $button) {
                $html[] = $this->renderButton($button);
        }

        // End toolbar div.
        $html[] = '</ul>';
        $html[] = '<div class="clr"></div>';
        $html[] = '</div>';

        return implode("\n", $html);
}



Examples

Code Examples