Name | Type | Default |
appendContainer
|
String
|
null
|
Sets or gets the appendContainer property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [appendContainer]="'#container'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
autoOpen
|
Boolean
|
false
|
Sets or gets the autoOpen property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [autoOpen]="true">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
animationOpenDelay
|
Number
|
400
|
Sets or gets the animationOpenDelay property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [animationOpenDelay]="600">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
animationCloseDelay
|
Number
|
800
|
Sets or gets the animationCloseDelay property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [animationCloseDelay]="1000">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
autoClose
|
Boolean
|
true
|
Sets or gets the autoClose property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [autoClose]="true">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
autoCloseDelay
|
String | Number
|
3000
|
Sets or gets the autoCloseDelay property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [autoCloseDelay]="5000">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
blink
|
Boolean
|
false
|
Sets or gets the blink property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [blink]="true">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
browserBoundsOffset
|
Number
|
5
|
Sets or gets the browserBoundsOffset property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [browserBoundsOffset]="10">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
closeOnClick
|
Boolean
|
true
|
Sets or gets the closeOnClick property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [closeOnClick]="false">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
disabled
|
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [disabled]="true">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
height
|
String | Number
|
'auto'
|
Sets or gets the height property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [height]="200">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
hoverOpacity
|
Number
|
1
|
Sets or gets the hoverOpacity property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [hoverOpacity]="2">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
icon
|
NotificationIcon
|
null
|
interface NotificationIcon { width?: String | Number; height?: String | Number; url?: String; padding?: String | Number; } Sets or gets the icon property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [icon]="icon">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
notificationOffset
|
Number
|
5
|
Sets or gets the notificationOffset property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [notificationOffset]="10">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
opacity
|
Number
|
0.9
|
Sets or gets the opacity property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [opacity]="1">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
position
|
enum:NotificationPosition
|
'top-right'
|
enum NotificationPosition { top-left, top-right, bottom-left, bottom-right } Sets or gets the position property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [position]="'top-left'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
rtl
|
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [rtl]="true">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
showCloseButton
|
Boolean
|
true
|
Sets or gets the showCloseButton property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [showCloseButton]="false">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
template
|
enum:NotificationTemplate
|
'info'
|
enum NotificationTemplate { info, warning, success, error, mail, time, null } Sets or gets the template property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [template]="'info'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
theme
|
String
|
''
|
Sets or gets the theme property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'" [theme]="'energyblue'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
width
|
String | Number
|
'auto'
|
Sets or gets the width property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
}
|
|
close
|
Event
|
|
This event is triggered when the notification is closed.
Code examples
Bind to the close event of jqxNotification.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification (onClose)="Close($event)"
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
Close(event: any): void
{
// Do Something
}
}
|
click
|
Event
|
|
This event is triggered when the notification is clicked.
Code examples
Bind to the click event of jqxNotification.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification (onClick)="Click($event)"
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
Click(event: any): void
{
// Do Something
}
}
|
open
|
Event
|
|
This event is triggered when the notification is opened.
Code examples
Bind to the open event of jqxNotification.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification (onOpen)="Open($event)"
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent {
Open(event: any): void
{
// Do Something
}
}
|
|
Name | Return Type | Arguments |
closeAll
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myNotification') myNotification: jqxNotificationComponent;
ngAfterViewInit(): void
{
this.myNotification.closeAll();
}
}
|
closeLast
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myNotification') myNotification: jqxNotificationComponent;
ngAfterViewInit(): void
{
this.myNotification.closeLast();
}
}
|
destroy
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myNotification') myNotification: jqxNotificationComponent;
ngAfterViewInit(): void
{
this.myNotification.destroy();
}
}
|
open
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myNotification') myNotification: jqxNotificationComponent;
ngAfterViewInit(): void
{
this.myNotification.open();
}
}
|
refresh
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myNotification') myNotification: jqxNotificationComponent;
ngAfterViewInit(): void
{
this.myNotification.refresh();
}
}
|
render
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxNotification #myNotification
[width]="250" [position]="'top-right'">
<div>
Welcome to our website.
</div>
</jqxNotification>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myNotification') myNotification: jqxNotificationComponent;
ngAfterViewInit(): void
{
this.myNotification.render();
}
}
|