@umbraco-cms/backoffice
    Preparing search index...

    Class Node<Options, Storage>

    The Node class is used to create custom node extensions.

    Type Parameters

    • Options = any
    • Storage = any

    Hierarchy

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    child:
        | null
        | Extendable<
            any,
            any,
            NodeConfig<any, any>
            | ExtensionConfig<any, any>
            | MarkConfig<any, any>,
        >
    config: NodeConfig
    name: string
    parent:
        | null
        | Extendable<
            any,
            any,
            NodeConfig<any, any>
            | ExtensionConfig<any, any>
            | MarkConfig<any, any>,
        >
    type: string

    Accessors

    • get options(): Options

      Returns Options

    • get storage(): Readonly<Storage>

      Returns Readonly<Storage>

    Methods

    • Create a new Node instance

      Type Parameters

      • O = any
      • S = any

      Parameters

      • Optionalconfig: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)

        Node configuration object or a function that returns a configuration object

      Returns Node<O, S>