本文整理匯總了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();
}