本文整理汇总了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();
}
示例2: closeManageSubModal
closeManageSubModal() {
this.clearError();
this.modalState = new ModalState();
this.manageSubTabset=false;
this.manageSubModal.hide();
}
示例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();
}
示例4: closeCreateSubModal
closeCreateSubModal() {
this.modalState = new ModalState();
this.createSubModal.hide();
this.createSubTabset = false;
}
示例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();
}
示例6: openCloseModal
openCloseModal(vote:Vote): void {
this.vote = vote;
this.closeModal.show();
}
示例7: openDelModal
openDelModal(roleId:IRole): void {
this.role = roleId;
this.delModal.show();
}
示例8: show
show(){
this.modal.show();
}
示例9: showChildModal
public showChildModal():void {
this.childModal.show();
}
示例10: hideChildModal
public hideChildModal():void {
this.childModal.hide();
}