DataSource

<T> represents the object's shape coming from the data source.

DikeDataSource<T>

abstract class DikeDataSource<T> extends DataSource<T> {

  constructor();
  
  abstract get data(): T[];
  abstract set data(value: T[]);

  abstract connect(): Observable<T[]>;
  abstract disconnect(): void;
  abstract reconnect(): void;

  abstract dispose(): void;
}

DikeGridDataSource<T>

class DikeGridDataSource<T extends object> extends DikeDataSource<DikeGridDataRowEntry<T>> {

  constructor();

  get dataDeliveryChanges(): Observable<string>;
  get data(): DikeGridDataRowEntry<T>[];
  set data(value: DikeGridDataRowEntry<T>[]);
  get entries(): ReadonlyArray<T>;
  set entries(value: ReadonlyArray<T>);

  connect(): Observable<DikeGridDataRowEntry<T>[]>;
  disconnect(): void;
  reconnect(): void;
  dispose(): void;
}

DikeDecoratorDataSource<T>

abstract class DikeDecoratorDataSource<T extends object> extends DikeDataSource<DikeGridDataRowEntry<T>> {

  constructor(
    protected dikeDataSource: DikeDataSource<DikeGridDataRowEntry<T>>);

  get data(): DikeGridDataRowEntry<T>[];
  set data(value: DikeGridDataRowEntry<T>[]);

  connect(): Observable<DikeGridDataRowEntry<T>[]>;
  disconnect(): void;
  reconnect(): void;
  dispose(): void;

  protected abstract setChangeSubscription(): void;
}

Last updated