- Source:
Members
(static) _mGenUIFuncs
To not fill interfaceUtils with a lot of things, there is the _mGenUIFuncs object encapsulating all the functions pertaining creation of tabs
- Source:
Methods
(static) activateMainChildTabs(ul)
find and actiate main tabs
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ul |
object
|
dom object of the a tag |
(static) addElementsToSelect(domid, elemlist)
Add options to a select element
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the select element |
elemlist |
Array.<String>
|
Array of strings containing elements to add to the select |
(static) addObjectsToSelect(domid, Array)
Add options to a select element using Objects with the keys: "value* and "innerHTML"
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the select element |
Array |
Array.<Object>
|
of objects containing elements to add to the select |
(static) changeRegionUI(callingbutton)
Get the info of the region that has to be changed
- Source:
Parameters:
Name | Type | Description |
---|---|---|
callingbutton |
HTMLelement
|
Button element containing parent region information |
(static) checkSelectNotZero(domid)
check if an input has o has not its first options sslected
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
(static) cleanSelect(domid)
Erase all options in a select element
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the select element |
(static) disableElement(domid)
Disable an element
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
(static) enableElement(domid)
Enable an element
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
(static) generateDataTabUI(options)
Create a complete new tab with all the UI, accordion and buttons. Options are not implemented but are there if needed in the future
- Source:
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
The id of the element |
(static) getElementById(domid, debug) → {HTMLelement|null}
Get the an element and warn if none exists
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
debug |
Boolean
|
Print warnings if true |
Returns:
- Type:
-
HTMLelement
|null
(static) getElementsByClassName(classname) → {Array.<HTMLelements>|null}
Call the main dom.getElementsByClassName function with a warning if no elements exist
- Source:
Parameters:
Name | Type | Description |
---|---|---|
classname |
String
|
The class of the elements |
Returns:
- Type:
-
Array.<HTMLelements>
|null
(static) getElementsByTagName(classname) → {Array.<HTMLelements>|null}
Call the main dom.getElementsByTagName function with a warning if no elements exist
- Source:
Parameters:
Name | Type | Description |
---|---|---|
classname |
String
|
The class of the elements |
Returns:
- Type:
-
Array.<HTMLelements>
|null
(static) getInnerHTMLFromDOM(domid) → {String|null}
Get the innerHTML of a dom element and warn if element does not exist
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
Returns:
- Type:
-
String
|null
(static) getSelectedIndexValue(domid) → {Object|null}
Get the selected option in a sleect element
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
Returns:
- Type:
-
Object
|null
(static) getValueFromDOM(domid) → {String|null}
Get the value of a dom element and warn if element does not exist
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
Returns:
- Type:
-
String
|null
(static) hideTabsExcept(a)
hides all the tabs that should not he displayed except a itself
- Source:
Parameters:
Name | Type | Description |
---|---|---|
a |
object
|
dom object of the a tag |
(static) isChecked(domid)
See if a dom is checked (mostly a checkbox)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
(static) isEnabled(domid) → {Bool|null}
Ask if an element is enabled
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
Returns:
- Type:
-
Bool
|null
(static) listen(domid, event, handler, debug)
Listen to an event of an element, if the element doesnçt exist get a warning.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element to listen to |
event |
String
|
The event to listen for |
handler |
String
|
Function to answer with |
debug |
Bool
|
If true will print to console |
(static) makeInvisible(domid)
Make an element invisible
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
(static) makeVisible(domid)
Make an element visible
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
(static) openDZI(dzi, viewer)
associated components. For a single viewer the default is "ISS", resulting in "ISS_viewer" as an identifier Open a DZI in a specific viewer. If a main location for images is specified previously using the "url_prefix" variable, it will be added to the dzi string
- Source:
Parameters:
Name | Type | Description |
---|---|---|
dzi |
String
|
Path and name of the DZI file |
viewer |
String
|
String that identifies a viewer and its |
(static) setAttributeForElement(domid, attr, value) → {HTMLelement|null}
Get the an element and warn if none exists
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
attr |
String
|
thing to change |
value |
String
|
to change it to |
Returns:
- Type:
-
HTMLelement
|null
(static) setValueForElement(domid, choice, value) → {HTMLelement|null}
Get the an element and warn if none exists
- Source:
Parameters:
Name | Type | Description |
---|---|---|
domid |
String
|
The id of the element |
choice |
String
|
thing to change |
value |
String
|
to change it to |
Returns:
- Type:
-
HTMLelement
|null
(static) toggleRightPanel(a)
hides all the tabs that should not he displayed except a itself
- Source:
Parameters:
Name | Type | Description |
---|---|---|
a |
object
|
dom object of the a tag |