PHP Class TbNavbar

Since: 0.9.7
Inheritance: extends CWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$brand the text for the brand.
$brandOptions the HTML attributes for the brand link.
$brandUrl the URL for the brand link.
$collapse whether to enable collapsing on narrow screens. Default to false.
$fixed fix location of the navbar if applicable. Valid values are 'top' and 'bottom'. Defaults to 'top'. Setting the value to false will make the navbar static.
$fluid whether the nav span over the full width. Defaults to false.
$htmlOptions the HTML attributes for the widget container.
$items navigation items.
$type the navbar type. Valid values are 'inverse'.

Public Methods

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

Protected Methods

Method Description
getContainerCssClass ( ) : string ### .getContainerCssClass()

Method Details

getContainerCssClass() protected method

Returns the navbar container CSS class.
protected getContainerCssClass ( ) : string
return string the class

init() public method

Initializes the widget.
public init ( )

run() public method

Runs the widget.
public run ( )

Property Details

$brand public property

the text for the brand.
public $brand

$brandOptions public property

the HTML attributes for the brand link.
public $brandOptions

$brandUrl public property

the URL for the brand link.
public $brandUrl

$collapse public property

whether to enable collapsing on narrow screens. Default to false.
public $collapse

$fixed public property

fix location of the navbar if applicable. Valid values are 'top' and 'bottom'. Defaults to 'top'. Setting the value to false will make the navbar static.
Since: 0.9.8
public $fixed

$fluid public property

whether the nav span over the full width. Defaults to false.
Since: 0.9.8
public $fluid

$htmlOptions public property

the HTML attributes for the widget container.
public $htmlOptions

$items public property

navigation items.
Since: 0.9.8
public $items

$type public property

the navbar type. Valid values are 'inverse'.
Since: 1.0.0
public $type