RevGrid - v0.9.3
    Preparing search index...

    Type Parameters

    • T
    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get all(): T[]

      Returns T[]

    Methods

    • Parameters

      • name: string

      Returns undefined | T

    • Register an item and return it.

      Parameters

      • name: string

        Case-insensitive item key. If not given, fallsback to item.prototype.$$CLASS_NAME or item.prototype.name or item.name.

      • item: T

        If unregistered or omitted, nothing is added and method returns undefined.

      Returns T

      Newly registered item or undefined if unregistered.

      Adds an item to the registry using the provided name (or the class name), converted to all lower case.