grid\GridView guessColumns()

guessColumns() protected method This function tries to guess the columns to show from the given data if $columns are not explicitly specified. protected void guessColumns ( )

grid\GridView getClientOptions()

getClientOptions() protected method Returns the options for the grid view JS widget. protected array getClientOptions ( )return array The options

grid\GridView createDataColumn()

createDataColumn() protected method Creates a yii\grid\DataColumn object based on a string in the format of "attribute:format:label". protected yii\grid\DataColumn createDataColumn ( $text )$text string The column specification string return yii\grid\DataColumn The column instance throws yii\base\InvalidConfigException if the column specification is invalid

grid\GridView $tableOptions

$tableOptions public property The HTML attributes for the grid table element. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $tableOptions = ['class' => 'table table-striped table-bordered']

grid\GridView $showOnEmpty

$showOnEmpty public property Whether to show the grid view if $dataProvider returns no data. public boolean $showOnEmpty = true

grid\GridView $showHeader

$showHeader public property Whether to show the header section of the grid table. public boolean $showHeader = true

grid\GridView $showFooter

$showFooter public property Whether to show the footer section of the grid table. public boolean $showFooter = false

grid\GridView $rowOptions

$rowOptions public property The HTML attributes for the table body rows. This can be either an array specifying the common HTML attributes for all body rows, or an anonymous function that returns an array of the HTML attributes. The anonymous function will be called once for every data model returned by $dataProvider. It should have the following signature: function ($model, $key, $index, $grid) $model: the current data model being rendered $key: the key value associated with the current

grid\GridView $options

$options public property The HTML attributes for the container tag of the grid view. The "tag" element specifies the tag name of the container element and defaults to "div". See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = ['class' => 'grid-view']

grid\GridView $layout

$layout public property 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(). {errors}: the filter model error summary. See renderErrors(). {items}: the list items. See renderItems(). {sorter}: the sorter. See renderSorter(). {pager}: the pager. See renderPager(). public string $layout = "{summary}\n{items}\n{pager}"