Skip to content

API > @blocksuite/blocks > getModelByBlockElement

Function: getModelByBlockElement ​

getModelByBlockElement(element): BaseBlockModel< object >

Returns the model of the block element.

Parameters ​

ParameterType
elementElement

Returns ​

BaseBlockModel< object >

Defined In ​

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