當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript mail.service.MailService類代碼示例

本文整理匯總了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;未經允許,請勿轉載。