PHP Class TbGridView

Inheritance: extends CGridView
Mostrar archivo Open project: yinhe/yincart Class Usage Examples

Public Properties

Property Type Description
$cssFile the URL of the CSS file used by this grid view. Defaults to false, meaning that no CSS will be included.
$extraParams of additional parameters to pass to values
$pager the configuration for the pager. Defaults to array('class'=>'ext.bootstrap.widgets.TbPager').
$pagerCssClass the CSS class name for the pager container. Defaults to 'pagination'.
$responsiveTable whether to make the grid responsive
$type the table type. Valid values are 'striped', 'bordered', 'condensed' and/or 'hover'.

Public Methods

Method Description
init ( ) ### .init()

Protected Methods

Method Description
createDataColumn ( mixed $text ) : TbDataColumn | CDataColumn ### .createDataColumn()
initColumns ( ) ### .initColumns()
writeResponsiveCss ( ) ### .writeResponsiveCss()

Method Details

createDataColumn() protected method

Creates a column based on a shortcut column specification string.
protected createDataColumn ( mixed $text ) : TbDataColumn | CDataColumn
$text mixed the column specification string
return TbDataColumn | CDataColumn the column instance

init() public method

Initializes the widget.
public init ( )

initColumns() protected method

Creates column objects and initializes them.
protected initColumns ( )

writeResponsiveCss() protected method

Writes responsiveCSS
protected writeResponsiveCss ( )

Property Details

$cssFile public_oe property

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

$extraParams public_oe property

of additional parameters to pass to values
public $extraParams

$pager public_oe property

the configuration for the pager. Defaults to array('class'=>'ext.bootstrap.widgets.TbPager').
public $pager

$pagerCssClass public_oe property

the CSS class name for the pager container. Defaults to 'pagination'.
public $pagerCssClass

$responsiveTable public_oe property

whether to make the grid responsive
public $responsiveTable

$type public_oe property

the table type. Valid values are 'striped', 'bordered', 'condensed' and/or 'hover'.
public $type