new UWA.Controls.Popup(options)
Display a web content through a popup.
Available Events
| Event | Description |
|---|---|
onOpen |
Invoked when Popup opened |
onClose |
Invoked when Popup closed |
onBlocked |
Invoked when Popup blocked |
Example
var myControl = new UWA.Controls.Popup({
url: 'http://netvibes.com'
});
myControl.open();
// OR
var myControl = new UWA.Controls.Popup();
myControl.open('http://netvibes.com');
Parameters
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options hash or a option/value pair. Properties
|
Extends
- UWA.Controls.Abstract
Index
Members
-
<protected> defaultOptions
-
Properties:
Name Type Description defaultOptionsObject The default controls options.
Methods
-
open(url)
-
Open the popup with web content url.
Parameters
Name Type Description urlString Web Content url
-
close()
-
Close the popup.
-
setPosition()
-
Set the popup position.
-
focus()
-
Focus the popup.
-
buildSkeleton()
-
Build main dom elements.