BlockSuite API Documentation / @blocksuite/blocks / createSimplePortal
Function: createSimplePortal()
createSimplePortal(
__namedParameters
):HTMLDivElement
Similar to <blocksuite-portal>
, but only renders once when called.
The template should be a static template since it will not be re-rendered unless updatePortal
is called.
See Portal for more details.
Parameters
• __namedParameters: PortalOptions
Returns
HTMLDivElement
Defined in
packages/affine/components/dist/portal/helper.d.ts:9