public function addButton($label = null, $options = array())
    {
        /** @type Button $but */
        $but = $this->add('Button', $options);
        $but->set($label);
        if ($this->vertical) {
            $but->js(true)->css('margin-top', '-3px');
        }

        return $but;
    }
public function addButton($label = null, $options = array())
    {
        /** @type Button $but */
        $but = $this->add('Button', $options);
        $but->set($label);
        if ($this->vertical) {
            $but->js(true)->css('margin-top', '-3px');
        }

        return $but;
    }
public function addButton ( $ label = null , $ options = array ( ) ) { /** @type Button $but */ $ but = $ this -> add ( 'Button' , $ options ) ; $ but -> set ( $ label ) ; if ( $ this -> vertical ) { $ but -> js ( true ) -> css ( 'margin-top' , '-3px' ) ; } return $ but ; }
Add button to buttonset.

@param string $label   Label of button
@param array  $options Options to pass to button

@return Button
Add button to buttonset .