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 TbPager

Bootstrap pager widget. http://twitter.github.com/bootstrap/components.html#pagination

CBasePager
Extended by TbPager
Package: bootstrap\widgets
Copyright: Copyright © Christoffer Niska 2013-
License: New BSD License
Author: Christoffer Niska <christoffer.niska@gmail.com>
Located at widgets/TbPager.php
Methods summary
public
# init( )

Initializes the widget.

Initializes the widget.

public
# run( )

Runs the widget.

Runs the widget.

protected array
# createPageLinks( )

Creates the page buttons.

Creates the page buttons.

Returns

array
a list of page buttons (in HTML code).
protected string
# createPageLink( string $label, integer $page, boolean $disabled, boolean $active )

Creates a page link.

Creates a page link.

Parameters

$label
string
$label the link label text.
$page
integer
$page the page number.
$disabled
boolean
$visible whether the link is disabled.
$active
boolean
$active whether the link is active.

Returns

string
the generated link.
protected array
# getPageRange( )

Returns

array
the begin and end pages that need to be displayed.
Properties summary
public string $size
#

the pager size.

the pager size.

public integer $maxButtonCount 5
#

maximum number of page buttons that can be displayed.

maximum number of page buttons that can be displayed.

public string $nextPageLabel '&rsaquo;'
#

the text label for the next page button.

the text label for the next page button.

public string $prevPageLabel '&lsaquo;'
#

the text label for the previous page button.

the text label for the previous page button.

public string $firstPageLabel '&laquo;'
#

the text label for the first page button.

the text label for the first page button.

public string $lastPageLabel '&raquo;'
#

the text label for the last page button.

the text label for the last page button.

public boolean $hideFirstAndLast false
#

whether the "first" and "last" buttons should be hidden. Defaults to false.

whether the "first" and "last" buttons should be hidden. Defaults to false.

public array $htmlOptions array()
#

HTML attributes for the pager container tag.

HTML attributes for the pager container tag.

Yiistrap API documentation generated by ApiGen 2.8.0