| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
HTML |
JButton |
render |
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.
void render ( &$definition )
| &$definition | array | is an array that contains parameters used to call the fetchButton() and fetchId() methods. |
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>