prop('disabled'); $size = $this->prop('size'); $className = 'btn-group'; if(!empty($disabled)) $className .= ' disabled'; if(!empty($size)) $className .= " size-$size"; return $className; } protected function build() { $items = $this->prop('items'); $className = $this->getclassName(); return div ( setClass($className), set($this->getRestProps()), is_array($items) ? array_map(array($this, 'onBuildItem'), $items) : null, $this->children() ); } }