new WrapperTracer(obj, container, callback)
CONSTRUCTOR.
You may be calling this constructor with a callback function that will injected within each executed method.
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object | The Javascript object to 'wrapper'. |
container |
HTMLElement | string | The 'HTMLElement' or its 'idElement' to serve as container for all UI. |
callback |
function | [OPTIONAL] - The function to embed within each object method. |
- Source:
Methods
getCallback() → {function|null}
Gets the external callback function, if it had provided the builder
@ lends WrapperTracer.prototype
- Source:
Returns:
- Type
- function | null
getContainer() → {Object:HTMLElement}
Gets the DOM Element which is container for the all UI
- Source:
Returns:
- Type
- Object:HTMLElement
getId() → {string}
Gets the id from this wrapper
- Source:
Returns:
- Type
- string
getInfo() → {Object}
Gets information from JS Object
- Source:
Returns:
- Type
- Object
getProps() → {Object}
Gets the all properties from JS Object
- Source:
Returns:
- Type
- Object
getTarget() → {Object:Javascript}
Gets the original JS Object
- Source:
Returns:
- Type
- Object:Javascript
getUtil() → {Object:WrapperTracer.Util}
Returns the 'Util' Object.
This:
- Source:
Returns:
- Type
- Object:WrapperTracer.Util
getWrapped() → {Object:WrapperTracer.Util#wrapp}
Gets the generated 'wrapped' Object
- Source:
Returns:
- Type
- Object:WrapperTracer.Util#wrapp
setContainer(container) → {HTMLElement}
Sets the UI container
Setter method to set the container to house all the UI. It also prepares the body of the container (info and events)
Parameters:
Name | Type | Description |
---|---|---|
container |
HTMLElement | string | The 'HTMLElement' or its 'idElement' to serve as container for all UI. |
- Source:
Returns:
- Type
- HTMLElement
comment
[String] :/** You may be calling this constructor with a callback function that will injected within each executed method. * @constructor * @constructs * @summary CONSTRUCTOR. * @param {Object} obj - The Javascript object to 'wrapper'. * @param {HTMLElement|string} container - The 'HTMLElement' or its 'idElement' to serve as container for all UI. * @param {Function} callback [OPTIONAL] - The function to embed within each object method. */