ng-xtend API documentation
    Preparing search index...

    Class SpecialFields<Type>

    Manages special field metadata for a type, including id field, date fields, display templates, numeric value fields, old field name mappings, and cross-type mappings.

    Type Parameters

    • Type
    Index

    Constructors

    Properties

    dateFields?: (keyof Type)[]

    Keep track of date fields for json conversion Undefined means not evaluated, null or empty means the type does not have any date field

    displayTemplate?: TemplateFunction

    Squirrelly template for calculating the string to display

    idField?: keyof Type

    Undefined means not evaluated, null means the type does not have any id field

    mappingFromType: Map<string, MappingHelper<any, Type>> = ...

    Map of source type name to mapping helper for cross-type conversion

    numericValueField?: keyof Type

    Field used to provide numerical value for calculation

    oldFields?: OldField<Type>[]

    Old field names that needs to be converted to new ones when loaded from json

    Methods

    • Checks whether a type string represents a date-compatible type

      Parameters

      • type: string

        The type string to check

      Returns boolean

      True if the type is Date, string, or number