Trilium Frontend API
    Preparing search index...

    Interface ReplaceDecorationSpec

    interface ReplaceDecorationSpec {
        block?: boolean;
        inclusive?: boolean;
        inclusiveEnd?: boolean;
        inclusiveStart?: boolean;
        widget?: WidgetType;
        [other: string]: any;
    }

    Indexable

    • [other: string]: any

      Other properties are allowed.

    Index

    Properties

    block?: boolean

    Whether this is a block-level decoration. Defaults to false.

    inclusive?: boolean

    Whether this range covers the positions on its sides. This influences whether new content becomes part of the range and whether the cursor can be drawn on its sides. Defaults to false for inline replacements, and true for block replacements.

    inclusiveEnd?: boolean

    Set inclusivity at the end.

    inclusiveStart?: boolean

    Set inclusivity at the start.

    widget?: WidgetType

    An optional widget to drawn in the place of the replaced content.