Commit 50918f73 by Crisu83

added visible property for buttons in button groups (fixes #100)

parent 4c62eb36
......@@ -77,6 +77,9 @@ class TbButtonGroup extends CWidget
foreach ($this->buttons as $button)
{
if (isset($button['visible']) && !$button['visible'] === false)
continue;
$this->controller->widget('bootstrap.widgets.TbButton', array(
'buttonType'=>isset($button['buttonType']) ? $button['buttonType'] : $this->buttonType,
'type'=>isset($button['type']) ? $button['type'] : $this->type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment