Type Alias PopUp

PopUp: {
    hide: () => void;
    overlay: {
        hide: () => void;
        show: (content: Content) => void;
        showActions: (
            title: Content,
            content: Content,
            actions: Omit<PopUpAction, "confirm">[],
        ) => void;
        showConfirm: (
            content: Content,
            onYes: () => void,
            onNo?: () => void,
        ) => void;
    };
    remove: () => void;
    show: () => void;
    update: (options: Partial<PopUpOptions>) => void;
}

Represents a PopUp with methods to control its visibility and content.

Type declaration

  • hide: () => void

    Hides the modal.

  • overlay: {
        hide: () => void;
        show: (content: Content) => void;
        showActions: (
            title: Content,
            content: Content,
            actions: Omit<PopUpAction, "confirm">[],
        ) => void;
        showConfirm: (
            content: Content,
            onYes: () => void,
            onNo?: () => void,
        ) => void;
    }

    The overlay for the modal.

    • hide: () => void

      Hides the overlay.

    • show: (content: Content) => void

      Shows the overlay.

    • showActions: (
          title: Content,
          content: Content,
          actions: Omit<PopUpAction, "confirm">[],
      ) => void

      Shows the overlay with custom actions.

    • showConfirm: (content: Content, onYes: () => void, onNo?: () => void) => void

      Shows the overlay with yes/no buttons.

  • remove: () => void

    Removes the modal.

  • show: () => void

    Shows the modal.

  • update: (options: Partial<PopUpOptions>) => void

    Updates the modal options.