src/bs-modal-option.ts
backdrop |
backdrop: |
Type : boolean | "static"
|
Whether a backdrop element should be created for a given modal (true by default). |
container |
container: |
Type : string
|
An element to which to attach newly opened modal windows. |
keyboard |
keyboard: |
Type : boolean
|
Whether to close the modal when escape key is pressed (true by default). |
size |
size: |
Type : "sm" | "lg"
|
Size of a new modal window. |
windowClass |
windowClass: |
Type : string
|
Custom class to append to the modal window |
export interface BsModalOptions {
/**
* Whether a backdrop element should be created for a given modal (true by default).
* Alternatively, specify 'static' for a backdrop which doesn't close the modal on click.
*/
backdrop?: boolean | 'static';
/**
* An element to which to attach newly opened modal windows.
*/
container?: string;
/**
* Whether to close the modal when escape key is pressed (true by default).
*/
keyboard?: boolean;
/**
* Size of a new modal window.
*/
size?: 'sm' | 'lg';
/**
* Custom class to append to the modal window
*/
windowClass?: string;
}