DeeboData JS Grid Angular Grid
Contact Us Demo Pricing

DeeboData Angular Column Def

Angular Data Grid

Provides the display order and properties to your columns including a display name, default width, and more. A Column Def is not required to make the data grid work.
The below columnDef provides the column def for the official angular data grid demo (except sortable properties).

let columnDef = [
{ column: 'stimulus img id', displayName: "ID", width: 150, sortable: false},
{ column: 'prompt', displayName: "AI Prompt", width: 600, sortable: false},
{ column: 'category', width: 160},
{ column: 'width', width: 160},
{ column: 'height', width: 160},
{ column: 'extension', width: 160, sortable: false},
];



<ngx-deebodata
[data]="data()"
[defaultColumnDef]="columnDef"
></ngx-deebodata>



Below is the interface exposed to your developers for setting the column def.

ColumnDef interface properties

Column Def interface

  • column: Column name in your array of data
  • displayName: The name to display in the column header
  • width: Default column width
  • sortable: Set to false explicitly to disable sorting for a given column
  • hideFilter: Set to true to disable filters for a single column