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


TypeScript ng2-bootstrap.ModalDirective類代碼示例

本文整理匯總了TypeScript中ng2-bootstrap/ng2-bootstrap.ModalDirective的典型用法代碼示例。如果您正苦於以下問題:TypeScript ModalDirective類的具體用法?TypeScript ModalDirective怎麽用?TypeScript ModalDirective使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ModalDirective類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: showManagePatrolModal

 showManagePatrolModal(index: number, patrolId: number, patrolName: string, hasSubs: boolean, hasPending: boolean) {
   this.modalState = new ModalState(index, patrolId, patrolName, hasSubs, hasPending);
   this.error = '';
   if (hasSubs) {
     this.updateSubHistory(patrolId);
   }
   this.managePatrolModal.show();
   
 }
開發者ID:bpblack,項目名稱:baker-patrol-frontend,代碼行數:9,代碼來源:duty_day.component.ts

示例2: closeManageSubModal

 closeManageSubModal() {
   this.clearError();
   this.modalState = new ModalState();
   this.manageSubTabset=false;
   this.manageSubModal.hide();
 }
開發者ID:bpblack,項目名稱:baker-patrol-frontend,代碼行數:6,代碼來源:patrols.component.ts

示例3: showManageSubModal

 // Sub management modal controls
 showManageSubModal($event) {
   this.manageSubTabset=true;
   this.modalState = new ModalState($event.index, $event.patrolId, $event.date, $event.subId, $event.subUserId, $event.subName);
   this.manageSubModal.show();
 }
開發者ID:bpblack,項目名稱:baker-patrol-frontend,代碼行數:6,代碼來源:patrols.component.ts

示例4: closeCreateSubModal

 closeCreateSubModal() {
   this.modalState = new ModalState();
   this.createSubModal.hide();
   this.createSubTabset = false;
 }
開發者ID:bpblack,項目名稱:baker-patrol-frontend,代碼行數:5,代碼來源:patrols.component.ts

示例5: showCreateSubModal

 // Sub request creation modal controls
 showCreateSubModal($event) {
   this.createSubTabset = true;
   this.modalState = new ModalState($event.index, $event.patrolId, $event.date);
   this.createSubModal.show();
 }
開發者ID:bpblack,項目名稱:baker-patrol-frontend,代碼行數:6,代碼來源:patrols.component.ts

示例6: openCloseModal

 openCloseModal(vote:Vote): void {
     this.vote = vote;
     this.closeModal.show();   
 }
開發者ID:NazDov,項目名稱:myosbb,代碼行數:4,代碼來源:vote-close-form.component.ts

示例7: openDelModal

 openDelModal(roleId:IRole): void {
     this.role = roleId;
     this.delModal.show();   
 }
開發者ID:NazDov,項目名稱:myosbb,代碼行數:4,代碼來源:role-del-form.component.ts

示例8: show

 show(){
     this.modal.show(); 
 }
開發者ID:Kraigo,項目名稱:TimeTracker,代碼行數:3,代碼來源:categories-modal.component.ts

示例9: showChildModal

 public showChildModal():void {
     this.childModal.show();
 }
開發者ID:PwBwolf,項目名稱:TGR,代碼行數:3,代碼來源:navigation.component.ts

示例10: hideChildModal

 public hideChildModal():void {
     this.childModal.hide();
 }
開發者ID:PwBwolf,項目名稱:TGR,代碼行數:3,代碼來源:navigation.component.ts


注:本文中的ng2-bootstrap/ng2-bootstrap.ModalDirective類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。