The Tabs/Sections API allows you to manage tabs and sections added to Add, Edit, and View pages.
All tab and tab group indexes are zero-based. 0 - the first tab, 1 -the second tab, etc.
These methods work in the JavaScript OnLoad event on the Add/Edit/View pages.
Methods
Method |
Description |
Returns the RunnerTabs object, which represents a single tab group. |
|
Tabs methods |
|
Returns the number of tabs in the Tab control object. |
|
Activates/shows the n-th tab. |
|
Gets an index of the currently selected tab. |
|
Hides the n-th tab (zero-based). |
|
Shows the n-th tab (zero-based). |
|
Makes the n-th tab disabled. |
|
Makes the n-th tab enabled. |
|
Returns the jQuery object of the tab header. |
|
Returns the jQuery object of the tab content. |
|
Creates a new tab and adds it to the end of a tab group. |
|
Changes the order of the tabs. The n-th tab is moved to m-th position. The m-th tab is moved to the n-th position. |
|
Sections methods |
|
Returns the number of sections on the page. |
|
Returns the RunnerSection object representing the n-th section on the page (zero-based). |
|
Returns the jQuery object of the section header. |
|
Returns the jQuery object of the section content. |
|
Expands the section. |
|
Collapses the section. |
To hide and show sections you can use the standard PHPRunner functions that show/hide objects. To hide a section from the server side event use hideItem() function. To show or hide a section in the run time, use toggleItem() function.
See also:
•Page designer. Working with table pages
•About Grid Row JavaScript API