本文整理匯總了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);
}
示例2: toggleImportant
/**
* Toggle important
*
* @param event
*/
toggleImportant(event): void
{
event.stopPropagation();
this.mail.toggleImportant();
this._mailService.updateMail(this.mail);
}
示例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);
}
示例4: setFolderOnSelectedMails
/**
* Set folder on selected mails
*
* @param folderId
*/
setFolderOnSelectedMails(folderId): void
{
this._mailService.setFolderOnSelectedMails(folderId);
}
示例5: toggleLabelOnSelectedMails
/**
* Toggle label on selected mails
*
* @param labelId
*/
toggleLabelOnSelectedMails(labelId): void
{
this._mailService.toggleLabelOnSelectedMails(labelId);
}
示例6: deselectMails
/**
* Deselect mails
*/
deselectMails(): void
{
this._mailService.deselectMails();
}
示例7: selectMails
/**
* Select mails
*
* @param filterParameter
* @param filterValue
*/
selectMails(filterParameter?, filterValue?): void
{
this._mailService.selectMails(filterParameter, filterValue);
}
示例8: toggleSelectAll
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* Toggle select all
*/
toggleSelectAll(): void
{
this._mailService.toggleSelectAll();
}
示例9: onSelectedChange
// -----------------------------------------------------------------------------------------------------
// @ Public methods
// -----------------------------------------------------------------------------------------------------
/**
* On selected change
*/
onSelectedChange(): void
{
this._mailService.toggleSelectedMail(this.mail.id);
}