Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INewPortalModalRequest

Request for rendering a new modal.

An example request to render a div with a span child into a modal with some-modal-id:

example

{
    type: 'portal:render',
    modalId: 'some-modal-id',
    contents: {
        tag: 'div',
        attributes: {
            onClick: {
                callbackId: onDivClick,
                mode: 'async'
            }
        },
        children: [
            "Text can go here"
       ]
    }
}

Hierarchy

  • INewPortalModalRequest

Index

Properties

Properties

contents

contents: IModalElement

The content to be rendered in the modal.

modalId

modalId: string

The id for the object that triggers the new modal event.

type

type: ModalNew

Must be ModalNew.

Generated using TypeDoc