Rows

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

DikeGridRowEntry

abstract class DikeGridRowEntry {
  isGroup: boolean;
  
  constructor(timestampCreation: number);

  get selectedChange(): Observable<boolean>;
  get timestampChange(): Observable<number>;
  
  get timestamp(): number;
  set timestamp(value: number);

  get selected(): boolean;
  set selected(value: boolean);
}

DikeGridGroupRowEntry<T>

class DikeGridGroupRowEntry<T extends object> extends DikeGridRowEntry {

  constructor(
    private groupKey: unknown,
    private groupId: string,
    private groupLevel: number,
    private groupTotalCount: number,
    private dataColumnDef: DikeDataColumnDef<T, string | number | Date | boolean>,
    private dataRowEntries: DikeGridDataRowEntry<T>[],
    timestamp: number);

  get collapseChange(): Observable<boolean>;
  get allRowsSelectedChange(): Observable<boolean>;
  get someRowsSelectedChange(): Observable<boolean>;

  get key(): unknown;
  get id(): string;
  get level(): number;
  get count(): number;
  set count(value: number);
  get totalCount(): number;
  get totalSelectableRows(): number;
  set totalSelectableRows(value: number);
  get rowSelectionCount(): number;
  set rowSelectionCount(value: number);
  get collapse(): boolean;
  set collapse(value: boolean);
  get allRowsSelected(): boolean;
  set allRowsSelected(value: boolean);
  get someRowsSelected();
  set someRowsSelected(value: boolean);
  get dataColumn(): DikeDataColumnDef<T, string | number | Date | boolean>;
  get dataRows(): DikeGridDataRowEntry<T>[];
}

DikeGridDataRowEntry<T>

class DikeGridDataRowEntry<T extends object> extends DikeGridRowEntry {

  rowFormFields: Map<string, RowFormField>;
  
  constructor(
    private rowId: number,
    timestamp: number,
    private rowEntry: T);
    
  get rowFormGroupChange(): Observable<FormGroup>;
  get editionActionsChange(): Observable<RowEditionActions>;
  get isEditingChange(): Observable<boolean>;
  
  get id(): number;
  get entry(): T;
  get status(): RowStatus;
  set status(value: RowStatus);
  get isEditing(): boolean;
  set isEditing(value: boolean);
  get rowFormGroup(): FormGroup;
  set rowFormGroup(value: FormGroup);
  
  getRowPanelFormGroup(panel: DikeContentPanel): FormGroup;
}

Last updated