InteractiveToolBox
The InteractiveToolBox class offer a way to replace the default context menu and create yours.
How to Initialize the Interactive Tool Box?
The initialization of the Interactive Tool Box is an one step process, just call the function Init of the class with its two arguments (see bellow for more details).
Class Details
Functions:
Initialization & Main Functions
Name |
Arguments |
Return |
Description |
Init |
|
VOID |
This function Initialized every part of the viewer: HMTL, CSS, Data, Events, etc... It will be generated in the defined ID and all HTML IDs used for this tab will start by the RegistryName defined in arguments |
Open |
|
VOID |
Open the InteractiveToolBox at defined position |
Close |
|
VOID |
Close the box. |
AddOption |
|
VOID |
Add an option to the tool box. |
ClearOptions |
|
VOID |
Remove all options (tool is not opening if there is no option). |
Setters Functions
Name |
Arguments |
Return |
Description |
SetWidth |
|
VOID |
Change the tool box width. |
SetBorder |
|
VOID |
The a border to the tool box |
SetOptionHeight |
|
VOID |
Set the option height size. (Same for all). |
SetOptionPadding |
|
VOID |
Set the padding inside all options. (Same for all). |
SetOptionBorder |
|
VOID |
Set the border of each options. |
SetOptionBackgroundColor |
|
VOID |
Set the background color for each options (Same for all). |
SetOptionGradientBackgroundColor |
|
VOID |
Set the background color for each options with a gradient effect. /!\ /!\ This function is not done yet and might not work properly /!\ /!\ |
Private Details
All private details are usable but its recommended to not use any of those. It might modify the proper functioning of the class.
Variables (Members):
Main Members
Name |
Type |
Default Value |
Description |
options |
Class[] :
|
[] |
Hold a list of the options details. |
isOpen |
Boolean |
false |
Used to check if the toolbox is or not open. |
style |
Class:
|
Each CSS Class has this default setting: //position height: "100px", padding: "none", padding-top: "none", padding-right: "none", padding-bottom: "none", padding-left: "none",
//Design border: "none", border-top: "none", border-right: "none", border-bottom: "none", border-left: "none",
background-color: "white", background-image: "none" |
Hold the 3 CSS Class of the option, it is used by the options event when hovered or pressed |
id |
String |
undefined |
Global HMTL Id of the viewer (# + name). |
name |
String |
undefined |
Name of this Tool box. |
basedId |
String |
undefined |
Where it is located is the existing DOM (its parent). |
Functions:
Updates functions
Name |
Arguments |
Return |
Description |
UpdateStyle |
|
None |
Set all option to default style. |
Util Functions
Name |
Arguments |
Return |
Description |
GetOptionFromName |
|
JQuery DOM Object |
Get the option div. |
Compatibility
LANGUAGE CLASS: Not compatible.
Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents