v11 backdrop and ignore click.
This commit is contained in:
parent
75068c238a
commit
a1f3f19ec8
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@poweredsoft/ngx-bootstrap",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"description": "an internal use libary for handling data souces grid filtering sorting, add commands etc",
|
||||
"keywords": [
|
||||
"angular",
|
||||
|
@ -23,6 +23,8 @@ export class CommandModalDirective {
|
||||
@Input() btnClass:string;
|
||||
@Input() modalSize: string;
|
||||
@Input() disableValidationSummary: boolean;
|
||||
@Input() backdrop: boolean;
|
||||
@Input() ignoreBackdropClick: boolean;
|
||||
|
||||
@Output() success: EventEmitter<any> = new EventEmitter<any>();
|
||||
|
||||
@ -48,7 +50,9 @@ export class CommandModalDirective {
|
||||
this.modalService.show(CommandModalComponent, {
|
||||
animated: this.animated === undefined ? true : this.animated,
|
||||
class: this.modalSize,
|
||||
initialState
|
||||
initialState,
|
||||
backdrop: this.backdrop === undefined ? true : this.backdrop,
|
||||
ignoreBackdropClick: this.ignoreBackdropClick === undefined ? false : this.ignoreBackdropClick
|
||||
});
|
||||
|
||||
}, error => {
|
||||
|
@ -29,10 +29,14 @@ export class FormGroupCommandModalDirective {
|
||||
@Input() refreshOnSuccess: boolean;
|
||||
@Input() commandText: string;
|
||||
@Input() cancelText: string;
|
||||
@Input() backdrop: boolean;
|
||||
@Input() ignoreBackdropClick: boolean;
|
||||
|
||||
@Output() formCreate: EventEmitter<IModelFormCreateEvent> = new EventEmitter<IModelFormCreateEvent>();
|
||||
|
||||
@Output() success: EventEmitter<any> = new EventEmitter<any>();
|
||||
|
||||
|
||||
constructor(private modalService: BsModalService) { }
|
||||
|
||||
@HostListener('click')
|
||||
@ -70,7 +74,9 @@ export class FormGroupCommandModalDirective {
|
||||
|
||||
this.modalService.show(FormGroupCommandModalComponent, {
|
||||
animated: this.animated === undefined ? true : this.animated,
|
||||
initialState
|
||||
initialState,
|
||||
backdrop: this.backdrop === undefined ? true : this.backdrop,
|
||||
ignoreBackdropClick: this.ignoreBackdropClick === undefined ? false : this.ignoreBackdropClick
|
||||
});
|
||||
|
||||
}, error => {
|
||||
|
Loading…
Reference in New Issue
Block a user