toast-config.d.ts 1007 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Interface used to type all toast config options. See `NgbToastConfig`.
  3. *
  4. * @since 5.0.0
  5. */
  6. export interface NgbToastOptions {
  7. /**
  8. * Specify if the toast component should emit the `hide()` output
  9. * after a certain `delay` in ms.
  10. */
  11. autohide?: boolean;
  12. /**
  13. * Delay in ms after which the `hide()` output should be emitted.
  14. */
  15. delay?: number;
  16. /**
  17. * Type of aria-live attribute to be used.
  18. *
  19. * Could be one of these 2 values (as string):
  20. * - `polite` (default)
  21. * - `alert`
  22. */
  23. ariaLive?: 'polite' | 'alert';
  24. }
  25. /**
  26. * Configuration service for the NgbToast component. You can inject this service, typically in your root component,
  27. * and customize the values of its properties in order to provide default values for all the toasts used in the
  28. * application.
  29. *
  30. * @since 5.0.0
  31. */
  32. export declare class NgbToastConfig implements NgbToastOptions {
  33. autohide: boolean;
  34. delay: number;
  35. ariaLive: 'polite' | 'alert';
  36. }