|
MeVisLab Web Toolkit Reference
|
Functions | |
| addStyleSheetClass (domElement, styleSheetClass) | |
| Appends the given style sheet class to the DOM element. | |
| blurElement (domElement) | |
| Blurs (removes the focus) of the given DOM element. | |
| getDOMWindow (domElement) | |
| Returns the window of the given domElement. | |
| getGlobalPosition (domElement) | |
| Returns the global position of the given domElement. | |
| getNextID () | |
| Increments the last id by 1 and returns it. | |
| hasStyleSheetClass (domElement, styleSheetClass) | |
| Returns true if the dom element has the given style sheet class, or false otherwise. | |
| isDOMElementEnabled () | |
| Returns if the DOM element is enabled. | |
| isDOMElementVisible () | |
| Returns if the DOM element is visible. | |
| removeStyleProperty (domElement, property) | |
| Remove a property from the style attribute of a DOM element. | |
| removeStyleSheetClass (domElement, styleSheetClass) | |
| Removes the given style sheet class from the DOM element. | |
| setDOMElementEnabled (domElement, enabled) | |
| Enables/disables the given DOM element. | |
| setDOMElementVisible (domElement, visible) | |
| Shows/hides the given DOM element. | |
Variables | |
| int | HORIZONTAL = 0 |
| Namespace constant. | |
| int | VERTICAL = 1 |
| Namespace constant. | |
The GUI namespace.
| addStyleSheetClass | ( | domElement, | |
| styleSheetClass ) |
| blurElement | ( | domElement | ) |
| getDOMWindow | ( | domElement | ) |
| getGlobalPosition | ( | domElement | ) |
| getNextID | ( | ) |
| hasStyleSheetClass | ( | domElement, | |
| styleSheetClass ) |
| isDOMElementEnabled | ( | ) |
Returns if the DOM element is enabled.
See also MLAB.GUI.setDOMElementEnabled()
| isDOMElementVisible | ( | ) |
Returns if the DOM element is visible.
See also MLAB.GUI.setDOMElementVisible()
| removeStyleProperty | ( | domElement, | |
| property ) |
| removeStyleSheetClass | ( | domElement, | |
| styleSheetClass ) |
| setDOMElementEnabled | ( | domElement, | |
| enabled ) |
| setDOMElementVisible | ( | domElement, | |
| visible ) |
Shows/hides the given DOM element.
Shows/hides also its children, which do not belong to any widget, recursively. The CSS class MLAB-GUI-ConcealedDOMElement is added to hidden elements, which by default sets the style display to 'none'. This corresponds to hiding widgets in MeVisLab, because the DOM elements do not occupy any space then. Using style visibility with the value 'hidden', would cause DOM element to be invisible, but it still occupies space.
| domElement | The DOM element. |
| visible | A boolean that indicates if the element is shown or hidden. |