本文整理匯總了TypeScript中ng-zorro-antd.NzNotificationService.blank方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NzNotificationService.blank方法的具體用法?TypeScript NzNotificationService.blank怎麽用?TypeScript NzNotificationService.blank使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ng-zorro-antd.NzNotificationService
的用法示例。
在下文中一共展示了NzNotificationService.blank方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: setTimeout
setTimeout(() => {
this.notification.blank('New Title', 'New description', {
nzKey: 'key'
});
}, 1000);
示例4: 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.');
}