Code: Select all
$bar->appendButton( 'Popup', 'test', 'Test', $url, $width, $height );
1/ Don't know how to force a list select checkbox like in the appendButton('Standard', $icon, $alt, $task, $listSelect) that displays a message if no row are checked
2/ The width/height that where workin in J2.5 version don't work anymore
I tried something like this without success:
Code: Select all
JHtml::_('bootstrap.modal');
$toolbar = JToolBar::getInstance('toolbar');
$layout = new JLayoutFile('joomla.toolbar.popup');
// Render the popup button
$dhtml = $layout->render(array('name' => 'test', 'text' => JText::_('Custom button'), 'class' => 'icon-archive'));
$toolbar->appendButton('Custom', $dhtml);
Thanks