File

src/app/components/table/header.ts

Description

An interface representing the details of the header data

Index

Properties

Properties

alignment
alignment: string
Type : string
Optional

Alignment of the column data

cell
cell: function
Type : function

Cell data of the column

columnDef
columnDef: string
Type : string

Definition of the column

header
header: string
Type : string

Label of the column

isTotalRequired
isTotalRequired: boolean
Type : boolean
Optional

Flag to show/hide the total below the table

sorting
sorting: boolean
Type : boolean
Optional

Flag to enable/disable sorting

import { TableData } from './table';

/** An interface representing the details of the header data */
export interface HeaderData {
  /** Label of the column */
  header: string;
  /** Definition of the column */
  columnDef: string;
  /** Cell data of the column */
  cell: (element: TableData) => unknown;
  /** Flag to show/hide the total below the table */
  isTotalRequired?: boolean;
  /** Flag to enable/disable sorting */
  sorting?: boolean;
  /** Alignment of the column data */
  alignment?: string;
}

/** An interface representing the details of the additional data */
export interface ExtraHeader {
  /** Definition of the column */
  columnDef: string;
  /** Label of the column */
  header: string;
  /** Number of columns to span */
  colspan?: number;
  /** Number of rows to span */
  rowspan?: number;
}

results matching ""

    No results matching ""