Trilium Frontend API
    Preparing search index...

    Class StateField<Value>

    Fields can store additional information in an editor state, and keep it in sync with the rest of the state.

    Type Parameters

    • Value
    Index

    Accessors

    Methods

    Accessors

    • get extension(): Extension

      State field instances can be used as Extension values to enable the field in a given state.

      Returns Extension

    Methods

    • Returns an extension that enables this field and overrides the way it is initialized. Can be useful when you need to provide a non-default starting value for the field.

      Parameters

      Returns Extension