Trilium Frontend API
    Preparing search index...

    Class BlockWrapper

    A block wrapper defines a DOM node that wraps lines or other block wrappers at the top of the document. It affects any line or block widget that starts inside its range, including blocks starting directly at from but not including to.

    Hierarchy (View Summary)

    Index

    Properties

    attributes: Attrs
    endSide: number

    The bias value at the end of the range. Defaults to 0.

    mapMode: MapMode

    The mode with which the location of the range should be mapped when its from and to are the same, to decide whether a change deletes the range. Defaults to MapMode.TrackDel.

    point: boolean

    Determines whether this value marks a point range. Regular ranges affect the part of the document they cover, and are meaningless when empty. Point ranges have a meaning on their own. When non-empty, a point range is treated as atomic and shadows any ranges contained in it.

    startSide: number

    The bias value at the start of the range. Determines how the range is positioned relative to other ranges starting at this position. Defaults to 0.

    tagName: string

    Methods

    • Compare this value with another value. Used when comparing rangesets. The default implementation compares by identity. Unless you are only creating a fixed number of unique instances of your value type, it is a good idea to implement this properly.

      Parameters

      Returns boolean