Support Joomla!

references:joomla.framework:html:jbutton-render

Table of Contents

render

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage HTML Class JButton Method render Reference render() Never Work in Progress

Renders the button. Retrieves the results from the fetchButton() method and encloses it in a <td> tag with an ‘id’ attribute that is retrieved from the fetchId() method.

Syntax

void render ( &$definition )

&$definition array is an array that contains parameters used to call the fetchButton() and fetchId() methods.

Examples

Example

$bar =& new JToolBar( 'My ToolBar' );
$button =& $bar->loadButtonType( 'Standard' );
$params = array( 'Standard', 'send', 'Activate', 'activate', false );
echo $button->render( $params );

might produce:

Result

<td class="button" id="My ToolBar-send">

<a onclick="javascript:submitbutton('activate')" class="toolbar">
<div class="icon-32-send" title="Activate" type="Standard">
</div>
Activate
</a>
</td>

Discussion

Full name:
E-Mail:
 
references/joomla.framework/html/jbutton-render.txt (903 views) · Last modified: 2007/09/22 02:47