wwWebTabControl::AddTab

This method is used to programmatically add tabs to the Tab control. It sets base settings and returns the tab so you can further customize the individual tab.

o.AddTab(lcText,lcLink,lcClientId)

Return Value

A wwWebTabPage object that was created

Parameters

lcText
The caption for the Tab

lcLink
The ActionLink for this tab. Use 'default' or leave empty to have the action simply switch tabs on the client side. Use "javascript:SomeFunction()" to specify some javascript to run in response to clicking the tab (note you can use ActivateTab('clientId') or ActivateTab(0) to activate a tab in your script code. Finally you can also specify a URL which if clicked causes the entire page to be redrawn with the new URL.

lcClientId
The client target Id for the container that is to be activated when the tab is clicked with default operation.


See also:

Class wwWebTabControl

© West Wind Technologies, 1996-2024 • Updated: 06/11/07
Comment or report problem with topic