Trilium Frontend API
    Preparing search index...

    Class ViewPlugin<V, Arg>

    View plugins associate stateful values with a view. They can influence the way the content is drawn, and are notified of things that happen in the view. They optionally take an argument, in which case you need to call of to create an extension for the plugin. When the argument type is undefined, you can use the plugin instance as an extension directly.

    Type Parameters

    Index

    Properties

    Methods

    Properties

    extension: Arg extends undefined ? Extension : null

    When Arg is undefined, instances of this class act as extensions. Otherwise, you have to call of to create an extension value.

    Methods

    • Create an extension for this plugin with the given argument.

      Parameters

      Returns Extension