modal-options.class.d.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { ClassName, DismissReasons, Selector, TransitionDurations } from './models';
  2. export declare class ModalOptions {
  3. /**
  4. * Includes a modal-backdrop element. Alternatively,
  5. * specify static for a backdrop which doesn't close the modal on click.
  6. */
  7. backdrop?: boolean | 'static';
  8. /**
  9. * Closes the modal when escape key is pressed.
  10. */
  11. keyboard?: boolean;
  12. focus?: boolean;
  13. /**
  14. * Shows the modal when initialized.
  15. */
  16. show?: boolean;
  17. /**
  18. * Ignore the backdrop click
  19. */
  20. ignoreBackdropClick?: boolean;
  21. /**
  22. * Css class for opened modal
  23. */
  24. class?: string;
  25. /**
  26. * Toggle animation
  27. */
  28. animated?: boolean;
  29. /**
  30. * Modal data
  31. */
  32. initialState?: Object;
  33. }
  34. export declare const modalConfigDefaults: ModalOptions;
  35. export declare const CLASS_NAME: ClassName;
  36. export declare const SELECTOR: Selector;
  37. export declare const TRANSITION_DURATIONS: TransitionDurations;
  38. export declare const DISMISS_REASONS: DismissReasons;