\TbGridView

## Bootstrap Zii grid view.

Summary

Methods
Properties
Constants
init()
$type
$pagerCssClass
$pager
$cssFile
$responsiveTable
$extraParams
$dataProvider
TYPE_STRIPED
TYPE_BORDERED
TYPE_CONDENSED
TYPE_HOVER
initColumns()
createDataColumn()
writeResponsiveCss()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TYPE_STRIPED

TYPE_STRIPED

TYPE_BORDERED

TYPE_BORDERED

TYPE_CONDENSED

TYPE_CONDENSED

TYPE_HOVER

TYPE_HOVER

Properties

$type

$type : string|array

Type

string|array — the table type. Valid values are 'striped', 'bordered', 'condensed' and/or 'hover'.

$pagerCssClass

$pagerCssClass : string

Type

string — the CSS class name for the pager container. Defaults to 'pagination'.

$pager

$pager : array

Type

array — the configuration for the pager. Defaults to <code>array('class'=>'ext.booster.widgets.TbPager')</code>.

$cssFile

$cssFile : string

Type

string — the URL of the CSS file used by this grid view. Defaults to false, meaning that no CSS will be included.

$responsiveTable

$responsiveTable : bool

Type

bool — whether to make the grid responsive

$extraParams

$extraParams : array

Type

array — of additional parameters to pass to values

$dataProvider

$dataProvider : \CActiveDataProvider

the data provider for the view.

Type

\CActiveDataProvider

Methods

init()

init()

### .init()

Initializes the widget.

initColumns()

initColumns()

### .initColumns()

Creates column objects and initializes them.

createDataColumn()

createDataColumn(mixed $text) : \TbDataColumn|\CDataColumn

### .createDataColumn()

Creates a column based on a shortcut column specification string.

Parameters

mixed $text

the column specification string

Throws

\CException

if the column format is incorrect

Returns

\TbDataColumn|\CDataColumn —

the column instance

writeResponsiveCss()

writeResponsiveCss()

### .writeResponsiveCss()

Writes responsiveCSS