Trilium Frontend API
    Preparing search index...

    Class default<T>

    Type Parameters

    • T = void
    Index

    Constructors

    Methods

    • Parameters

      Returns Promise<void>

    • Returns boolean

    • Parameters

      Returns void

    • Swaps the binding to a new target. If the key changes while a change is still pending, the change is first snapshotted with the previous binding (and committed in the background, addressed to the previous key), so it can never be saved under the new key.

      Parameters

      Returns void

    • Normally () would actually trigger the update only once per updateInterval. If the method is called 200 times within 20s, it will execute only 20 times. Sometimes, if the updates are continuous this would cause a performance impact. Resetting the time ensures that the calls to the update have stopped before actually triggering an update.

      Returns void

    • Returns void

    • Sets the update interval for the spaced update.

      Parameters

      • interval: number

        The update interval in milliseconds.

      Returns void

    • Flushes the pending change (if any) and waits until all queued snapshots are persisted.

      Returns Promise<void>