Datacontainer, this can be used as input for multible datasources

Constructors

  • Parameters

    • OptionalUniqueKeyAttribute: string

      fo selection usage, this way it can be persistant when dealing with remote data

    Returns DataContainer

Accessors

  • get type(): string
  • Internal

    so I can check

    Returns string

Methods

  • Returns void

  • returns a copy of changes

    Returns any

  • return collection slice

    Returns Entity[]

  • return entities marked for deletion

    Returns Entity[]

  • gives you the entire collection

    Returns number

    array of entities

  • mark data for deletion, will not show in searches/grouping

    Parameters

    • data: Entity | Entity[]

      set null if all

    • all: boolean = false

      remove all

    Returns void

  • so user can override if they want

    Parameters

    • entityHandler: any

    Returns void

  • will remove from dataset, this is not the same as mark for deletion

    Parameters

    • data: Entity | Entity[]

      entity or entirty array you want to remove

    • all: boolean = false

      if set to true, you remove all

    Returns Entity[]

    returns removed

  • replaced entity wtih index

    Parameters

    • data: any[]
    • index: number
    • remove: number

    Returns void

  • resets data, all edits are resets/tags are reset new entities are removed

    Returns void

  • for selected rows only resets data, all edits are resets/tags are reset new entities are removed

    Parameters

    Returns void

  • set data

    Parameters

    • data: any[]
    • add: boolean = false
    • tagAsNew: boolean = false

    Returns void | Entity[]

  • set data on __rowError on entities where key matches

    Parameters

    • errors: Map<string, string>

      key, errormsg

    Returns void