public function addButton($label = 'Continue')
    {
        if (!is_array($label)) {
            $label = array($label, 'icon-r' => 'right-big');
        }

        /** @type Button $button */
        $button = $this->add('Button', null, 'Button');

        return $button->set($label);
    }
public function addButton($label = 'Continue')
    {
        if (!is_array($label)) {
            $label = array($label, 'icon-r' => 'right-big');
        }

        /** @type Button $button */
        $button = $this->add('Button', null, 'Button');

        return $button->set($label);
    }
public function addButton ( $ label = 'Continue' ) { if ( ! is_array ( $ label ) ) { $ label = array ( $ label , 'icon-r' => 'right-big' ) ; } /** @type Button $button */ $ button = $ this -> add ( 'Button' , null , 'Button' ) ; return $ button -> set ( $ label ) ; }
Adds Button on the right side of the box for follow-up action.

@param array|string $label

@return Button
Adds Button on the right side of the box for follow - up action .