mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: set default format for gridview to text
This commit is contained in:
@@ -35,8 +35,10 @@ class DataColumn extends Column
|
|||||||
/**
|
/**
|
||||||
* @var string in which format should the value of each data model be displayed as (e.g. "text", "html").
|
* @var string in which format should the value of each data model be displayed as (e.g. "text", "html").
|
||||||
* Supported formats are determined by the [[GridView::formatter|formatter]] used by the [[GridView]].
|
* Supported formats are determined by the [[GridView::formatter|formatter]] used by the [[GridView]].
|
||||||
|
* Default format is "text" which will format the value as an HTML-encoded plain text when
|
||||||
|
* [[\yii\base\Formatter]] or [[\yii\i18n\Formatter]] is used.
|
||||||
*/
|
*/
|
||||||
public $format;
|
public $format = 'text';
|
||||||
/**
|
/**
|
||||||
* @var boolean whether to allow sorting by this column. If true and [[attribute]] is found in
|
* @var boolean whether to allow sorting by this column. If true and [[attribute]] is found in
|
||||||
* the sort definition of [[GridView::dataProvider]], then the header cell of this column
|
* the sort definition of [[GridView::dataProvider]], then the header cell of this column
|
||||||
|
|||||||
Reference in New Issue
Block a user