alert-options.d.ts 686B

123456789101112131415161718192021222324252627282930
  1. export interface AlertOptions {
  2. title?: string;
  3. subTitle?: string;
  4. message?: string;
  5. cssClass?: string;
  6. mode?: string;
  7. inputs?: AlertInputOptions[];
  8. buttons?: (AlertButton | string)[];
  9. enableBackdropDismiss?: boolean;
  10. }
  11. export interface AlertInputOptions {
  12. type?: string;
  13. name?: string | number;
  14. placeholder?: string;
  15. value?: string;
  16. label?: string;
  17. checked?: boolean;
  18. disabled?: boolean;
  19. id?: string;
  20. handler?: Function;
  21. min?: string | number;
  22. max?: string | number;
  23. }
  24. export interface AlertButton {
  25. text?: string;
  26. role?: string;
  27. cssClass?: string;
  28. handler?: (value: any) => boolean | void;
  29. }