当前位置: 首页>>代码示例>>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;未经允许,请勿转载。