本文整理汇总了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;
};
}
示例2: openAboutModal
openAboutModal() {
this.modalRef = this.modalService.show(AboutComponent);
}
示例3:
openModal2(template: TemplateRef<any>) {
this.modalRef2 = this.modalService.show(template, { class: 'second' });
}
示例4: openModal
openModal(template: TemplateRef<any>) {
this.modalRef = this.modalService.show(template, { class: 'modal-sm' });
}
示例5: openModalWithClass
openModalWithClass(template: TemplateRef<any>) {
this.modalRef = this.modalService.show(
template,
Object.assign({}, { class: 'gray modal-lg' })
);
}
示例6: openAbout
public openAbout( template: TemplateRef< any > ): void {
this.aboutRef = this.modalService.show( template );
}
示例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;
};
}
示例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;
};
}
示例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;
};
}
示例10: openModal
openModal(template: TemplateRef<any>) {
this.modalRef = this.modalService.show(template);
}