Skip to content

API > @blocksuite/blocks > isEdgelessPage

Function: isEdgelessPage ​

isEdgelessPage(element): element is EdgelessPageBlockComponent

Returns true if element is edgeless page.

Parameters ​

ParameterType
elementElement

Returns ​

element is EdgelessPageBlockComponent

Deprecated ​

Use context instead. The edgeless page may be customized by the user so it's not recommended to use this method. \

Defined In ​

packages/blocks/src/_common/utils/query.ts:386