File

src/bs-modal-option.ts

Properties

backdrop
backdrop: boolean | "static"
Type : boolean | "static"

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.

container
container: string
Type : string

An element to which to attach newly opened modal windows.

keyboard
keyboard: boolean
Type : boolean

Whether to close the modal when escape key is pressed (true by default).

size
size: "sm" | "lg"
Type : "sm" | "lg"

Size of a new modal window.

windowClass
windowClass: string
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;
}

results matching ""

    No results matching ""