Name | Type | Default | ||||||
---|---|---|---|---|---|---|---|---|
appendContainer | String | null | ||||||
If set, specifies the notification container. The value of appendContainer should be a String with the id of the container element preceeded by "#". Code examples
Set the
Get the
|
||||||||
autoOpen | Boolean | false | ||||||
Sets or gets whether the notification will open automatically. Code examples
Set the
Get the
Try it: autoOpen is set to true
|
||||||||
animationOpenDelay | Number/String | 400 | ||||||
Sets or gets the duration of the notification animation at open. Code examples
Set the
Get the
Try it: animationOpenDelay is set to 600
|
||||||||
animationCloseDelay | Number/String | 800 | ||||||
Sets or gets the duration of the tooltip animation at close. Code examples
Set the
Get the
|
||||||||
autoClose | Boolean | true | ||||||
Sets or gets whether the notification will automatically close after duration equal to the autoCloseDelay property. Code examples
Set the
Get the
Try it: autoClose is set to false
|
||||||||
autoCloseDelay | Number/String | 3000 | ||||||
Sets or gets the duration after which the notification automatically closes (works only if the autoClose property is set to true). Code examples
Set the
Get the
Try it: autoCloseDelay is set to 5000
|
||||||||
blink | Boolean | false | ||||||
Sets or gets whether the notification blinks when opened. Code examples
Set the
Get the
Try it: blink is set to true
|
||||||||
browserBoundsOffset | Number/String | 5 | ||||||
Sets ot gets the notifications' offset from the window bounds. Code examples
Set the
Get the
Try it: browserBoundsOffset is set to 10
|
||||||||
closeOnClick | Boolean | true | ||||||
Sets or gets whether the notification will close if it is clicked. Code examples
Set the
Get the
Try it: closeOnClick is set to false
|
||||||||
disabled | Boolean | false | ||||||
Sets or gets whether the notification is disabled (it cannot be opened). Code examples
Set the
Get the
Try it: disabled is set to true
|
||||||||
height | Number/String | 'auto' | ||||||
Sets ot gets the notification's height. Code examples
Set the
Get the
Try it: height is set to "100px"
|
||||||||
hoverOpacity | Number | 1 | ||||||
Sets or gets the notification's opacity when it is hovered with the mouse. Code examples
Set the
Get the
Try it: hoverOpacity is set to 2
|
||||||||
icon | Object | null | ||||||
Sets or gets an object which specifies a custom notification icon. The icon property is disregarded if template is set. Object fields:
Code examples
Set the
Get the
Try it: icon is set to a custom object
|
||||||||
notificationOffset | Number/String | 5 | ||||||
Sets or gets the offset between notifications. Code examples
Set the
Get the
Try it: notificationOffset is set to 10
|
||||||||
opacity | Number | 0.9 | ||||||
Sets or gets the notification's opacity. Code examples
Set the
Get the
Try it: opacity is set to 1
|
||||||||
position | String | 'top-right' | ||||||
Sets the part of the browser window where the notifications will be positioned. The position property is disregarded if appendContainer is set. Possible Values:
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
|
||||||||
showCloseButton | Boolean | true | ||||||
Sets or gets whether to show the notification's close button. Code examples
Set the
Get the
Try it: showCloseButton is set to false
|
||||||||
template | String | 'info' | ||||||
Sets or gets the notification template. Possible Values:
If template is set to null, the theme setting is applied to the notification. In that case, the notification icon can be set with the icon property. Code examples
Set the
Get the
Try it: template is set to 'info'
|
||||||||
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'
|
||||||||
width | Number/String | 'auto' | ||||||
Sets ot gets the notification's width. Code examples
Set the
Get the
Try it: width is set to "250px"
|
||||||||
Events |
||||||||
close | Event | |||||||
This event is triggered when the notification is closed. Code examples
Bind to the
|
||||||||
click | Event | |||||||
This event is triggered when the notification is clicked. Code examples
Bind to the
|
||||||||
open | Event | |||||||
This event is triggered when the notification is opened. Code examples
Bind to the
|
||||||||
Methods |
||||||||
closeAll | Method | |||||||
Closes all notification instances.
None Code examples
Invoke the
Try it: closes all notifications
|
||||||||
closeLast | Method | |||||||
Closes the last notification instances.
None Code examples
Invoke the
Try it: closes the last notifications
|
||||||||
destroy | Method | |||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroy the notification
|
||||||||
open | Method | |||||||
Opens the widget.
None Code examples
Invoke the
Try it: opens the notification
|
||||||||
refresh | Method | |||||||
Refreshes the widget.
None Code examples
Invoke the
Try it: refresh the notification
|
||||||||
render | Method | |||||||
Renders the widget.
None Code examples
Invoke the
Try it: renders the notification
|