JToolBar/appendButton: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Set a value
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Set a value | Set a value | ||
===Syntax=== | ===Syntax=== | ||
| Line 31: | Line 29: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=appendButton | category=appendButton | ||
category=JToolBar | category=JToolBar | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:13, 25 March 2017
Description
Set a value
Syntax
appendButton()
Returns
string The set value.
Defined in
libraries/joomla/html/toolbar.php
Importing
jimport( 'joomla.html.toolbar' );
Source Body
public function appendButton()
{
// Push button onto the end of the toolbar array.
$btn = func_get_args();
array_push($this->_bar, $btn);
return true;
}
Examples
Code Examples