Name | Type | Default | |||||||
---|---|---|---|---|---|---|---|---|---|
autoOpen | Boolean | true | |||||||
Sets or gets whether the window will be shown after it's creation. Code examples
Set the
Get the
Try it: autoOpen is set to false
|
|||||||||
animationType | String | fade | |||||||
Sets or gets window's close and show animation type. Possible Values:
Code examples
Set the
Get the
Try it: animationType is set to 'slide'
|
|||||||||
collapsed | Boolean | false | |||||||
Determines whether the window is collapsed. Code examples
Set the
Get the
Try it: collapsed is set to true
|
|||||||||
collapseAnimationDuration | Number | 150 | |||||||
Determines the duration in milliseconds of the expand/collapse animation. Code examples
Set the
Get the
|
|||||||||
content | String | '' | |||||||
Sets or gets window's content's html content. Code examples
Set the
Get the
Try it: content is set to 'New content'
|
|||||||||
closeAnimationDuration | Number | 350 | |||||||
Sets or gets window's close animation duration. Code examples
Set the
Get the
|
|||||||||
closeButtonSize | Number | 16 | |||||||
Sets or gets window's close button size. Code examples
Set the
Get the
Try it: closeButtonSize is set to 20
|
|||||||||
closeButtonAction | String | hide | |||||||
This setting specifies what happens when the user clicks the jqxWindow's close button. Possible Values:
Code examples
set the
Get the
|
|||||||||
cancelButton | Object | null | |||||||
Sets or gets cancel button. When a cancel button is specified you can use this button to interact with the user. When any user press the cacel button window is going to be closed and the dialog result will be in the following format: { OK: false, Cancel: true, None: false }. Code examples
Set the
Get the
|
|||||||||
dragArea | Object | null | |||||||
Sets or gets the screen area which is available for dragging(moving) the jqxWindow. Example value: { left: 300, top: 300, width: 600, height: 600 }. By default, the dragArea is null which means that the users will be able to drag the window in the document's body bounds. Code examples
Set the
Get the
|
|||||||||
draggable | Boolean | true | |||||||
Sets or gets whether the window is draggable. Code examples
Set the
Get the
Try it: draggable is set to false
|
|||||||||
disabled | Boolean | false | |||||||
Sets or gets whether the window is disabled. Code examples
Set the
Get the
Try it: disabled is set to true
|
|||||||||
height | Number/String | null | |||||||
Sets or gets the window's height. Code examples
Set the
Get the
Try it: height is set to 100
|
|||||||||
initContent | Method | ||||||||
Initializes the jqxWindow's content. Code example
Invoke the
|
|||||||||
isModal | Boolean | false | |||||||
Sets or gets whether the window is displayed as a modal dialog. If the jqxWindow's mode is set to modal, the window blocks user interaction with the underlying user interface. Code examples
Set the
Get the
Try it: isModal is set to true
|
|||||||||
keyboardCloseKey | Number/string | 'esc' | |||||||
Sets or gets the key which could be used for closing the window when it's on focus. Possible value is every keycode and the 'esc' strig (for the escape key). Code examples
Set the
Get the
Try it: keyboardCloseKey is set to 32
|
|||||||||
keyboardNavigation | Boolean | true | |||||||
Determines whether the keyboard navigation is enabled or disabled. Code examples
Set the
Get the
|
|||||||||
minHeight | Number/String | 50 | |||||||
Sets or gets window's minimum height. Code examples
Set the
Get the
Try it: minHeight is set to '100px'
|
|||||||||
maxHeight | Number/String | 600 | |||||||
Sets or gets window's maximum height. Code examples
Set the
Get the
Try it: maxHeight is set to 300
|
|||||||||
minWidth | Number/String | 50 | |||||||
Sets or gets window's minimum width. Code examples
Set the
Get the
Try it: minWidth is set to '100px'
|
|||||||||
maxWidth | Number/String | 600 | |||||||
Sets or gets window's maximum width. Code examples
Initialize a jqxWindow with the
Get the
Try it: maxWidth is set to 300
|
|||||||||
modalOpacity | Number | 0.3 | |||||||
Sets or gets the jqxWindow's background displayed over the underlying user interface when the window is in modal dialog mode. Code examples
Set the
Get the
Try it: modalOpacity is set to 0.5
|
|||||||||
modalZIndex | Number | 18000 | |||||||
Sets or gets the jqxWindow's z-index when it is displayed as a modal dialog. Code examples
Set the
Get the
Try it: modalZIndex is set to 9999
|
|||||||||
modalBackgroundZIndex | Number | 12990 | |||||||
Sets or gets the jqxWindow overlay's z-index when it is displayed as a modal dialog. Code examples
Set the
Get the
|
|||||||||
okButton | Object | null | |||||||
Sets or gets submit button. When a ok/submit button is specified you can use this button to interact with the user. When any user press the submit button window is going to be closed and the dialog result will be in the following format: { OK: true, Cancel: false, None: false }. Code examples
Set the
Get the
Try it: okButton is set to $('#ok')
|
|||||||||
position | Object/String | center | |||||||
Sets or gets window's position. The value could be in the following formats: 'center', 'top, left', '{ x: 300, y: 500 }', '[300, 500]'. Code examples
Set the
Get the
Try it: position is set to 'top,left'
|
|||||||||
rtl | Boolean | false | |||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
|||||||||
resizable | Boolean | true | |||||||
Enables or disables whether the end-user can resize the window. Code examples
Set the
Get the
Try it: resizable is set to false
|
|||||||||
showAnimationDuration | Number | 350 | |||||||
Sets or gets window's show animation duration. Code examples
Set the
Get the
|
|||||||||
showCloseButton | Boolean | true | |||||||
Sets or gets whether a close button will be visible. Code examples
Set the
Get the
Try it: showCloseButton is set to false
|
|||||||||
showCollapseButton | Boolean | false | |||||||
Sets or gets whether the collapse button will be visible. Code examples
Set the
Get the
|
|||||||||
theme | String | '' | |||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
|||||||||
title | String | '' | |||||||
Sets or gets window's title content. Code examples
Set with the
Get the
Try it: title is set to 'Title'
|
|||||||||
width | Number/String | null | |||||||
Sets or gets the window's width. Code examples
Set the
Get the
Try it: width is set to 300
|
|||||||||
zIndex | Number | 9001 | |||||||
Sets or gets the jqxWindow z-index. Code examples
Set the
Get the
Try it: zIndex is set to 9999
|
|||||||||
Events |
|||||||||
close | Event | ||||||||
This event is triggered when the window is closed. Code examples
Bind to the
|
|||||||||
collapse | Event | ||||||||
This event is triggered when the window is collapsed. Code examples
Bind to the
|
|||||||||
created | Event | ||||||||
This event is triggered when the user create new window. Code examples
Bind to the
|
|||||||||
expand | Event | ||||||||
This event is triggered when the window is expanded. Code examples
Bind to the
|
|||||||||
moving | Event | ||||||||
This event is triggered when the window is dragging by the user. Code examples
Bind to the
|
|||||||||
moved | Event | ||||||||
This event is triggered when the window is dropped by the user. Code examples
Bind to the
|
|||||||||
open | Event | ||||||||
This event is triggered when the window is displayed. Code examples
Bind to the
|
|||||||||
resizing | Event | ||||||||
This event is triggered when the end-user is resizing the window. Code examples
Bind to the
|
|||||||||
resized | Event | ||||||||
This event is triggered when the end-user has resized the window. Code examples
Bind to the
|
|||||||||
Methods |
|||||||||
bringToFront | Method | ||||||||
Bringing the window to the front.
None Code example
Invoke the
|
|||||||||
close | Method | ||||||||
Hiding/closing the current window (the action - hide or close depends on the closeButtonAction).
None Code example
Invoke the
Try it: closes the jqxWindow.
|
|||||||||
collapse | Method | ||||||||
Collapse the current window.
None Code example
Invoke the
Try it: collapses the jqxWindow.
|
|||||||||
closeAll | Method | ||||||||
Closing all open windows which are not modal.
None Code example
Invoke the
|
|||||||||
disable | Method | ||||||||
Disabling the window.
None Code example
Invoke the
Try it: disables the jqxWindow.
|
|||||||||
destroy | Method | ||||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroy the jqxWindow.
|
|||||||||
enable | Method | ||||||||
Enabling the window
None Code example
Invoke the
Try it: enables the jqxWindow.
|
|||||||||
expand | Method | ||||||||
Expand the current window.
None Code example
Invoke the
Try it: expand the jqxWindow.
|
|||||||||
focus | Method | ||||||||
Focuses the window.
None Code example
Invoke the
Try it: focus the jqxWindow.
|
|||||||||
isOpen | Method | ||||||||
Returns true when jqxWindow is opened and false when the jqxWindow is closed
Boolean Code example
Invoke the
|
|||||||||
move | Method | ||||||||
Moving the current window.
None Code example
Invoke the
Try it: moves the jqxWindow.
|
|||||||||
open | Method | ||||||||
Opening/showing the current window.
None Code example
Invoke the
Try it: opens the jqxWindow.
|
|||||||||
resize | Method | ||||||||
Resizes the window. The 'resizable' property is expected to be set to "true".
None Code example
Invoke the
Try it: resizes the jqxWindow.
|
|||||||||
setTitle | Method | ||||||||
Setting window's title
None Code example
Invoke the
Try it: sets title in the jqxWindow.
|
|||||||||
setContent | Method | ||||||||
Setting window's content.
None Code example
Invoke the
Try it: sets content in the jqxWindow.
|