public function setItemsDetail($detail = true, $primary_where_column = null)
	{
		if ($this->isSortable()) {
			throw new DataGridException('You can not use both sortable datagrid and items detail.');
		}

		$this->items_detail = new Column\ItemDetail(
			$this,
			$primary_where_column ?: $this->primary_key
		);

		if (is_string($detail)) {
			/**
			 * Item detail will be in separate template
			 */
			$this->items_detail->setType('template');
			$this->items_detail->setTemplate($detail);

		} elseif (is_callable($detail)) {
			/**
			 * Item detail will be rendered via custom callback renderer
			 */
			$this->items_detail->setType('renderer');
			$this->items_detail->setRenderer($detail);

		} elseif ($detail === true) {
			/**
			 * Item detail will be rendered probably via block #detail
			 */
			$this->items_detail->setType('block');

		} else {
			throw new DataGridException(
				'::setItemsDetail() can be called either with no parameters or with parameter = template path or callable renderer.'
			);
		}

		return $this->items_detail;
	}
public function setItemsDetail($detail = true, $primary_where_column = null)
	{
		if ($this->isSortable()) {
			throw new DataGridException('You can not use both sortable datagrid and items detail.');
		}

		$this->items_detail = new Column\ItemDetail(
			$this,
			$primary_where_column ?: $this->primary_key
		);

		if (is_string($detail)) {
			/**
			 * Item detail will be in separate template
			 */
			$this->items_detail->setType('template');
			$this->items_detail->setTemplate($detail);

		} elseif (is_callable($detail)) {
			/**
			 * Item detail will be rendered via custom callback renderer
			 */
			$this->items_detail->setType('renderer');
			$this->items_detail->setRenderer($detail);

		} elseif ($detail === true) {
			/**
			 * Item detail will be rendered probably via block #detail
			 */
			$this->items_detail->setType('block');

		} else {
			throw new DataGridException(
				'::setItemsDetail() can be called either with no parameters or with parameter = template path or callable renderer.'
			);
		}

		return $this->items_detail;
	}
public function setItemsDetail ( $ detail = true , $ primary_where_column = null ) { if ( $ this -> isSortable ( ) ) { throw new DataGridException ( 'You can not use both sortable datagrid and items detail.' ) ; } $ this -> items_detail = new Column \ ItemDetail ( $ this , $ primary_where_column ? : $ this -> primary_key ) ; if ( is_string ( $ detail ) ) { /**
			 * Item detail will be in separate template
			 */ $ this -> items_detail -> setType ( 'template' ) ; $ this -> items_detail -> setTemplate ( $ detail ) ; } elseif ( is_callable ( $ detail ) ) { /**
			 * Item detail will be rendered via custom callback renderer
			 */ $ this -> items_detail -> setType ( 'renderer' ) ; $ this -> items_detail -> setRenderer ( $ detail ) ; } elseif ( $ detail === true ) { /**
			 * Item detail will be rendered probably via block #detail
			 */ $ this -> items_detail -> setType ( 'block' ) ; } else { throw new DataGridException ( '::setItemsDetail() can be called either with no parameters or with parameter = template path or callable renderer.' ) ; } return $ this -> items_detail ; }
Items can have thair detail - toggled
@param mixed $detail callable|string|bool
@param string|null $primary_where_column
@return Column\ItemDetail
Items can have thair detail - toggled