new divisors()
Module for visualization of charts and tables.
- Source:
 
Methods
(static) createDiv(params) → {Element}
Creates a div space for rendering all sorts of required divisors.
Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            Object | Contains: id, title, class, style  | 
        
- Source:
 
Returns:
Div space appended to DOM.
- Type
 - Element
 
Example
hydro.visualize.createDiv({params: {id: 'someid', title: 'sometitle', className: 'someclass'}})
            (static) createScript(params) → {Element}
Creates a script given a source, JS text and name to be appended to the header.
Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            Object | Contains: name (script name), src (CDN source)  | 
        
- Source:
 
Returns:
If found, returns the the script library to add listeners and handlers once loaded.
- Type
 - Element
 
Example
hydro.visualize.createScript({params: {name: "someName", src: "somrCDNurl"}})
            (static) isdivAdded(params) → {Boolean}
Function for verifying if a div has already been added into the document.
Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            Object | Contains: id (specific name for the divisor).  | 
        
- Source:
 
Returns:
True of a div with the given id is found in the document.
- Type
 - Boolean
 
Example
hydro.visualize.isdivAdded({params: {id: 'someDivName'}})
            (static) isScriptAdded(params) → {Boolean}
Function for verifying if a script has been added to the header of the webpage.
Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            Object | Contains: name (script on screen, or not)  | 
        
- Source:
 
Returns:
True if the script has been appended to the header.
- Type
 - Boolean
 
Example
hydro.visualize.isScriptAdded ({params: {name: 'someName'}})