PHP Class WhBox

Author: Antonio Ramirez ([email protected])
Inheritance: extends CWidget
Afficher le fichier Open project: 2amigos/yiiwheels

Méthodes publiques

Свойство Type Description
$content string Box Content optional, the content of this attribute is echoed as the box content
$headerButtons the configuration for additional header buttons. Each array element specifies a single button which has the following format:
    array(
     TbHtml::button('Primary', array('color' => TbHtml::BUTTON_COLOR_PRIMARY))
     ...
)
$headerIcon string The class icon to display in the header title of the box.
$htmlContentOptions array box content HTML additional attributes
$htmlHeaderOptions array box header HTML additional attributes
$htmlOptions array box HTML additional attributes
$title mixed Box title If set to false, a box with no title is rendered

Méthodes publiques

Méthode Description
init ( ) ### .init()
registerClientScript ( ) ### .registerClientScript()
renderButtons ( ) ### .renderButtons()
renderContentBegin ( ) * ### .renderContentBegin()
renderContentEnd ( ) * ### .renderContentEnd()
renderHeader ( ) ### .renderHeader()
run ( ) ### .run()

Method Details

init() public méthode

Widget initialization
public init ( )

registerClientScript() public méthode

Registers required script files (CSS in this case)

renderButtons() public méthode

Renders a header buttons to display the configured actions
public renderButtons ( )

renderContentBegin() public méthode

Renders the opening of the content element and the optional content
public renderContentBegin ( )

renderContentEnd() public méthode

Closes the content element
public renderContentEnd ( )

renderHeader() public méthode

Renders the header of the box with the header control (button to show/hide the box)
public renderHeader ( )

run() public méthode

Widget run - used for closing procedures
public run ( )

Property Details

$content public_oe property

Box Content optional, the content of this attribute is echoed as the box content
public string $content
Résultat string

$headerButtons public_oe property

the configuration for additional header buttons. Each array element specifies a single button which has the following format:
    array(
     TbHtml::button('Primary', array('color' => TbHtml::BUTTON_COLOR_PRIMARY))
     ...
)
public $headerButtons

$headerIcon public_oe property

The class icon to display in the header title of the box.
See also:
public string $headerIcon
Résultat string

$htmlContentOptions public_oe property

box content HTML additional attributes
public array $htmlContentOptions
Résultat array

$htmlHeaderOptions public_oe property

box header HTML additional attributes
public array $htmlHeaderOptions
Résultat array

$htmlOptions public_oe property

box HTML additional attributes
public array $htmlOptions
Résultat array

$title public_oe property

Box title If set to false, a box with no title is rendered
public mixed $title
Résultat mixed