Overview

Packages

  • bootstrap
    • behaviors
    • components
    • form
    • gii
    • helpers
    • widgets

Classes

  • TbActiveForm
  • TbAffix
  • TbAlert
  • TbBreadcrumb
  • TbButtonColumn
  • TbCollapse
  • TbDataColumn
  • TbDetailView
  • TbGridView
  • TbHeroUnit
  • TbListView
  • TbModal
  • TbNav
  • TbNavbar
  • TbPager
  • TbScrollspy
  • TbTabs
  • TbThumbnails
  • TbTypeAhead
  • Overview
  • Package
  • Class
  • Tree

Class TbGridView

Bootstrap Zii grid view.

CGridView
Extended by TbGridView
Package: bootstrap\widgets
Copyright: Copyright © Christoffer Niska 2013-
License: New BSD License
Author: Antonio Ramirez <ramirez.cobos@gmail.com>
Author: Christoffer Niska <ChristofferNiska@gmail.com>
Located at widgets/TbGridView.php
Methods summary
public
# init( )

Initializes the widget.

Initializes the widget.

protected
# initColumns( )

Creates column objects and initializes them.

Creates column objects and initializes them.

protected TbDataColumn|CDataColumn
# createDataColumn( mixed $text )

Creates a column based on a shortcut column specification string.

Creates a column based on a shortcut column specification string.

Parameters

$text
mixed
$text the column specification string

Returns

TbDataColumn|CDataColumn
the column instance

Throws

CException
if the column format is incorrect
Properties summary
public string|array $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.

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

public string $pagerCssClass 'pagination'
#

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

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

public array $pager array('class' => 'bootstrap.widgets.TbPager')
#

the configuration for the pager. Defaults to <span class="php-keyword1">array</span>(<span class="php-quote">'class'</span>=><span class="php-quote">'ext.bootstrap.widgets.TbPager'</span>).

the configuration for the pager. Defaults to <span class="php-keyword1">array</span>(<span class="php-quote">'class'</span>=><span class="php-quote">'ext.bootstrap.widgets.TbPager'</span>).

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.

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

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.

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

Yiistrap API documentation generated by ApiGen 2.8.0