TopbarWidget
extends CWidget
in package
Table of Contents
Properties
- $isBreadCrumb : bool
- $leftSide : string
- $middle : array<string|int, ButtonWidget>
- $rightSide : array<string|int, ButtonWidget>
- $titleBackLink : mixed
Methods
- init() : mixed
- Initializes and renders the widget
- registerClientScript() : void
- Registers required script files
- renderTopbar() : mixed
- Renders the topbar
Properties
$isBreadCrumb
public
bool
$isBreadCrumb
= \false
true if leftSide is a breadcrumb, defaults to false
$leftSide
public
string
$leftSide
= \null
this can be a simple text (string) or a breadcrumb
$middle
public
array<string|int, ButtonWidget>
$middle
= \null
the menu buttons in the middle
$rightSide
public
array<string|int, ButtonWidget>
$rightSide
= \null
the menu buttons on the right side
$titleBackLink
public
mixed
$titleBackLink
= \null
Methods
init()
Initializes and renders the widget
public
init() : mixed
registerClientScript()
Registers required script files
public
registerClientScript() : void
renderTopbar()
Renders the topbar
protected
renderTopbar() : mixed