new UWA.Controls.Web(options)
Display a web content through an iframe.
Available Events
Event | Description |
---|---|
onResize |
Invoked when control need to resize |
onLoad |
Invoked when the frame load. |
onError |
Invoked when the frame load fail |
Example
var myControl = new UWA.Controls.Web({
url: 'http://netvibes.com'
});
myControl.inject(myControlContainer);
// OR
myControlContainer.appendChild(myControl.getContent());
Parameters
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options hash or a option/value pair. Properties
|
Extends
- UWA.Controls.Abstract
Index
Methods
-
buildSkeleton()
-
Build main dom elements.
-
setSrc(src)
-
Set the src attribute of the iframe (start loading process).
Parameters
Name Type Description src
String -
setIFrameHeight(height)
-
Set the iFrame height.
Parameters
Name Type Description height
Number -
isBlank() → {Boolean}
-
Returns true if iframe src target the 'about:blank' url, false otherwise.
Returns
- Type
- Boolean
-
getIFrame() → {UWA/Element}
-
Returns the underlying iframe UWA/Element.
Returns
- Type
- UWA/Element