BlockSuite API Documentation / @blocksuite/affine-block-embed / IframeOptions
Type Alias: IframeOptions
IframeOptions =
object
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:19
The options for the iframe
Example
{
* widthInSurface: 640,
* heightInSurface: 152,
* heightInNote: 152,
* widthPercent: 100,
* style: 'border-radius: 12px;',
* allow: 'autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture',
* }Properties
allow?
optionalallow:string
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:27
allowFullscreen?
optionalallowFullscreen:boolean
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:28
heightInNote
heightInNote:
number
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:22
heightInSurface
heightInSurface:
number
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:21
referrerpolicy?
optionalreferrerpolicy:string
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:25
scrolling?
optionalscrolling:boolean
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:26
style?
optionalstyle:string
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:24
widthInSurface
widthInSurface:
number
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:20
widthPercent
widthPercent:
number
Defined in: packages/affine/blocks/block-embed/src/embed-iframe-block/extension/embed-iframe-config.ts:23