Trilium Frontend API
    Preparing search index...

    Interface DomPositioningFunctionResult

    The result of module:utils/dom/position~PositioningFunction.

    interface DomPositioningFunctionResult {
        config?: object;
        left: number;
        name?: string;
        top: number;
    }
    Index

    Properties

    Properties

    config?: object

    An optional configuration that will pass-through the module:utils/dom/position~getOptimalPosition helper to the module:utils/dom/position~DomPoint returned by this helper. This configuration may, for instance, let the user of module:utils/dom/position~getOptimalPosition know that this particular position comes with a certain presentation.

    left: number

    The left value of the element rect that would represent the position.

    name?: string

    The name of the position. It helps the user of the module:utils/dom/position~getOptimalPosition helper to recognize different positioning function results. It will pass through to the module:utils/dom/position~DomPoint returned by the helper.

    top: number

    The top value of the element rect that would represent the position.