Commit 786163c1 authored by Qiang Xue's avatar Qiang Xue

Fixes #1075: changed the default value of GridView::empty.

parent e4299afa
...@@ -88,6 +88,11 @@ class GridView extends BaseListView ...@@ -88,6 +88,11 @@ class GridView extends BaseListView
* @var boolean whether to show the footer section of the grid table. * @var boolean whether to show the footer section of the grid table.
*/ */
public $showFooter = false; public $showFooter = false;
/**
* @var string|boolean the HTML content to be displayed when [[dataProvider]] does not have any data.
* If false, the grid view will still be displayed (without body content though).
*/
public $empty = false;
/** /**
* @var array|Formatter the formatter used to format model attribute values into displayable texts. * @var array|Formatter the formatter used to format model attribute values into displayable texts.
* This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]] * This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment