Trilium Frontend API
    Preparing search index...

    Interface ModelSchemaCompiledItemDefinition

    A simplified version of module:engine/model/schema~ModelSchemaItemDefinition after compilation by the module:engine/model/schema~ModelSchema schema. Rules fed to the schema by module:engine/model/schema~ModelSchema#register and module:engine/model/schema~ModelSchema#extend methods are defined in the module:engine/model/schema~ModelSchemaItemDefinition format. Later on, they are compiled to ModelSchemaCompiledItemDefinition so when you use e.g. the module:engine/model/schema~ModelSchema#getDefinition method you get the compiled version.

    The compiled version contains only the following properties:

    • The name property,
    • The is* properties,
    • The allowIn array,
    • The allowChildren array,
    • The allowAttributes array.
    interface ModelSchemaCompiledItemDefinition {
        allowAttributes: string[];
        allowChildren: string[];
        allowIn: string[];
        isBlock: boolean;
        isContent: boolean;
        isInline: boolean;
        isLimit: boolean;
        isObject: boolean;
        isSelectable: boolean;
        name: string;
    }
    Index

    Properties

    allowAttributes: string[]
    allowChildren: string[]
    allowIn: string[]
    isBlock: boolean
    isContent: boolean
    isInline: boolean
    isLimit: boolean
    isObject: boolean
    isSelectable: boolean
    name: string