Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPortalRenderRequest

Request for rendering content into a portal.

An example request to render an iframe with a span child into some-portal-id:

example

{
   type: 'portal:render',
   portalId: 'some-portal-id',
   contents: {
       tag: 'iframe',
       props: {
           style: {
               color: 'red',
               height: '100px',
               width: '100px'
           },
           className: 'this-class',
           src: 'www.blackboard.com'
       },
       children: [
           {
               tag: 'span',
               props: {
                   style: {
                       color: 'blue'
                   }
               }
           }
       ]
   }
}

Hierarchy

  • IPortalRenderRequest

Index

Properties

Properties

contents

contents: PortalElement

PortalElement content to render.

portalId

portalId: string

The portal to render content into.

type

type: "portal:render"

Generated using TypeDoc