PHP Class Prado\Web\UI\WebControls\TTabView

TTabView represents a view in a {@link TTabPanel} control. The content in a TTabView can be specified by the {@link setText Text} property or its child controls. In template syntax, the latter means enclosing the content within the TTabView component element. If both are set, {@link getText Text} takes precedence. Each TTabView is associated with a tab in the tab bar of the TTabPanel control. The tab caption is specified by {@link setCaption Caption}. If {@link setNavigateUrl NavigateUrl} is set, the tab will contain a hyperlink pointing to the specified URL. In this case, clicking on the tab will redirect the browser to the specified URL. TTabView may be toggled between visible (active) and invisible (inactive) by setting the {@link setActive Active} property.
Since: 3.1.1
Inheritance: extends TWebControl
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
getActive ( ) : boolean
getCaption ( ) : string
getNavigateUrl ( ) : string
getText ( ) : string
renderContents ( $writer ) Renders body contents of the tab view.
renderTab ( $writer ) Renders the tab associated with the tab 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.

Méthodes protégées

Méthode Description
addAttributesToRender ( $writer ) Adds attributes to renderer.
getTagName ( ) : the
renderTabContent ( $writer ) Renders the content in the tab.

Method Details

addAttributesToRender() protected méthode

Adds attributes to renderer.
protected addAttributesToRender ( $writer )

getActive() public méthode

public getActive ( ) : boolean
Résultat boolean whether this tab view is active. Defaults to false.

getCaption() public méthode

public getCaption ( ) : string
Résultat string the caption displayed on this tab. Defaults to ''.

getNavigateUrl() public méthode

public getNavigateUrl ( ) : string
Résultat string the URL of the target page. Defaults to ''.

getTagName() protected méthode

protected getTagName ( ) : the
Résultat the tag name for the view element

getText() public méthode

public getText ( ) : string
Résultat string the text content displayed on this view. Defaults to ''.

renderContents() public méthode

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

renderTab() public méthode

Renders the tab associated with the tab view.
public renderTab ( $writer )

renderTabContent() protected méthode

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

setActive() public méthode

public setActive ( $value )

setCaption() public méthode

public setCaption ( $value )

setNavigateUrl() public méthode

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

setText() public méthode

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