API > @blocksuite/blocks > getDocPageByElement
Function: getDocPageByElement ​
getDocPageByElement(
ele):null|DocPageBlockComponent
If it's not in the page mode, it will return null directly.
Parameters ​
| Parameter | Type | 
|---|---|
ele | Element | 
Returns ​
null | DocPageBlockComponent
Defined In ​
packages/blocks/src/_common/utils/query.ts:164