public function renderButton()
	{
		try {
			// Renderer function may be used
			return $this->useRenderer();
		} catch (DataGridColumnRendererException $e) {
			// Do not use renderer
		}

		$link = $this->createLink($this->grid, $this->href, $this->params);

		$a = Html::el('a')->href($link);

		$this->tryAddIcon($a, $this->getIcon(), $this->getText());

		if (!empty($this->attributes)) {
			$a->addAttributes($this->attributes);
		}

		$a->addText($this->grid->getTranslator()->translate($this->text));

		if ($this->getTitle()) {
			$a->title($this->grid->getTranslator()->translate($this->getTitle()));
		}

		if ($this->getClass()) {
			$a->class($this->getClass());
		}

		return $a;
	}
public function renderButton()
	{
		try {
			// Renderer function may be used
			return $this->useRenderer();
		} catch (DataGridColumnRendererException $e) {
			// Do not use renderer
		}

		$link = $this->createLink($this->grid, $this->href, $this->params);

		$a = Html::el('a')->href($link);

		$this->tryAddIcon($a, $this->getIcon(), $this->getText());

		if (!empty($this->attributes)) {
			$a->addAttributes($this->attributes);
		}

		$a->addText($this->grid->getTranslator()->translate($this->text));

		if ($this->getTitle()) {
			$a->title($this->grid->getTranslator()->translate($this->getTitle()));
		}

		if ($this->getClass()) {
			$a->class($this->getClass());
		}

		return $a;
	}
public function renderButton ( ) { try { // Renderer function may be used return $ this -> useRenderer ( ) ; } catch ( DataGridColumnRendererException $ e ) { // Do not use renderer } $ link = $ this -> createLink ( $ this -> grid , $ this -> href , $ this -> params ) ; $ a = Html :: el ( 'a' ) -> href ( $ link ) ; $ this -> tryAddIcon ( $ a , $ this -> getIcon ( ) , $ this -> getText ( ) ) ; if ( ! empty ( $ this -> attributes ) ) { $ a -> addAttributes ( $ this -> attributes ) ; } $ a -> addText ( $ this -> grid -> getTranslator ( ) -> translate ( $ this -> text ) ) ; if ( $ this -> getTitle ( ) ) { $ a -> title ( $ this -> grid -> getTranslator ( ) -> translate ( $ this -> getTitle ( ) ) ) ; } if ( $ this -> getClass ( ) ) { $ a -> class ( $ this -> getClass ( ) ) ; } return $ a ; }
Render toolbar button
@return Html
Render toolbar button