本文整理匯總了TypeScript中ngx-bootstrap/modal.ModalDirective類的典型用法代碼示例。如果您正苦於以下問題:TypeScript ModalDirective類的具體用法?TypeScript ModalDirective怎麽用?TypeScript ModalDirective使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了ModalDirective類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
show$(title: string, description: string): Observable<boolean> {
// Change modal content
this.title = title;
this.description = description;
// Prepare return value
this._confirmationSource = new Subject<boolean>();
const confirmation$ = this._confirmationSource.asObservable();
// Show modal
this.modal.show();
return confirmation$;
}
示例2: hideChildModal
public hideChildModal():void {
this.childModal.hide();
}
示例3: showChildModal
public showChildModal():void {
this.childModal.show();
}
示例4: show
// invoked by the parent
show() {
this.modal.show();
}
示例5:
result => {
this.settingAritcleModel.hide();
this.router.navigate(['/']);
}
示例6: showSettingModel
showSettingModel() {
this.settingAritcleModel.show();
}
示例7: showModal
showModal() {
this.messages = [];
this.modal.show();
}
示例8: no
no() {
this._confirmationSource.next(false);
this.modal.hide();
}
示例9: yes
yes() {
this._confirmationSource.next(true);
this.modal.hide();
}