Directive · v2.7.1
NgbGridColumnDirective
NgbGridColumnDirective directive exported by the ngbootstrap package API.
Import
import { NgbGridColumnDirective } from '@angular-bootstrap/ngbootstrap';Selector:ngb-grid-column
Declaration
class NgbGridColumnDirective<T = any> implements ColumnDef<T>Inputs
field
field: Extract<keyof T, string>header
header: stringtitle
title?: stringcellTitle
cellTitle?: string | ((row: T) => string)sortable
sortable?: booleanfilterable
filterable?: booleanfilterType
filterType?: NgbColumnFilterTypedefaultFilterOperator
defaultFilterOperator?: NgbFilterOperatorallowedFilterOperators
allowedFilterOperators?: NgbFilterOperator[]showFilterMenu
showFilterMenu?: booleanshowFilterRow
showFilterRow?: booleanshowFilterOperator
showFilterOperator?: booleaneditable
editable?: booleantype
type?: ColumnTypeoptions
options?: Array<{
label: string;
value: unknown;
}>width
width?: numberstackedGroup
stackedGroup?: 'start' | 'center' | 'end'required
required?: booleanclipboardFormat
clipboardFormat?: ColumnDef<T>['clipboardFormat']clipboardParse
clipboardParse?: ColumnDef<T>['clipboardParse']sticky
sticky?: boolean | 'start' | 'end'locked
locked?: booleanreorderable
reorderable?: booleanresizable
resizable?: booleanminResizableWidth
minResizableWidth?: numbermaxResizableWidth
maxResizableWidth?: numberMethods
toColumnDef
toColumnDef(): ColumnDef<T>