Skip to content

API > @blocksuite/blocks > getBlockElementByPath

Function: getBlockElementByPath ​

getBlockElementByPath(path): null | BlockElement< BaseBlockModel< object >, BlockService< BaseBlockModel< object > >, string >

Parameters ​

ParameterType
pathstring[]

Returns ​

null | BlockElement< BaseBlockModel< object >, BlockService< BaseBlockModel< object > >, string >

Defined In ​

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