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
 1: <?php
 2: /**
 3:  * TbListView class file.
 4:  * @author Christoffer Niska <christoffer.niska@gmail.com>
 5:  * @copyright Copyright &copy; Christoffer Niska 2013-
 6:  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
 7:  * @package bootstrap.widgets
 8:  */
 9: 
10: Yii::import('zii.widgets.CListView');
11: 
12: /**
13:  * Bootstrap Zii list view.
14:  */
15: class TbListView extends CListView
16: {
17:     /**
18:      * @var string the CSS class name for the pager container. Defaults to 'pagination'.
19:      */
20:     public $pagerCssClass = 'pagination';
21:     /**
22:      * @var array the configuration for the pager.
23:      * Defaults to <code>array('class'=>'ext.bootstrap.widgets.TbPager')</code>.
24:      */
25:     public $pager = array('class' => 'bootstrap.widgets.TbPager');
26:     /**
27:      * @var string the URL of the CSS file used by this detail view.
28:      * Defaults to false, meaning that no CSS will be included.
29:      */
30:     public $cssFile = false;
31:     /**
32:      * @var string the template to be used to control the layout of various sections in the view.
33:      */
34:     public $template = "{items}\n<div class=\"row-fluid\"><div class=\"span6\">{pager}</div><div class=\"span6\">{summary}</div></div>";
35: 
36:     /**
37:      * Renders the empty message when there is no data.
38:      */
39:     public function renderEmptyText()
40:     {
41:         $emptyText = $this->emptyText === null ? Yii::t('zii', 'No results found.') : $this->emptyText;
42:         echo TbHtml::tag('div', array('class' => 'empty', 'span' => 12), $emptyText);
43:     }
44: }
45: 
Yiistrap API documentation generated by ApiGen 2.8.0