public function useRenderer($row = null)
	{
		$renderer = $this->getRenderer();

		if ($row instanceof Row) {
			$args = [$row->getItem()];
		} else {
			$args = [];
		}

		if (!$renderer) {
			throw new DataGridColumnRendererException;
		}

		if ($renderer->getConditionCallback()) {
			if (!call_user_func_array($renderer->getConditionCallback(), $args)) {
				throw new DataGridColumnRendererException;
			}

			return call_user_func_array($renderer->getCallback(), $args);
		}

		return call_user_func_array($renderer->getCallback(), $args);
	}
public function useRenderer($row = null)
	{
		$renderer = $this->getRenderer();

		if ($row instanceof Row) {
			$args = [$row->getItem()];
		} else {
			$args = [];
		}

		if (!$renderer) {
			throw new DataGridColumnRendererException;
		}

		if ($renderer->getConditionCallback()) {
			if (!call_user_func_array($renderer->getConditionCallback(), $args)) {
				throw new DataGridColumnRendererException;
			}

			return call_user_func_array($renderer->getCallback(), $args);
		}

		return call_user_func_array($renderer->getCallback(), $args);
	}
public function useRenderer ( $ row = null ) { $ renderer = $ this -> getRenderer ( ) ; if ( $ row instanceof Row ) { $ args = [ $ row -> getItem ( ) ] ; } else { $ args = [ ] ; } if ( ! $ renderer ) { throw new DataGridColumnRendererException ; } if ( $ renderer -> getConditionCallback ( ) ) { if ( ! call_user_func_array ( $ renderer -> getConditionCallback ( ) , $ args ) ) { throw new DataGridColumnRendererException ; } return call_user_func_array ( $ renderer -> getCallback ( ) , $ args ) ; } return call_user_func_array ( $ renderer -> getCallback ( ) , $ args ) ; }
Try to render item with custom renderer
@param  Row|null $row
@return mixed
@throws DataGridColumnRendererException
Try to render item with custom renderer