Introduction

This is documentation for window widget.

Options

Option name and values Description
Option name:
appendTo

Default value:
"body"

Allowed values:
selector
jQuery object

Element to which window should be appended.

Option name:
buttons

Default value:
[]

Allowed values:
array of objects representing each button config

Buttons that should be appended to bottom of the window. See related demo for details on implementation.

Related demo:
Window buttons

Option name:
closable

Default value:
true

Allowed values:
false
true

Whether user can close window.

This option does not affect behaviour of API method close.

Related options:
closeOnEscape
maximizable
minimizable

Related method:
close

Related events:
beforeClose
close

Related demo:
Unclosable window

Option name:
closeOnEscape

Default value:
false

Allowed values:
false
true

Specifies whether the dialog should close when it has focus and the user presses the escape (ESC) key.

Related option:
closable

Related method:
close

Option name:
confirmClose

Default value:
{
	confirm       : false,
	modal         : false,
	minimizable   : true,
	no            : null,
	noLocalized   : "confirmCloseNo",
	text          : null,
	textLocalized : "confirmCloseText",
	title         : null,
	titleLocalized: "confirmCloseTitle",
	yes           : null,
	yesLocalized  : "confirmCloseYes"
},

Allowed values:
object with keys exactly as shown above

This object hold configuration for confirmClose functionality. See detailed options for more information.

Details:
confirmClose.confirm
confirmClose.modal
confirmClose.minimizable
confirmClose.no
confirmClose.noLocalized
confirmClose.text
confirmClose.textLocalized
confirmClose.title
confirmClose.titleLocalized
confirmClose.yes
confirmClose.yesLocalized

Confirm close window inherit most of it's options from parent window.

Related method:
confirmCloseWindow

Related demo:
Confirm close functionality

Option name:
confirmClose.confirm

Default value:
false

Allowed values:
false
true

Specifies whether the confirmClose functionality should be on.

When it's on, a window will appear when user want to close window, asking if he's sure.

From API point of view, when confirmClose is on, calling $( ".window" ).window( "close" ) will trigger confirm close window. Calling $( ".window" ).window( "close" ) again will close window for good. Calling $( ".window" ).window( "destroy" ) will bypass confirmClose functionality.

Related demo:
Confirm close functionality

Option name:
confirmClose.modal

Default value:
false

Allowed values:
false
true

Specifies whether the confirm close window should be modal.

Related demo:
Confirm close functionality

Option name:
confirmClose.minimizable

Default value:
false

Allowed values:
false
true

Specifies whether the confirm close window should be minimizable.

Related demo:
Confirm close functionality

Option name:
confirmClose.no

Default value:
null

Allowed values:
null
string

Button label for "no" button.

If both confirmClose.no and confirmClose.noLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
confirmClose.noLocalized

Default value:
"confirmCloseNo"

Allowed values:
null
string equal to key name in dictionary

Dictionary key for label for "no" button.

If both confirmClose.no and confirmClose.noLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
confirmClose.text

Default value:
null

Allowed values:
null
string

Confirm close window body, typically containing question about whether user is positive about closing a window.

If both confirmClose.text and confirmClose.textLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
confirmClose.textLocalized

Default value:
"confirmCloseText"

Allowed values:
null
string equal to key name in dictionary

Dictionary key for confirm close window body, typically containing question about whether user is positive about closing a window.

If both confirmClose.text and confirmClose.textLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
confirmClose.title

Default value:
null

Allowed values:
null
string

Confirm close window title.

If both confirmClose.title and confirmClose.titleLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
confirmClose.titleLocalized

Default value:
"confirmCloseText"

Allowed values:
null
string equal to key name in dictionary

Dictionary key for confirm close window title.

If both confirmClose.title and confirmClose.titleLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
confirmClose.yes

Default value:
null

Allowed values:
null
string

Button label for "yes" button.

If both confirmClose.yes and confirmClose.yesLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
confirmClose.yesLocalized

Default value:
"confirmCloseNo"

Allowed values:
null
string equal to key name in dictionary

Dictionary key for label for "yes" button.

If both confirmClose.yes and confirmClose.yesLocalized are not equal to null, the first one will be used.

Related demo:
Confirm close functionality

Option name:
containment

Default value:
"inherit"

Allowed values:
"inherit"
"viewport"
"visible"

Defines containment for window. Three values are possible:

  • "inherit" means that value of this option will be inherited from windowsContainment option value of a taskbar this window is bound to.
  • "viewport" means that existing taskbars (with autoHide set to false) will define boundaries in which window will exist.
  • "visible" means that existing taskbars (with autoHide set to false) will define boundaries in which window draggable handle will be accessible, giving ability to move it almost out of sight, but not to a point where is becomes unusable.

Option name:
draggable

Default value:
true

Allowed values:
false
true

If set to true, the window will be draggable by the titlebar. Requires the jQuery UI Draggable widget to be included, otherwise draggable functionality will be skipped, but window will be initialized.

Related events:
dragStart
drag
dragStop

Option name:
durations

Default value:
{
	maximize: "default",
	minimize: "default",
	restore : "default",
	show    : "default"
},

Allowed values:
object with keys exactly as shown above

This is a object holding various animation durations. Every key in this object is responsible for duration of one particular animation. See detailed options for more information.

Note: Changing duration when animation is in progress will not change duration of this animation. This is the intended behaviour. If you need to end animation immediately, use maximize, minimize, restore, or show methods with a parameter false.

Details:
durations.maximize
durations.minimize
durations.restore
durations.show

Related demo:
Window flow

Option name:
durations.maximize

Default value:
"default"

Allowed values:
valid value for jQuery UI Tooltip's "hide" options
false for no animation

How much should window maximize take. This applies to user interactions and calling method maximize without parameters.

Related methods:
maximize
maximized
maximizing

Related demo:
Window durations

Option name:
durations.minimize

Default value:
"default"

Allowed values:
valid value for jQuery UI Tooltip's "hide" options
false for no animation

How much should window minimize take. This applies to user interactions and calling method minimize without parameters.

Related methods:
minimize
minimized
minimizing

Related demo:
Window durations

Option name:
durations.restore

Default value:
"default"

Allowed values:
valid value for jQuery UI Tooltip's "hide" options
false for no animation

How much should window restore take. This applies to user interactions and calling method restore without parameters.

Related methods:
restore
restored
restoring

Related demo:
Window durations

Option name:
durations.show

Default value:
"default"

Allowed values:
valid value for jQuery UI Tooltip's "hide" options
false for no animation

How much should window show take. This applies to user interactions and calling method show without parameters.

Related methods:
show
shown
showing

Related demo:
Window durations

Option name:
embeddedContent

Default value:
false

Allowed values:
false
true

When window contains embedded content, like iframe, Flash game, or QuickTime video, set this option to true. This will put an overlay over window when it's not on top, allowing to bring it back to top when it's clicked. Normally, click event would not be propagated from embedded content to DOM.

Styling guide has a section on this option.

Related demo:
Window "embeddedContent" option

Option name:
group

Default value:
null

Allowed values:
null
string

This option allow grouping windows. Windows that share the same group option will also share a common window button on taskbar, and the button will open a menu whenever there's more than one window present in the given group.

Group name could be any string, but it's recommended that it contain only characters that can be safely used in CSS selectors (in short: use letter, numbers, hypens, and underscores, and you'll be fine).

When built-in translations are used, group name can be hidden from user, but if no translations are used, group name will be exposed in button label. Related demo contains the details on implementation.

Related demo:
Window groups

Option name:
height

Default value:
"auto"

Allowed values:
"auto"
integer

Window height. It can either be calculated automatically (best for most cases) or set explicitly.

This option value is used to set CSS height, not outerHeight.

Related options:
maxHeight
minHeight

Option name:
icons

Default value:
{
	close       : "ui-icon-closethick",
	confirmClose: "ui-icon-help",
	main        : null,
	maximize    : "ui-icon-arrow-4-diag",
	minimize    : "ui-icon-minusthick",
	restore     : "ui-icon-newwin"
}

Allowed values:
object with keys exactly as shown above

Details:
icons.close
icons.confirmClose
icons.main
icons.maximize
icons.minimize
icons.restore

Related demos:
Icons
famfamfam iconset

Option name:
icons.close

Default value:
"ui-icon-closethick"

Allowed values:
valid jQuery icon value
any custom class name that adds icon

Icon for close button.

This option will have no visible effect if closable option is set to false.

Option name:
icons.confirmClose

Default value:
"ui-icon-help"

Allowed values:
valid jQuery icon value
any custom class name that adds icon

Option that's gonna be propagated to confirmClose window icons.main option.

This option will have no visible effect confirmClose functionality is not on.

Option name:
icons.main

Default value:
null

Allowed values:
valid jQuery icon value
any custom class name that adds icon

Main window icon. This icon will be visible in window titlebar and on window button or in window group menu.

Option name:
icons.maximize

Default value:
"ui-icon-arrow-4-diag"

Allowed values:
valid jQuery icon value
any custom class name that adds icon

Icon for maximize button for when window is not maximized.

This option will have no visible effect if maximizable option is set to false.

Option name:
icons.minimize

Default value:
"ui-icon-minusthick"

Allowed values:
valid jQuery icon value
any custom class name that adds icon

Icon for minimize button.

This option will have no visible effect if minimizable option is set to false.

Option name:
icons.restore

Default value:
"ui-icon-newwin"

Allowed values:
valid jQuery icon value
any custom class name that adds icon

Icon for maximize button for when window is maximized.

This option will have no visible effect if maximizable option is set to false.

Option name:
maxHeight

Default value:
null

Allowed values:
null
integer

Max window height. Applied to both auto-sizing capabilities (when height is set to "auto") and resizable.

This option value is used to set CSS height, not outerHeight.

Related options:
height
minHeight

Option name:
maximizable

Default value:
true

Allowed values:
false
true

Whether the window can be maximized by user.

This option does not affect behaviour of API method maximize.

Related options:
closable
minimizable
maximizedDraggable

Related methods:
maximize
maximized
maximizing

Related demo:
Unclosable window

Option name:
maximizedDraggable

Default value:
true

Allowed values:
false
true

Whether the window can be dragged when it's maximized, therefore becoming restored when drag starts.

Related option:
maximizable

Related demo:
Window "maximizedDraggable" option

Option name:
maxWidth

Default value:
null

Allowed values:
null
integer

Max window width. Applied to resizable.

This option value is used to set CSS width, not outerWidth.

Related options:
minWidth
width

Option name:
minHeight

Default value:
150

Allowed values:
integer

Minimal window height. Applied to both auto-sizing capabilities (when height is set to "auto") and resizable.

This option value is used to set CSS height, not outerHeight.

Related options:
height
maxHeight

Option name:
minimizable

Default value:
true

Allowed values:
false
true

Whether the window can be minimized by user.

This option does not affect behaviour of API method minimize.

Related options:
closable
maximizable

Related methods:
minimize
minimized
minimizing

Related demo:
Unclosable window

Option name:
minWidth

Default value:
150

Allowed values:
integer

Minimal window width. Applied to resizable.

This option value is used to set CSS width, not outerWidth.

Related options:
maxWidth
width

Option name:
modal

Default value:
false

Allowed values:
false
true

Whether the window is modal. Modal creates an overlay over all elements, optionally filtered by modalOverlay option and modalOverlaySetsCreated event.

Related option:
modalOverlay

Related event:
modalOverlaySetsCreated

Related method:
modalOverlay

Related demo:
Modal windows

Option name:
modalOverlay

Default value:
"all"

Allowed values:
"all"
"viewport"
jQuery object

Specifies what elements should be covered by overlay, when modal window is on top. Three values are possible:

  • "all" means that all taskbars and windows will be covered.
  • "viewport" means that all windows will be covered, but not taskbars.
  • jQuery object acts as "all", except elements passed in jQuery Object will not be covered by modal overlay.

Related option:
modal

Related event:
modalOverlaySetsCreated

Related method:
modalOverlay

Related demo:
Modal windows

Option name:
position

Default value:
{
	my       : "center",
	at       : "center",
	of       : window,
	collision: "fit",
}

Allowed values:
object with keys exactly as shown above

Specifies where the dialog should be displayed when opened. The dialog will handle collisions such that as much of the dialog is visible as possible.

The of property defaults to the window, but you can specify another element to position against. You can refer to the jQuery UI Position utility for more details about the available properties.

Window position will be corrected if needed to fit into whatever containment has been specified.

Option name:
resizable

Default value:
true

Allowed values:
false
true

If set to true, the window will be resizable. Requires the jQuery UI Resizable widget to be included, otherwise resizable functionality will be skipped, but window will be initialized.

Related events:
resizeStart
resize
resizeStop

Option name:
taskbar

Default value:
"simone-taskbar:eq(0)"

Allowed values:
selector
jQuery object

Taskbar the window should be bound to.

When invalid option value is passed—selector not matching taskbar instance, or jQuery object not containing taskbar instance—there are two scenarios:

  • On window initialization, window will not be created from an element and taskbarNotFound event will be triggered.
  • After window initialization, when setter is used ($( ".window" ).window( "option", "taskbar", $() );), window will not be bound to new taskbar.

Related event:
taskbarNotFound

Related method
taskbar

Option name:
title

Default value:
null

Allowed values:
null
string with title

Title of the window. Title will be visible in window titlebar and on window button or in window group menu.

If both title and titleLocalized are not equal to null, the first one will be used.

Related option:
titleLocalized

Related method:
title

Option name:
titleLocalized

Default value:
null

Allowed values:
null
string with title

Dictionary key for title of the window. Title will be visible in window titlebar and on window button or in window group menu.

If both title and titleLocalized are not equal to null, the first one will be used.

Related option:
titleLocalized

Related method:
title

Option name:
widgetClass

Default value:
""

Allowed values:
string

Class that gonna be added to window widget (a parent of element that window() method was called on).

Related method:
widget

Option name:
width

Default value:
300

Allowed values:
integer

Window width. It can only be set explicitly.

This option value is used to set CSS width, not outerWidth.

Related options:
maxWidth
minWidth

Events

Event name and UI object Description
Event name:
every event

Every UI object contains:
{
	// widget instance; it's the same
	// object jQuery widget instance()
	// method returns since jQuery 1.11
	instance: { ... },
	// instance of taskbar this window is
	// bound to; it's the same
	// object jQuery widget instance()
	// method returns since jQuery 1.11
	taskbar : { ... },
	// jQuery object containing element
	// the window() method was called on
	$window : $window,
	// jQuery object containing window
	// widget (parent of the element
	// the window() method was called on)
	$widget : $widget,
	// jQuery object containing taskbar
	$taskbar: $taskbar
}

In addition to event-specific properties, every UI object contains additional properties, as shown on the left.

instance is a jQuery UI window widget instance. It's the same object that jQuery UI instance() method return since jQuery UI 1.11.

taskbar is a jQuery UI widget instance of taskbar the window is bound to. It's the same object that jQuery UI instance() method return since jQuery UI 1.11.

$window is a jQuery object fo DOM element on which window() was called.

$window is a jQuery object fo DOM element that serves as window widget (in short, parent of element on which window() was called).

$taskbar is a jQuery object fo DOM element of taskbar the window is bound to.

Event name:
beforeClose

Cancelable: yes

Example UI object (in addition to what every event UI object has):
{}

Triggered when window is about to be closed.

This event will not be triggered when destroy method was called.

Related option:
closable

Related event:
close

Related method:
close

Event name:
close

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

Triggered after window is destroyed and closed.

Related option:
closable

Related event:
beforeClose

Related method:
close

Event name:
create

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

This event if triggered when window widget is successfully created.

This event if triggered only once.

If this event fails to fire, taskbarNotFound likely fired.

This event will not be triggered if widget creation failed. If that happens, set taskbar's debug.environment to true and check the output of debugLogAdd event.

Event name:
dragStart

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// window current offset
	offset: {
		left  : 0,
		top   : 400,
	},
	// window original offset
	originalOffset: {
		left  : 0,
		top   : 300,
	},
	// window original position
	originalPosition: {
		left  : 0,
		top   : 400,
	},
	// window current position
	position: {
		left  : 0,
		top   : 400,
	}
}

Triggered when window draggable starts.

This event caries properties from ui object of jQuery UI Draggable start event.

Original draggable start event object is passed.

Related demo:
Window interactions

Event name:
drag

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// window current offset
	offset: {
		left  : 38,
		top   : 456,
	},
	// window original offset
	originalOffset: {
		left  : 0,
		top   : 300,
	},
	// window original position
	originalPosition: {
		left  : 0,
		top   : 300,
	},
	// window current position
	position: {
		left  : 38,
		top   : 456,
	}
}

Triggered when window draggable in in progress.

This event caries properties from ui object of jQuery UI Draggable drag event.

Original draggable drag event object is passed.

Related demo:
Window interactions

Event name:
dragStop

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// window current offset
	offset: {
		left  : 862,
		top   : 304,
	},
	// window original offset
	originalOffset: {
		left  : 0,
		top   : 300,
	},
	// window original position
	originalPosition: {
		left  : 1240,
		top   : 29,
	},
	// window current position
	position: {
		left  : 862,
		top   : 204,
	}
}
This event caries properties from jQuery UI Draggable stop event.

Triggered when window draggable stops.

This event caries properties from ui object of jQuery UI Draggable stop event.

Original draggable stop event object is passed.

Related demo:
Window interactions

Event name:
focus

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

Triggered when window is focused.

Event name:
beforeMaximize

Cancelable: yes

Example UI object (in addition to what every event UI object has):
{}

Triggered when window is about to be maximized.

Canceling this event will prevent window from maximizing.

Related event:
maximize

Related methods:
maximize
maximized
maximizing

Event name:
maximize

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

Triggered when window has been fully maximized.

Related event:
beforeMaximize

Related methods:
maximize
maximized
maximizing

Event name:
beforeMinimize

Cancelable: yes

Example UI object (in addition to what every event UI object has):
{
	// whether taskbar's "minimizeAll"
	// method was called and is in progress
	minimizeAllInProgress: true
}

Triggered when window is about to be minimized.

Canceling this event will prevent window from minimizing.

Related event:
minimize

Related methods:
minimize
minimized
minimizing

Event name:
minimize

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// whether taskbar's "minimizeAll"
	// method was called and is in progress
	minimizeAllInProgress: true
}

Triggered when window has been fully minimized.

Related event:
beforeMinimize

Related methods:
minimize
minimized
minimizing

Event name:
modalOverlaySetsCreated

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// jQuery object containing
	// elements that gonna be covered
	// by modal overlay
	$setCover: $setCover,
	// jQuery object containing
	// elements that's will be explicitly
	// excluded from being covered
	// by modal overlay
	$setNoCover: $setNoCover
}

Triggered when modal overlay sets are created, based on modal and modalOverlay options. Both sets can be modified in this event. See related demo for details on how to do this.

Related options:
modal
modalOverlay

Related method:
modalOverlay

Related demo:
Modal windows

Event name:
moveToBackground

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

Triggered when window was on top and is moved to background, therefore becoming a not active window.

Related methods:
moveToTop
blurWindows – taskbar method

Event name:
moveToTop

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

Triggered when window was not on top and is moved to top, therefore becoming active window.

Related methods:
moveToTop
blurWindows – taskbar method

Event name:
resizeStart

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// original position
	// before resize started
	originalPosition: {
		left: 950,
		top: 82
	},
	// original size before
	// resize started
	originalSize: {
		left: 338,
		width: 299
	},
	// current position
	position: {
		left: 950,
		top: 82
	},
	// current size
	size: {
		left: 338,
		width: 299
	}
}

Triggered when window resize starts.

This event caries properties from ui object of jQuery UI Resizable start event.

Original resizable start event object is passed.

Related demo:
Window interactions

Event name:
resize

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// original position
	// before resize started
	originalPosition: {
		left: 950,
		top: 82
	},
	// original size before
	// resize started
	originalSize: {
		left: 338,
		width: 299
	},
	// current position
	position: {
		left: 943,
		top: 77
	},
	// current size
	size: {
		left: 343,
		width: 306
	}
}

Triggered during window resize.

This event caries properties from ui object of jQuery UI Resizable resize event.

Original resizable resize event object is passed.

Related demo:
Window interactions

Event name:
resizeStop

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// original position
	// before resize started
	originalPosition: {
		left: 950,
		top: 82
	},
	// original size before
	// resize started
	originalSize: {
		left: 338,
		width: 299
	},
	// current position
	position: {
		left: 943,
		top: 77
	},
	// current size
	size: {
		left: 343,
		width: 306
	}
}

Triggered when window resize stops.

This event caries properties from ui object of jQuery UI Resizable stop event.

Original resizable stop event object is passed.

Related demo:
Window interactions

Event name:
beforeRestore

Cancelable: yes

Example UI object (in addition to what every event UI object has):
{}

Triggered when window is about to be restored.

Canceling this event will prevent window from restoring.

Related event:
restore

Related methods:
restore
restored
restoring

Event name:
restore

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

Triggered when window has been fully restored.

Related event:
beforeRestore

Related methods:
restore
restored
restoring

Event name:
beforeShow

Cancelable: yes

Example UI object (in addition to what every event UI object has):
{}

Triggered when window is about to be shown.

showing Canceling this event will prevent window from showing.

Related event:
show

Related methods:
show
shown
showing

Event name:
show

Cancelable: no

Example UI object (in addition to what every event UI object has):
{}

Triggered when window has been fully shown.

Related event:
beforeShow

Related methods:
show
shown
showing

Event name:
taskbarNotFound

Cancelable: no

Example UI object (in addition to what every event UI object has):
{
	// whether it's the initialization
	// or taskbar was about to be
	// changed via setter
	initial: true,
	// error message
	message: "...",
	// original value of taskbar option
	// before resize started
	taskbar: taskbar,
	// jQuery object internally created
	// from taskbar option
	$taskbar: $taskbar,
}

Triggered when taskbar passed in taskbar option was not found, either on initialization or after initialization.

Related option:
taskbar

Related method
taskbar

Methods

Method name Description
Method name:
button

Parameters:
none

Returns button connected to a window, or empty jQuery object if window is not bound to taskbar.

Method name:
close

Parameters:
none

Closes the window. If confirmClose.confirm is set to true and confirm close window is not present, first call on close() method will open confirm close window. Second call will close confirm close window and the window it was called upon.

Related option:
closable

Related events:
beforeClose
close

Related method:
destroy

Method name:
confirmCloseWindow

Parameters:
none

Returns confirm close window if confirm close window is currently opened, or empty jQuery object otherwise.

Related option:
confirmClose

Method name:
containment

Parameters:
none

Returns real window containment, either "visible" or "viewport".

That is different from getter for containment option, that could also return "inherit", if containment is inherited from taskbar's windowsContainment option.

Related option:
containment

Method name:
destroy

Parameters:
none

Removes the window functionality completely. This will return the element back to its pre-init state.

Related method:
close

Method name:
instance

Parameters:
none

Available since jQuery UI 1.11.

Retrieves the window's instance object. If the element does not have an associated instance, undefined is returned.

Unlike other widget methods, instance() is safe to call on any element after the dialog plugin has loaded.

Method name:
maximize

Parameters:
none

Maximizes window. If window is already maximized, nothing will happen.

Related events:
beforeMaximize
maximize

Related methods:
maximized
maximizing

Related demo:
Window flow

Method name:
maximized

Parameters:
none

Returns true if window is fully maximized, false otherwise.

Related events:
beforeMaximize
maximize

Related methods:
maximize
maximizing

Method name:
maximizing

Parameters:
none

Returns true if window is currently maximizing, that is, the animation is in progress, and false otherwise.

Related events:
beforeMaximize
maximize

Related methods:
maximize
maximized

Method name:
minimize

Parameters:
none

Minimizes window. If window is already minimized, nothing will happen.

Related events:
beforeMinimize
minimize

Related methods:
minimized
minimizing

Related demo:
Window flow

Method name:
minimized

Parameters:
none

Returns true if window is fully minimized, false otherwise.

Related events:
beforeMinimize
minimize

Related methods:
minimize
minimizing

Method name:
minimizing

Parameters:
none

Returns true if window is currently minimizing, that is, the animation is in progress, and false otherwise.

Related events:
beforeMinimize
minimize

Related methods:
minimize
minimized

Method name:
modalOverlay

Parameters:
none

Returns jQuery element representing modal overlay, or empty jQuery object if modal overlay is not present.

Related options:
confirmClose
modal
modalOverlay

Related event:
modalOverlaySetsCreated

Method name:
moveToTop

Parameters:
none

Move window to top, making it an active window. If modal window is present and current window is not modal, window will not be moved to top.

This method only moves window to top if this window is not minimized or minimizing. You might want to check for that before using this method.

Related events:
moveToTop
moveToBackground

Related method:
blurWindows – taskbar method

Method name:
option

Parameters:
option name (mandatory)
option value (optional)

Serves as getter or a setter for options.

When only option name is passed, this method act as getter.

 // initialize window with default settings
$( ".window" ).window();

// modal will be false, because that's the default option value
var modal = $( ".window" ).window( "option", "modal" );

When option name and option value is passed, a new option value is set.

 // initialize window with default settings
$( ".window" ).window();

// modal will from now on be true
$( ".window" ).window( "option", "modal", true );

Alternatively, an object can be passed as option name, acting as a setter:

$( ".window" ).window( "option", {
	containment: "visible",
	closable: false
});

This will set both containment and closable options.

Method name:
refreshPosition

Parameters:
none

Refreshes position and dimension of window.

Internally, this method is called whenever it's needed to reposition window, or change it's dimension.

On occasions this method should be called from your application, for example, when you have a window with height set to auto and window has some new content, or old content is removed, and you want height to be recalculated.

Method name:
restore

Parameters:
none

Restores window. If window is already restored, nothing will happen.

Related events:
beforeRestore
restore

Related methods:
restored
restoring

Method name:
restored

Parameters:
none

Returns true if window is fully restored, false otherwise.

Related events:
beforeRestore
restore

Related methods:
restored
restoring

Method name:
restoring

Parameters:
none

Returns true if window is currently restoring, that is, the animation is in progress, and false otherwise.

Related events:
beforeRestore
restore

Related methods:
restored
restoring

Method name:
show

Parameters:
none

Shows window. If window is already shown, nothing will happen.

Related events:
beforeShow
show

Related methods:
shown
showing

Method name:
shown

Parameters:
none

Returns true if window is fully shown, false otherwise.

Related events:
beforeShow
show

Related methods:
shown
showing

Method name:
showing

Parameters:
none

Returns true if window is currently showing, that is, the animation is in progress, and false otherwise.

Related events:
beforeShow
show

Related methods:
shown
showing

Method name:
taskbar

Parameters:
none

Returns taskbar the window is bound to, or empty jQuery object if window is not bound to taskbar.

Related option:
taskbar

Method name:
title

Parameters:
none

Returns real window title, that is the title currently shown on titlebar.

Related options:
title
titleLocalized

Method name:
widget

Parameters:
none

Returns parent of element on which taskbar() method was called. That's the jQuery object containing original element, titlebar, and, optionally, container for custom buttons.

Related option:
widgetClass

Method name:
windowSetup

Parameters:
options (mandatory)
propagateToInstances (optional, passed as first parameter if used)

Changes the default window setup, and optionally propagate changes to existing window instances. See related demo for details on usage.

Related demo:
$.simone.taskbarSetup and $.simone.windowSetup methods