Lowdefy
v3.23.3/container/ConfirmModal/

ConfirmModal

areas: content

A popup container, presenting the user with a modal confirmation dialog. The ConfirmModal has a single area, content.

To open the confirm modal, invoke the open method.

onClick:
- id: open
  type: CallMethod
  params:
    blockId: block_id
    method: open

id: block_id
type: ConfirmModal

properties:
Text of the Cancel button.
Modal content. Overridden by the "content" content area - supports html.
Text of the Ok button.
Modal title - supports html.
Width of the modal dialog.
type: object
properties:
  events:
    additionalProperties: false
    properties:
      onCancel:
        description: Trigger actions when Cancel button is clicked.
        type: array
      onClose:
        description: Triggered after onOk or onCancel actions are completed.
        type: array
      onOk:
        description: Trigger actions when Ok button is clicked.
        type: array
      onOpen:
        description: Trigger actions when confirm modal is opened.
        type: array
    type: object
  properties:
    additionalProperties: false
    properties:
      cancelButton:
        description: Cancel button properties.
        type: object
      cancelText:
        default: Cancel
        description: Text of the Cancel button.
        type: string
      centered:
        default: false
        description: Centered Modal.
        type: boolean
      content:
        description: Modal content. Overridden by the "content" content area - supports html.
        type: string
      icon:
        description: >-
          Name of an Ant Design Icon or properties of an Icon block to customize
          modal icon.
        type:
          - string
          - object
      mask:
        default: true
        description: Whether show mask or not.
        type: boolean
      maskClosable:
        default: false
        description: >-
          Whether to close the modal dialog when the mask (area outside the modal)
          is clicked.
        type: boolean
      modalStyle:
        description: Css style to applied to modal.
        type: object
      okButton:
        description: Ok button properties.
        type: object
      okText:
        default: Ok
        description: Text of the Ok button.
        type: string
      status:
        default: confirm
        description: Modal status type.
        enum:
          - success
          - error
          - info
          - warning
          - confirm
        type: string
      title:
        description: Modal title - supports html.
        type: string
      width:
        default: 416
        description: Width of the modal dialog.
        type:
          - number
          - string
      zIndex:
        default: 1000
        description: The z-index of the Modal.
        type: number
    type: object