File

projects/wms-framework/src/lib/models/controls/IProvideDataItems.ts

Description

Definition of CollectionBase object

Index

Properties
Methods

Methods

add
add(item: any)
Parameters :
Name Type Optional
item any No
Returns : any
AddItem
AddItem(addedObject: T)
Parameters :
Name Type Optional
addedObject T No
Returns : void
Clear
Clear()
Returns : any
CreateItem
CreateItem()
Returns : T
CreateItem
CreateItem(dataItem: any)
Parameters :
Name Type Optional
dataItem any No
Returns : T
GetDataItem
GetDataItem(index: number)
Parameters :
Name Type Optional
index number No
Returns : T
InsertItem
InsertItem(index: number, insertedObject: T)
Parameters :
Name Type Optional
index number No
insertedObject T No
Returns : void
RemoveItem
RemoveItem(removedObject: T)
Parameters :
Name Type Optional
removedObject T No
Returns : boolean
RemoveRange
RemoveRange(itemsToRemove: IList<T>)
Parameters :
Name Type Optional
itemsToRemove IList<T> No
Returns : void
toArray
toArray()
Returns : T[]

Properties

DataCount
DataCount: number
Type : number
import { IList } from '../../baseframework/collections';

/**
 * Definition of CollectionBase object
 *
 * @export
 * @interface ICollectionBase
 * @wInterface Infragistics.IProvideDataItems`1
 */
export interface IProvideDataItems<T> {
  add(item: any);
  Clear();

  DataCount: number;

  GetDataItem(index: number): T;

  CreateItem(): T;

  CreateItem(dataItem: any): T;

  AddItem(addedObject: T): void;

  RemoveItem(removedObject: T): boolean;

  RemoveRange(itemsToRemove: IList<T>): void;

  InsertItem(index: number, insertedObject: T): void;

  toArray(): T[];
}

result-matching ""

    No results matching ""