Skip to main content

mind-elixir.expandoperation

Home > mind-elixir > ExpandOperation

ExpandOperation type​

Collapse / expand of a node. expanded lives in the node data, so folding is a document change like any other and lands on the undo timeline. recursive and level describe the batch entry points (expandNodeAll, Ctrl+K) that touch descendants too.

Signature:

export type ExpandOperation = OperationBase<'expandNode' | 'collapseNode', NodeObj> & {
recursive?: boolean;
level?: number;
};

References: NodeObj