PHP 클래스 TbBox

저자: : antonio ramirez ([email protected])
상속: extends CWidget
파일 보기 프로젝트 열기: yinhe/yincart

공개 프로퍼티들

프로퍼티 타입 설명
$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(
       array(
         'class' => 'bootstrap.widgets.TbButton',
         'label' => '...',
         'size' => '...',
         ...
       ),
     array(
         'class' => 'bootstrap.widgets.TbButtonGroup',
         'buttons' => array( ... ),
         'size' => '...',
       ),
     ...
)
$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(
       array(
         'class' => 'bootstrap.widgets.TbButton',
         'label' => '...',
         'size' => '...',
         ...
       ),
     array(
         'class' => 'bootstrap.widgets.TbButtonGroup',
         'buttons' => array( ... ),
         'size' => '...',
       ),
     ...
)
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