本文整理汇总了TypeScript中ng-zorro-antd.NzNotificationService类的典型用法代码示例。如果您正苦于以下问题:TypeScript NzNotificationService类的具体用法?TypeScript NzNotificationService怎么用?TypeScript NzNotificationService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NzNotificationService类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: createBasicNotification
createBasicNotification(): void {
this.notification.blank('Notification Title', 'This is the content of the notification. This is the content of the notification. This is the content of the notification.', {
nzStyle: {
width : '600px',
marginLeft: '-265px'
},
nzClass: 'test-class'
});
}
示例2: createAutoUpdatingNotifications
createAutoUpdatingNotifications(): void {
this.notification.blank('Notification Title', 'Description.', {
nzKey: 'key'
}
);
setTimeout(() => {
this.notification.blank('New Title', 'New description', {
nzKey: 'key'
});
}, 1000);
}
示例3: createBasicNotification
createBasicNotification(template: TemplateRef<{}>): void {
this.notification.template(template);
}
示例4: setTimeout
setTimeout(() => {
this.notification.blank('New Title', 'New description', {
nzKey: 'key'
});
}, 1000);
示例5: createBasicNotification
createBasicNotification(): void {
this.notification.blank( 'Notification Title', 'This is the content of the notification. This is the content of the notification. This is the content of the notification.');
}