Options
All
  • Public
  • Public/Protected
  • All
Menu

Module view/popups/ConfirmPopup

Type aliases

Functions

Type aliases

Props

Props: object

React props for ConfirmPopup component

Type declaration

  • onClose: function

    Function called when the popup should close

      • (): void
      • Returns void

  • Optional onConfirm?: undefined | function

    Function called when the popup is confirmed

  • Optional onRefuse?: undefined | function

    Function called when the popup is refused

  • open: boolean

    True if and only if the popup should be opened

Functions

Const ConfirmPopup

  • ConfirmPopup(__namedParameters: object): Element
  • React Component representing universal confirmation popup. It can show any content and calls onConfirm/onRefuse function according to the user's action.

    Parameters

    • __namedParameters: object
      • children: undefined | null | string | number | false | true | object | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • onClose: function
          • (): void
          • Returns void

      • open: boolean
      • onConfirm: function
        • onConfirm(): void
        • Returns void

      • onRefuse: function
        • onRefuse(): void
        • Returns void

    Returns Element

Generated using TypeDoc