Class \Prado\Web\UI\WebControls\TTabView
TTabView represents a view in a TTabPanel control.
The content in a TTabView can be specified by the \Prado\Web\UI\WebControls\setText property or its child controls. In template syntax, the latter means enclosing the content within the TTabView component element. If both are set, \Prado\Web\UI\WebControls\getText takes precedence.
Each TTabView is associated with a tab in the tab bar of the TTabPanel control. The tab caption is specified by \Prado\Web\UI\WebControls\setCaption. If \Prado\Web\UI\WebControls\setNavigateUrl 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 \Prado\Web\UI\WebControls\setActive property.
Class hierarchy
- \Prado\Web\UI\WebControls\TTabView
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1.1
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setNavigateUrl(string $value) : mixed
Sets the URL of the target page.
If not empty, clicking on this tab will redirect the browser to the specified URL. |
public
|
setText(string $value) : mixed
Sets the text content to be displayed on this view.
If this is not empty, the child content of the view will be ignored. |
protected
|
|
protected
|
|
protected
|
renderTabContent(THtmlWriter $writer) : mixed
Renders the content in the tab.
By default, a hyperlink is displayed. |