Skip to main content

RootMode

type

The RootMode is specified in all caret traversals where the traversal can go up towards the root. 'root' means that it will stop at the document root, and 'shadowRoot' will stop at the document root or any shadow root (per $isRootOrShadowRoot).

type RootMode = 'root' | 'shadowRoot'

Import

import { RootMode } from '@modular/sdk/editor';