本文整理汇总了TypeScript中app/main/apps/mail/mail.service.MailService类的典型用法代码示例。如果您正苦于以下问题:TypeScript service.MailService类的具体用法?TypeScript service.MailService怎么用?TypeScript service.MailService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了service.MailService类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: toggleStar
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Toggle star
*
* @param event
*/
toggleStar(event): void
{
event.stopPropagation();
this.mail.toggleStar();
this._mailService.updateMail(this.mail);
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:17,代码来源:mail-details.component.ts
示例2: toggleImportant
/**
* Toggle important
*
* @param event
*/
toggleImportant(event): void
{
event.stopPropagation();
this.mail.toggleImportant();
this._mailService.updateMail(this.mail);
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:13,代码来源:mail-details.component.ts
示例3: if
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Read mail
*
* @param mailId
*/
readMail(mailId): void
{
const labelHandle = this._activatedRoute.snapshot.params.labelHandle,
filterHandle = this._activatedRoute.snapshot.params.filterHandle,
folderHandle = this._activatedRoute.snapshot.params.folderHandle;
if ( labelHandle )
{
this._location.go('apps/mail/label/' + labelHandle + '/' + mailId);
}
else if ( filterHandle )
{
this._location.go('apps/mail/filter/' + filterHandle + '/' + mailId);
}
else
{
this._location.go('apps/mail/' + folderHandle + '/' + mailId);
}
// Set current mail
this._mailService.setCurrentMail(mailId);
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:31,代码来源:mail-list.component.ts
示例4: setFolderOnSelectedMails
/**
* Set folder on selected mails
*
* @param folderId
*/
setFolderOnSelectedMails(folderId): void
{
this._mailService.setFolderOnSelectedMails(folderId);
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:9,代码来源:mail.component.ts
示例5: toggleLabelOnSelectedMails
/**
* Toggle label on selected mails
*
* @param labelId
*/
toggleLabelOnSelectedMails(labelId): void
{
this._mailService.toggleLabelOnSelectedMails(labelId);
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:9,代码来源:mail.component.ts
示例6: deselectMails
/**
* Deselect mails
*/
deselectMails(): void
{
this._mailService.deselectMails();
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:7,代码来源:mail.component.ts
示例7: selectMails
/**
* Select mails
*
* @param filterParameter
* @param filterValue
*/
selectMails(filterParameter?, filterValue?): void
{
this._mailService.selectMails(filterParameter, filterValue);
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:10,代码来源:mail.component.ts
示例8: toggleSelectAll
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Toggle select all
*/
toggleSelectAll(): void
{
this._mailService.toggleSelectAll();
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:11,代码来源:mail.component.ts
示例9: onSelectedChange
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* On selected change
*/
onSelectedChange(): void
{
this._mailService.toggleSelectedMail(this.mail.id);
}
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:11,代码来源:mail-list-item.component.ts
注:本文中的app/main/apps/mail/mail.service.MailService类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论