当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript modal.BsModalService类代码示例

本文整理汇总了TypeScript中ngx-bootstrap/modal.BsModalService的典型用法代码示例。如果您正苦于以下问题:TypeScript BsModalService类的具体用法?TypeScript BsModalService怎么用?TypeScript BsModalService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了BsModalService类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: create

  create() {
    const initialState = {
      title: 'Criar Novo Quiz',
      quiz: new Quiz(null,null,null,null,null,null,null,null,null,null,null,null,null,null),
      mensage: 'Quiz criado com sucesso',
      modify: false,
      password: ""
    };
    this.bsModalRef = this.modalService.show(NewQuizComponent, {initialState});
    this.bsModalRef.content.closeBtnName = 'Fechar';

    // funcao que recebe valores do modal
    this.bsModalRef.content.onClose = (myData) => {
        this.updateList();
        this.bsModalRef.hide();
        this.myData = myData;
    };


  }
开发者ID:CompCult,项目名称:mv-front,代码行数:20,代码来源:quiz.component.ts

示例2: openAboutModal

 openAboutModal() {
   this.modalRef = this.modalService.show(AboutComponent);
 }
开发者ID:yanghonggang,项目名称:ceph,代码行数:3,代码来源:dashboard-help.component.ts

示例3:

 openModal2(template: TemplateRef<any>) {
   this.modalRef2 = this.modalService.show(template, { class: 'second' });
 }
开发者ID:OlegDubrovskyi,项目名称:ngx-bootstrap,代码行数:3,代码来源:service-nested.ts

示例4: openModal

 openModal(template: TemplateRef<any>) {
   this.modalRef = this.modalService.show(template, { class: 'modal-sm' });
 }
开发者ID:OlegDubrovskyi,项目名称:ngx-bootstrap,代码行数:3,代码来源:service-nested.ts

示例5: openModalWithClass

 openModalWithClass(template: TemplateRef<any>) {
   this.modalRef = this.modalService.show(
     template,
     Object.assign({}, { class: 'gray modal-lg' })
   );
 }
开发者ID:OlegDubrovskyi,项目名称:ngx-bootstrap,代码行数:6,代码来源:custom-css-class.ts

示例6: openAbout

 public openAbout( template: TemplateRef< any > ): void {
   this.aboutRef = this.modalService.show( template );
 }
开发者ID:tejones,项目名称:beetle-studio,代码行数:3,代码来源:vertical-nav.component.ts

示例7: create

  create() {

    this.bsModalRef = this.modalService.show(NewAppointmentsComponent);
    this.bsModalRef.content.closeBtnName = 'fechar';

    // funcao que recebe valores do modal
    this.bsModalRef.content.onClose = (myData) => {
      this.refresh();
      this.bsModalRef.hide();
      this.myData = myData;
    };
  }
开发者ID:CompCult,项目名称:mv-front,代码行数:12,代码来源:appointments.component.ts

示例8:

option(missionAnswer: MissionAnswer) {
  const initialState = {
    title: 'Opções de Missões',
    missionAnswer: missionAnswer,
    mensage: 'Missões criadas com sucesso',
    modify: true,
    password: ""
  };
  this.bsModalRef = this.modalService.show(EvaluationMissionComponent, {initialState});
  this.bsModalRef.content.closeBtnName = 'Fechar';

  // funcao que recebe valores do modal
  this.bsModalRef.content.onClose = (myData) => {
      this.updateList();
      this.bsModalRef.hide();
      this.myData = myData;
  };
}
开发者ID:CompCult,项目名称:mv-front,代码行数:18,代码来源:mission-answer.component.ts

示例9: option

  option(quiz: Quiz) {
    const initialState = {
      title: 'Opçoes de Usuario',
      quiz: quiz,
      mensage: 'Usuario criado com sucesso',
      modify: true,
      password: ""
    };
    this.bsModalRef = this.modalService.show(NewQuizComponent, {initialState});
    this.bsModalRef.content.closeBtnName = 'Fechar';

    // funcao que recebe valores do modal
    this.bsModalRef.content.onClose = (myData) => {
        this.updateList();
        this.bsModalRef.hide();
        this.myData = myData;
    };
  }
开发者ID:CompCult,项目名称:mv-front,代码行数:18,代码来源:quiz.component.ts

示例10: openModal

 openModal(template: TemplateRef<any>) {
   this.modalRef = this.modalService.show(template);
 }
开发者ID:OlegDubrovskyi,项目名称:ngx-bootstrap,代码行数:3,代码来源:scrolling-long-content.ts


注:本文中的ngx-bootstrap/modal.BsModalService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。