本文整理匯總了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.');
}