Class: UWA.Controls.Popup

UWA/Controls/Popup. UWA.Controls.Popup

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
Name Type Argument Default Description
url String <optional>
'about:blank'

Web Content url

status String <optional>
null

The status bar at the bottom of the window.

toolbar String <optional>
null

The standard browser toolbar, with buttons such as Back and Forward.

location String <optional>
null

The Location entry field where you enter the URL.

menubar String <optional>
null

The menu bar of the window

directories String <optional>
null

The standard browser directory buttons, such as What's New and What's Cool

resizable Boolean <optional>
null

Allow/Disallow the user to resize the window.

scrollbars Boolean <optional>
null

Enable the scrollbars if the document is bigger than the window

height Number <optional>
null

Specifies the height of the window in pixels.

width Number <optional>
null

Specifies the width of the window in pixels.

Extends

  • UWA.Controls.Abstract

Index

Members

<protected> defaultOptions

Properties:
Name Type Description
defaultOptions Object

The default controls options.

Methods

open(url)

Open the popup with web content url.

Parameters
Name Type Description
url String

Web Content url

close()

Close the popup.

setPosition()

Set the popup position.

focus()

Focus the popup.

buildSkeleton()

Build main dom elements.