Hierarchy

Properties

Methods

Properties

fullCode: string

The code in the editor with no ranges collapsed.

Methods

  • Toggles whether a range is folded. Does not cause a rerender so it's possible to toggle multiple folds simultaneously.

    Parameters

    • lineNumber: number

      The line number of the fold.

    • Optional force: boolean

      If set to true, the range will only be folded. If false, the range will only be unfolded. If undefined, it will be toggled.

    Returns boolean

    A boolean indicating whether or not a fold was toggled which means calling updateFolds in the near future is necessary.

Generated using TypeDoc