| Name | Type | Default |
|
appendContainer
# |
String
|
null
|
Sets or gets the appendContainer property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[appendContainer]="'#container'"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
autoOpen
# |
Boolean
|
false
|
Sets or gets the autoOpen property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [autoOpen]="true">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
animationOpenDelay
# |
Number
|
400
|
Sets or gets the animationOpenDelay property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[animationOpenDelay]="600"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
animationCloseDelay
# |
Number
|
800
|
Sets or gets the animationCloseDelay property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[animationCloseDelay]="1000"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
autoClose
# |
Boolean
|
true
|
Sets or gets the autoClose property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [autoClose]="true">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
autoCloseDelay
# |
String | Number
|
3000
|
Sets or gets the autoCloseDelay property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[autoCloseDelay]="5000"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
blink
# |
Boolean
|
false
|
Sets or gets the blink property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [blink]="true">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
browserBoundsOffset
# |
Number
|
5
|
Sets or gets the browserBoundsOffset property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[browserBoundsOffset]="10"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
closeOnClick
# |
Boolean
|
true
|
Sets or gets the closeOnClick property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[closeOnClick]="false"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
disabled
# |
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [disabled]="true">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
height
# |
String | Number
|
'auto'
|
Sets or gets the height property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [height]="200">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
hoverOpacity
# |
Number
|
1
|
Sets or gets the hoverOpacity property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [hoverOpacity]="2">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
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';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [icon]="icon">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
notificationOffset
# |
Number
|
5
|
Sets or gets the notificationOffset property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[notificationOffset]="10"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
opacity
# |
Number
|
0.9
|
Sets or gets the opacity property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [opacity]="1">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
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';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[position]="'top-left'"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
rtl
# |
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [rtl]="true">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
showCloseButton
# |
Boolean
|
true
|
Sets or gets the showCloseButton property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[showCloseButton]="false"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
template
# |
enum:NotificationTemplate
|
'info'
|
enum NotificationTemplate { info, warning, success, error, mail, time, null } Sets or gets the template property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'" [template]="'info'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
theme
# |
String
|
''
|
Sets or gets the theme property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
[width]="250"
[position]="'top-right'"
[theme]="'energyblue'"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
width
# |
String | Number
|
'auto'
|
Sets or gets the width property.
import { Component } from '@angular/core';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {}
|
|
|
|
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';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
(onClose)="Close($event)"
[width]="250"
[position]="'top-right'"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {
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';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
(onClick)="Click($event)"
[width]="250"
[position]="'top-right'"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {
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';
import { jqxNotificationModule } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification
#myNotification
(onOpen)="Open($event)"
[width]="250"
[position]="'top-right'"
>
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App {
Open(event: any): void {
// Do Something
}
}
|
|
|
| Name | Return Type | Arguments |
|
closeAll
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxNotificationModule, jqxNotificationComponent } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App implements AfterViewInit {
readonly myNotification = viewChild.required<jqxNotificationComponent>('myNotification');
ngAfterViewInit(): void {
this.myNotification().closeAll();
}
}
|
|
closeLast
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxNotificationModule, jqxNotificationComponent } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App implements AfterViewInit {
readonly myNotification = viewChild.required<jqxNotificationComponent>('myNotification');
ngAfterViewInit(): void {
this.myNotification().closeLast();
}
}
|
|
destroy
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxNotificationModule, jqxNotificationComponent } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App implements AfterViewInit {
readonly myNotification = viewChild.required<jqxNotificationComponent>('myNotification');
ngAfterViewInit(): void {
this.myNotification().destroy();
}
}
|
|
open
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxNotificationModule, jqxNotificationComponent } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App implements AfterViewInit {
readonly myNotification = viewChild.required<jqxNotificationComponent>('myNotification');
ngAfterViewInit(): void {
this.myNotification().open();
}
}
|
|
refresh
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxNotificationModule, jqxNotificationComponent } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App implements AfterViewInit {
readonly myNotification = viewChild.required<jqxNotificationComponent>('myNotification');
ngAfterViewInit(): void {
this.myNotification().refresh();
}
}
|
|
render
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxNotificationModule, jqxNotificationComponent } from 'jqwidgets-ng/jqxnotification';
@Component({
selector: 'app-root',
imports: [jqxNotificationModule],
template: `
<jqxNotification #myNotification [width]="250" [position]="'top-right'">
<div>Welcome to our website.</div>
</jqxNotification>
`
})
export class App implements AfterViewInit {
readonly myNotification = viewChild.required<jqxNotificationComponent>('myNotification');
ngAfterViewInit(): void {
this.myNotification().render();
}
}
|