public function addToolbarButton($href, $text = '', $params = [])
	{
		if (isset($this->toolbar_buttons[$href])) {
			throw new DataGridException("There is already toolbar button at key [$href] defined.");
		}

		return $this->toolbar_buttons[$href] = new ToolbarButton($this, $href, $text, $params);
	}
public function addToolbarButton($href, $text = '', $params = [])
	{
		if (isset($this->toolbar_buttons[$href])) {
			throw new DataGridException("There is already toolbar button at key [$href] defined.");
		}

		return $this->toolbar_buttons[$href] = new ToolbarButton($this, $href, $text, $params);
	}
public function addToolbarButton ( $ href , $ text = '' , $ params = [ ] ) { if ( isset ( $ this -> toolbar_buttons [ $ href ] ) ) { throw new DataGridException ( "There is already toolbar button at key [$href] defined." ) ; } return $ this -> toolbar_buttons [ $ href ] = new ToolbarButton ( $ this , $ href , $ text , $ params ) ; }
Add toolbar button
@param  string  $href
@param  string  $text
@param  array   $params
@return ToolbarButton
@throws DataGridException
Add toolbar button