ng2-bootstrap-base-modified
Version:
Native Angular Bootstrap Components Typeahead modified
45 lines (40 loc) • 1.06 kB
text/typescript
export interface ModalOptions {
/**
* Includes a modal-backdrop element. Alternatively, specify static for a backdrop which doesn't close the modal on click.
*/
backdrop?:boolean | 'static';
/**
* Closes the modal when escape key is pressed.
*/
keyboard?:boolean;
focus?:boolean;
/**
* Shows the modal when initialized.
*/
show?:boolean;
/**
* Ignore the backdrop click
*/
ignoreBackdropClick?:boolean;
}
export const modalConfigDefaults:ModalOptions = {
backdrop: true,
keyboard: true,
focus: true,
show: false,
ignoreBackdropClick: false
};
export const ClassName:any = {
SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
BACKDROP: 'modal-backdrop',
OPEN: 'modal-open',
FADE: 'fade',
IN: 'in', // bs3
SHOW: 'show' // bs4
};
export const Selector:any = {
DIALOG: '.modal-dialog',
DATA_TOGGLE: '[data-toggle="modal"]',
DATA_DISMISS: '[data-dismiss="modal"]',
FIXED_CONTENT: '.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed'
};