MultiTab
MultiTab
MultiTab is used to create a automatic tabulation system.
How to Initialize the MultiTab ?
The initialization of the MultiTab animation is an one step process, just call the function Init of the class with his three arguments (see above for more details)
Class Details
Functions:
Name |
Arguments |
Return |
Description |
Init |
|
VOID |
This function Initialized every part of the flip: HMTL and the base CSS. It will generate in the defined ID as ID and all HTML IDs used for this MultiTab will start by the name defined in arguments |
AddTab |
|
VOID |
Add a new tab with it's content. |
ClearTab |
|
VOID |
Remove all the content of a tab. |
RemoveTab |
|
VOID |
Completely remove a tab and all it's data. |
UpdateData |
|
VOID |
Completely delete the content of the tab and replace it by a new content. |
AddData |
|
VOID |
Add data after the present data, using append method. |
Private Details
/!\/!\/!\/!\ All private details are usable but its recommended to not use anythings of those. It might modify the good working of the class. /!\/!\/!\/!\
Variables (Members):
Name |
Type |
Default Value |
Description |
basedId |
String |
null |
HTML Id of the viewer parent. |
id |
String |
null |
Global HMTL Id of the viewer (# + name). |
name |
String |
null |
Name of the viewer used by the class for all HTML IDs |
topID |
String |
null |
Define the ID of the title part |
bodyID |
String |
null |
Define the ID of the content part |
tabList |
null |
Hold all the tabs. |
|
lastID |
Integer |
0 |
Keep the last ID used for the table (all table have a different ID that not based on the position in TabList). |
Functions:
Name |
Arguments |
Return |
Description |
FlipAnimation (Animation Function) |
|
None |
This function is called to update the flipping animation. |
GetContentDivFromID |
|
String - HTML ID of the Content of the selected tab. |
Call this function to get the ID of a tab content based on the tab ID. |
GetContentDivFromArray |
|
String - HTML ID of the Content of the selected tab. |
Call this function to get the ID of a tab content based on the tab position. |
GetTitleDivFromID |
|
String - HTML ID of the Content of the selected tab. |
Call this function to get the ID of a tab title based on the tab ID. |
GetTitleDivFromArray |
|
String - HTML ID of the Content of the selected tab. |
Call this function to get the ID of a tab title based on the tab position. |
GetTabClassFromID |
|
Tab - Tab class from selected ID |
Call this function to get a class based on a ID. |
UpdateStyle |
|
None |
Function called to update the design of the tabs, especially the borders around the status. |
InitTabClickEvent |
|
None |
Function used initialize the events on a new tab. |
Structures:
Name |
Data |
Default Values |
Description |
Tab |
|
|
Tab structure is used to hold needed data for the system. |
Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework