Commits

Christoffer Niska committed 18a0c79

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

Comments (0)

Files changed (1)

widgets/TbButtonGroup.php

 
 		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,