PHP Класс WhBox

Автор: Antonio Ramirez ([email protected])
Наследование: extends CWidget
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
init ( ) ### .init()
registerClientScript ( ) ### .registerClientScript()
renderButtons ( ) ### .renderButtons()
renderContentBegin ( ) * ### .renderContentBegin()
renderContentEnd ( ) * ### .renderContentEnd()
renderHeader ( ) ### .renderHeader()
run ( ) ### .run()

Описание методов

init() публичный Метод

Widget initialization
public init ( )

registerClientScript() публичный Метод

Registers required script files (CSS in this case)

renderButtons() публичный Метод

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

renderContentBegin() публичный Метод

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

renderContentEnd() публичный Метод

Closes the content element
public renderContentEnd ( )

renderHeader() публичный Метод

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

run() публичный Метод

Widget run - used for closing procedures
public run ( )

Описание свойств

$content публичное свойство

Box Content optional, the content of this attribute is echoed as the box content
public string $content
Результат string

$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))
     ...
)
public $headerButtons

$headerIcon публичное свойство

The class icon to display in the header title of the box.
См. также:
public string $headerIcon
Результат string

$htmlContentOptions публичное свойство

box content HTML additional attributes
public array $htmlContentOptions
Результат array

$htmlHeaderOptions публичное свойство

box header HTML additional attributes
public array $htmlHeaderOptions
Результат array

$htmlOptions публичное свойство

box HTML additional attributes
public array $htmlOptions
Результат array

$title публичное свойство

Box title If set to false, a box with no title is rendered
public mixed $title
Результат mixed