Class: WrapperTracer

WrapperTracer~WrapperTracer

new WrapperTracer(obj, container, callback)

CONSTRUCTOR.

Se le puede llamar a este constructor con una función callback que se injectará en cada método ejecutado. @ lends WrapperTracer.prototype

Parameters:
Name Type Description
obj Object

El objeto Javascript a 'wrappear'.

container HTMLElement | string

El elemento 'HTMLElement' o su 'idElement' que servirá como contenedor a toda la UI.

callback function

[OPTIONAL] - La función a embeber en cada método del objeto.

Source:

Methods

getCallback() → {function|null}

Obtiene la función externa de callback, si se le había proporcionado al constructor

@ lends WrapperTracer.prototype

Source:
Returns:
Type
function | null

getContainer() → {Object:HTMLElement}

Obtiene el Elemento DOM contenedor de toda la UI

Source:
Returns:
Type
Object:HTMLElement

getId() → {string}

Obtiene el Id de este wrapper

Source:
Returns:
Type
string

getInfo() → {Object}

Obtiene información del Objeto JS

Source:
Returns:
Type
Object

getProps() → {Object}

Obtiene todas las propiedades del Objeto JS

Source:
Returns:
Type
Object

getTarget() → {Object:Javascript}

Obtiene el Objeto JS original

Source:
Returns:
Type
Object:Javascript

getUtil() → {Object:WrapperTracer.Util}

Retorna el objeto Util.

This:
Source:
Returns:
Type
Object:WrapperTracer.Util

getWrapped() → {Object:WrapperTracer.Util#wrapp}

Obtiene el Objeto 'wrapped' generado

Source:
Returns:
Type
Object:WrapperTracer.Util#wrapp

setContainer(container) → {HTMLElement}

Establece el contenedor UI

Método Setter para establecer el contenedor donde albergar toda la UI. También prepara el cuerpo de este contenedor (info y events)

Parameters:
Name Type Description
container HTMLElement | string

El elemento 'HTMLElement' o su 'idElement' que servirá como contenedor a toda la UI.

Source:
Returns:
Type
HTMLElement

Δ