API/libsapojs/SAPO/Widget

[Elements] are optional

Class SAPO.Widget


class SAPO.Widget
requires SAPO SAPO Widget class : all widgets should be subclasses of this one
Defined in Widget/lib.js

Function Summary
DOMElement currentScriptElement()
returns the currentScriptElement;
DOMElement getTarget (DOMElement String target, [DOMElement obj])
returns a target container, if its not supplied or its a script tag appends a given object before the current scripttag

Function Details

function currentScriptElement

DOMElement currentScriptElement()
returns the currentScriptElement;

function getTarget

DOMElement getTarget(DOMElement String target, [DOMElement obj])
returns a target container, if its not supplied or its a script tag appends a given object before the current scripttag
Parameters:
target
[obj]