LimeSurvey API - Master branch

TbGridView extends CGridView
in package

Bootstrap Zii grid view.

Table of Contents

Properties

$cssFile  : string
$pager  : array<string|int, mixed>
$template  : string
$type  : string|array<string|int, mixed>

Methods

init()  : mixed
Initializes the widget.
createDataColumn()  : TbDataColumn|CDataColumn
Creates a column based on a shortcut column specification string.
initColumns()  : mixed
Creates column objects and initializes them.

Properties

$cssFile

public string $cssFile = \false

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

$pager

public array<string|int, mixed> $pager = array('class' => '\\TbPager')

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

$template

public string $template = "{items}\n<div class=\"row-fluid\"><div class=\"span6\">{pager}</div><div class=\"span6\">{summary}</div></div>"

the template to be used to control the layout of various sections in the view.

$type

public string|array<string|int, mixed> $type

the table style. Valid values are TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED and/or TbHtml::GRID_TYPE_HOVER.

Methods

init()

Initializes the widget.

public init() : mixed

createDataColumn()

Creates a column based on a shortcut column specification string.

protected createDataColumn(mixed $text) : TbDataColumn|CDataColumn
Parameters
$text : mixed

the column specification string

Tags
throws
CException

if the column format is incorrect

Return values
TbDataColumn|CDataColumn

the column instance

initColumns()

Creates column objects and initializes them.

protected initColumns() : mixed

        
On this page

Search results