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