Browse Source

Removed sorter from the default display of ListView.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
02e3b451be
  1. 10
      framework/yii/grid/GridView.php
  2. 2
      framework/yii/widgets/ListViewBase.php

10
framework/yii/grid/GridView.php

@ -124,16 +124,6 @@ class GridView extends ListViewBase
* Both "format" and "label" are optional. They will take default values if absent. * Both "format" and "label" are optional. They will take default values if absent.
*/ */
public $columns = array(); public $columns = array();
/**
* @var string the layout that determines how different sections of the list view should be organized.
* The following tokens will be replaced with the corresponding section contents:
*
* - `{summary}`: the summary section. See [[renderSummary()]].
* - `{items}`: the list items. See [[renderItems()]].
* - `{sorter}`: the sorter. See [[renderSorter()]].
* - `{pager}`: the pager. See [[renderPager()]].
*/
public $layout = "{items}\n{summary}\n{pager}";
public $emptyCell = ' '; public $emptyCell = ' ';
/** /**
* @var \yii\base\Model the model that keeps the user-entered filter data. When this property is set, * @var \yii\base\Model the model that keeps the user-entered filter data. When this property is set,

2
framework/yii/widgets/ListViewBase.php

@ -66,7 +66,7 @@ abstract class ListViewBase extends Widget
* - `{sorter}`: the sorter. See [[renderSorter()]]. * - `{sorter}`: the sorter. See [[renderSorter()]].
* - `{pager}`: the pager. See [[renderPager()]]. * - `{pager}`: the pager. See [[renderPager()]].
*/ */
public $layout = "{summary}\n{sorter}\n{items}\n{pager}"; public $layout = "{summary}\n{items}\n{pager}";
/** /**

Loading…
Cancel
Save