PHP Класс Prado\Web\UI\WebControls\TAccordionView

TAccordionView represents a single view in a {@link TAccordion}. TAccordionView is represented inside the {@link TAccordion} with an header label whose text is defined by the {@link setCaption Caption} property; optionally the label can be an hyperlink: use the {@link setNavigateUrl NavigateUrl} property to define the destination url.
С версии: 3.2
Автор: Gabor Berczi, DevWorx Hungary ([email protected])
Наследование: extends TWebControl
Показать файл Открыть проект

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

Метод Описание
getActive ( ) : boolean
getCaption ( ) : string
getNavigateUrl ( ) : string
getText ( ) : string
renderContents ( $writer ) Renders body contents of the accordion view.
renderHeader ( $writer ) Renders the header associated with the accordion view.
setActive ( $value )
setCaption ( $value )
setNavigateUrl ( $value ) Sets the URL of the target page.
setText ( $value ) Sets the text content to be displayed on this view.

Защищенные методы

Метод Описание
addAttributesToRender ( $writer ) Adds attributes to renderer.
getTagName ( ) : the
renderHeaderContent ( $writer ) Renders the content in the header.

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

addAttributesToRender() защищенный Метод

Adds attributes to renderer.
protected addAttributesToRender ( $writer )

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

public getActive ( ) : boolean
Результат boolean whether this accordion view is active. Defaults to false.

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

public getCaption ( ) : string
Результат string the caption displayed on this header. Defaults to ''.

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

public getNavigateUrl ( ) : string
Результат string the URL of the target page. Defaults to ''.

getTagName() защищенный Метод

protected getTagName ( ) : the
Результат the tag name for the view element

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

public getText ( ) : string
Результат string the text content displayed on this view. Defaults to ''.

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

Renders body contents of the accordion view.
public renderContents ( $writer )

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

Renders the header associated with the accordion view.
public renderHeader ( $writer )

renderHeaderContent() защищенный Метод

By default, a hyperlink is displayed.
protected renderHeaderContent ( $writer )

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

public setActive ( $value )

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

public setCaption ( $value )

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

If not empty, clicking on this header will redirect the browser to the specified URL.
public setNavigateUrl ( $value )

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

If this is not empty, the child content of the view will be ignored.
public setText ( $value )