Trilium Frontend API
    Preparing search index...

    Interface BadgeConfig

    The badge configuration options.

    interface BadgeConfig {
        horizontalOffset: number;
        position: "inside" | "border";
        side: "left" | "right";
        verticalOffset: number;
    }
    Index

    Properties

    horizontalOffset: number

    The horizontal distance between the side of the editing root and the nearest side of the badge.

    5
    
    position: "inside" | "border"

    The position of the badge.

    • When 'inside', the badge will be displayed within the boundaries of the editing area.
    • When 'border', the basge will be displayed over the bottom border of the editing area.
    'border'
    
    side: "left" | "right"

    Allows choosing the side of the editing area where the badge will be displayed.

    Note: If module:core/editor/editorconfig~EditorConfig#language config.language is set to an RTL (right-to-left) language, the side switches to 'left' by default.

    'right'
    
    verticalOffset: number

    The vertical distance the badge can be moved away from its default position.

    Note: If position is 'border', the offset is measured from the (vertical) center of the badge.

    5