Type Parameters

Hierarchy (view full)

Constructors

Properties

added: T[]
isSwapped: boolean
items: T[]
modelId: number
observabilitySet: Set<ReactiveProp>
original: T[]
removed: T[]
type: FactoryType<T>

Methods

  • Parameters

    • added: T[]

    Returns void

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Search by function among items

    Parameters

    • fn: ((item: T) => boolean)
        • (item): boolean
        • Parameters

          • item: T

          Returns boolean

    Returns undefined | T

  • Returns the found collection element or null Iteratively traverses the elements of the collection, and returns the first element of the collection for which callback returns true.

    Parameters

    • callback: ((item: T, index: number, items: T[]) => boolean)

      search function

        • (item, index, items): boolean
        • Parameters

          • item: T
          • index: number
          • items: T[]

          Returns boolean

    Returns null | T

  • Find index of element or -1 by predicate (same as native findIndex method)

    Parameters

    • find: ((item: T, index: number, items: T[]) => boolean)
        • (item, index, items): boolean
        • Parameters

          • item: T
          • index: number
          • items: T[]

          Returns boolean

    Returns number

  • Iteratively traverses the collection elements

    Parameters

    • callback: ((item: T, index: number, items: T[]) => void)

      search function

        • (item, index, items): void
        • Parameters

          • item: T
          • index: number
          • items: T[]

          Returns void

    Returns void

  • Parameters

    • index: number

    Returns undefined | T

  • Returns T[]

  • Parameters

    • propName: string
    • values: any[]

    Returns T[]

  • Returns boolean

  • Get the number of items in the collection

    Returns number

  • Returns boolean

  • Returns boolean

  • Returns T[]

  • Returns a new array containing all the items in the collection.

    Returns T[]

  • Returns T[]

  • Returns T[]

  • Returns the index of an item in the collection. If the item is not in the collection -1 is returned

    Parameters

    • item: T

    Returns number

  • Inserts an element after an element

    Parameters

    • model: T

      Model

    • after: T

      the element to insert after

    Returns void

  • Inserts an item in the collection in the index position

    Parameters

    • model: T
    • index: number
    • OptionalskipValidation: boolean

    Returns void

  • Inserts an element before the element

    Parameters

    • model: T

      Model

    • before: T

      the element to insert before

    Returns void

  • Inserts the item first in the collection

    Parameters

    • model: T

    Returns void

  • Inserts the item last in the collection

    Parameters

    • model: T
    • OptionalskipValidation: boolean

    Returns void

  • Parameters

    Returns boolean

  • Moves item to new position

    Parameters

    • oldIndex: number
    • newIndex: number

    Returns void

  • Parameters

    Returns void

  • Replace an item in the collection in the index position

    Parameters

    • model: T
    • index: number
    • OptionalskipValidation: boolean

    Returns void

  • Returns void

  • Parameters

    • Optionalconfig: any

    Returns object[]

  • Parameters

    • added: T[]

    Returns void

  • Parameters

    • original: T[]

    Returns void

  • Parameters

    • phantom: boolean

    Returns void

  • Make some of the system properties reactive in the current model

    Parameters

    Returns void

  • Make all models in the collection and their properties reactive

    Parameters

    Returns void

  • Parameters

    • removed: T[]

    Returns void

  • Returns number

  • Parameters

    • OptionalcompareFn: ((a: T, b: T) => number)
        • (a, b): number
        • Parameters

          Returns number

    Returns void

  • Swaps items in the collection

    Parameters

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • Optionaldeep: boolean

      flag for validate NOT only collection validators, but validators in each models in collection

    • OptionaldisablePropagation: boolean

      Parent cmp notification flag about validation

    Returns IValidationResult