← DataGrid API

Component · v2.7.1

Datagrid

Datagrid component exported by the ngbootstrap package API.

Import

import { Datagrid } from '@angular-bootstrap/ngbootstrap';

Selector:ngb-datagrid

Declaration

class Datagrid<T = any> implements AfterContentInit, OnChanges

Inputs

columns

Column definitions. Declarative `ngb-grid-column` content takes precedence when both are present.

get columns(): ColumnDef<T>[] set columns(value: ColumnDef<T>[] | null | undefined)

Default:[]

data

Row data bound into the grid.

get data(): T[] set data(value: T[] | null | undefined)

Default:[]

loading

Shows a loading overlay and sets the grid busy state.

loading: boolean

Default:false

total

Total row count for server-side paging when `data` contains only the current page.

get total(): number | null set total(value: number | null | undefined)

Default:null

enableSorting

Turns on header sorting for columns marked `sortable`.

get enableSorting(): boolean set enableSorting(value: boolean)

Default:false

enableFiltering

Legacy compatibility flag that enables filtering features.

get enableFiltering(): boolean set enableFiltering(value: boolean)

Default:false

filterable

Preferred filtering mode API. `true` maps to row filtering.

get filterable(): NgbFilterable set filterable(value: NgbFilterable | null | undefined)

Default:false

enableGlobalFilter

Shows the global filter input in the toolbar.

get enableGlobalFilter(): boolean set enableGlobalFilter(value: boolean)

Default:false

filterMode

Fallback mode used when `filterable` is not explicit.

get filterMode(): NgbFilterMode set filterMode(value: NgbFilterMode | null | undefined)

Default:'row'

filter

Controlled filter descriptor for descriptor-based filtering.

get filter(): NgbCompositeFilterDescriptor | null set filter(value: NgbCompositeFilterDescriptor | null | undefined)

Default:null

filterOperators

Overrides the allowed operators by column type.

get filterOperators(): Partial<Record<ColumnType, NgbFilterOperator[]>> | undefined set filterOperators(value: Partial<Record<ColumnType, NgbFilterOperator[]>> | undefined)

Default:undefined

filterManual

Emits `filterChange` without applying the descriptor locally.

filterManual: boolean

Default:false

externalFiltering

Treats `data` as already filtered while still rendering the filter UI.

externalFiltering: boolean

Default:false

dataOperations

Uses the reusable local operation helper for sort, filter, page, and aggregate processing.

get dataOperations(): boolean | NgbDataGridProcessOptions<T> set dataOperations(value: boolean | NgbDataGridProcessOptions<T> | null | undefined)

Default:false

groupable

Enables the group panel, group drag handles, and grouped row rendering. Use `showFooter` for grouped footer rows, `stickyHeaders` for pinned grouped headers, and `stickyFooters` for pinned grouped footers.

get groupable(): boolean | NgbDataGridGroupingSettings set groupable(value: boolean | NgbDataGridGroupingSettings | null | undefined)

Default:false

group

Controlled group descriptors for one or more grouped fields.

get group(): NgbDataGridGroupDescriptor[] set group(value: NgbDataGridGroupDescriptor[] | null | undefined)

Default:[]

groupedData

Optional processed grouped result input for manual or server-owned grouping flows.

get groupedData(): NgbDataGridGroupResult<T>[] | null set groupedData(value: NgbDataGridGroupResult<T>[] | null | undefined)

Default:null

state

Controlled state for page, page size, skip, sort descriptors, group descriptors, filter descriptor, and global search.

get state(): NgbDataGridState | null set state(value: NgbDataGridState | null | undefined)

Default:null

multiCheckboxFilterOptions

Footer actions for the built-in multi-checkbox filter menu.

multiCheckboxFilterOptions: NgbMultiCheckboxFilterOptions

Default:{}

enablePagination

Renders the built-in footer pager and page-size selector.

get enablePagination(): boolean set enablePagination(value: boolean)

Default:false

pageable

Enables pagination with true or a pager settings object, even when enablePagination is false.

get pageable(): boolean | NgbDatagridPageableSettings set pageable(value: boolean | NgbDatagridPageableSettings | null | undefined)

enableEdit

Shows row edit actions and enables the edit form.

enableEdit: boolean

Default:false

enableDelete

Shows row delete actions.

enableDelete: boolean

Default:false

pageSizeOptions

Page-size options shown in the footer selector.

pageSizeOptions: number[]

Default:[5, 10, 25, 50]

enableAdd

Shows the add-row button and renders the add form row.

get enableAdd(): boolean set enableAdd(value: boolean)

Default:false

addButtonAriaLabel

Accessible label (aria-label) applied to the add-row button.

addButtonAriaLabel: string | null

Default:'Add row'

addButtonText

Visible text rendered inside the add-row button.

addButtonText: string

Default:'Add'

stickyRows

Shows the sticky-row utility column and keeps pinned rows at the top.

stickyRows: boolean

Default:false

scrollable

true / 'scrollable', false / 'none', or 'virtual'. Virtual mode renders local rows or application-managed remote windows; incompatible configurations use regular scrolling with a visible notice (v2.5.0).

Default:true

height

Body viewport height in pixels. Null retains the regular 24rem maximum or a 384px virtual viewport.

height: number | null

Default:null

virtualRowHeight

Fixed virtual row height in pixels, minimum 32. Custom content must fit.

virtualRowHeight: number

Default:48

virtualOverscan

Extra virtual rows above and below the viewport, clamped to 0–100.

virtualOverscan: number

Default:5

maxHeight

Content-sized body maximum in regular scrolling; height takes precedence.

maxHeight: number | null

Default:null

detailRowHeight

Fixed expanded detail height in virtual mode, minimum 32px.

detailRowHeight: number

Default:160

virtualRemote

Requests flat remote windows through virtualRangeChange. Disable pagination; bind processed data, total and virtualSkip.

virtualRemote: boolean

Default:false

virtualSkip

Absolute offset of the loaded remote data array.

virtualSkip: number

Default:0

virtualPageSize

Requested remote buffer, at least three viewports plus overscan.

virtualPageSize: number

Default:60

virtualDebounce

Delay in milliseconds before emitting the latest remote range request.

virtualDebounce: number

Default:80

loadingCellTemplate

Custom placeholder cells for unloaded remote rows.

loadingCellTemplate: TemplateRef<{ $implicit: ColumnDef<T>; index: number; }> | null

Default:null

stickyRowHeight

Height used to stack multiple sticky rows.

stickyRowHeight: number

Default:40

stickyHeaderHeight

Header offset used for stacked sticky rows.

stickyHeaderHeight: number

Default:40

stickyFooterHeight

Footer height used by the sticky-footer styling.

stickyFooterHeight: number

Default:56

tableOptions

Applies Bootstrap table classes plus caption, responsive wrapper, and sticky flags.

get tableOptions(): NgbTableOptions set tableOptions(value: NgbTableOptions | null | undefined)

Default:{}

dataLayoutMode

When set, overrides `tableOptions.stacked` for layout mode. Use `'stacked'` for card/label-value rows or `'tabular'` for the standard column grid.

dataLayoutMode: NgbDataLayoutMode | null

Default:null

selectionMode

Enables row selection.

selectionMode: NgbSelectionMode

Default:'none'

selectionBehavior

Controls whether rows, checkboxes, or both can toggle selection.

selectionBehavior: NgbSelectionBehavior

Default:'row'

selectionKeyMode

Desktop mode enables Ctrl/Cmd and Shift range selection behavior.

selectionKeyMode: NgbSelectionKeyMode

Default:'desktop'

selectAllEnabled

Enables the current-page select-all checkbox when multi-select is active.

selectAllEnabled: boolean

Default:true

selectionA11yLabels

Overrides accessible labels for selection controls.

selectionA11yLabels: NgbSelectionLabels

Default:{}

selectionDisabledFn

Disables selection for specific rows.

selectionDisabledFn?: (row: T, index: number) => boolean

Default:undefined

highlightedIndex

Declares highlighted rows or row/cell pairs.

get highlightedIndex(): HighlightItem[] set highlightedIndex(value: HighlightItem[] | null | undefined)

Default:[]

highlightRowKey

Computes the row key used by `highlightedIndex`.

highlightRowKey: NgbRowKey | null

Default:null

highlightColKey

Computes the column key used by `highlightedIndex`.

highlightColKey: NgbColKey | null

Default:null

globalFilterAriaLabel

Accessible label for the global filter input.

globalFilterAriaLabel: string

Default:'Search all columns'

globalFilterPlaceholder

Placeholder for the built-in global search input.

globalFilterPlaceholder: string

Default:'Search all columns'

searchHighlightTerm

Highlights matching text fragments inside visible cells.

get searchHighlightTerm(): string set searchHighlightTerm(value: string | null | undefined)

Default:''

searchHighlightFields

Limits search highlighting to specific column fields.

get searchHighlightFields(): string[] | null set searchHighlightFields(value: string[] | null | undefined)

Default:null

expandRowAriaLabel

Accessible label announced when expanding a row.

expandRowAriaLabel: string

Default:'Expand row'

collapseRowAriaLabel

Accessible label announced when collapsing a row.

collapseRowAriaLabel: string

Default:'Collapse row'

exportPdfAriaLabel

Accessible label for the PDF export button.

exportPdfAriaLabel: string

Default:'Export to PDF'

exportExcelAriaLabel

Accessible label for the Excel export button.

exportExcelAriaLabel: string

Default:'Export to Excel'

newRowDefaults

Provides initial values for the add-row form.

newRowDefaults: DraftValues<T> | (() => DraftValues<T>) | null

Default:null

strictEmail

Switches email validation to the stricter custom validator.

strictEmail: boolean

Default:false

editOnRowClick

Starts editing when a non-interactive area of a row is clicked.

editOnRowClick: boolean

Default:false

editMode

Row editing interaction: inline actions, in-cell, external dialog, or toolbar selection.

editMode: NgbEditMode

Default:'inline'

toolbarEditHint

Hint shown in toolbar editing mode when a row is selected.

toolbarEditHint: string

Default:'Row selected — click Edit to modify or Delete to remove'

detailRowPredicate

Optional pure predicate restricting which current-page rows offer details.

detailRowPredicate?: NgbDataGridDetailPredicate<T>

detailRowKey

Opt into record-key expansion across paging, sorting and immutable row reloads.

expandedDetailKeys

Initial or application-controlled keys. Requires detailRowKey; use immutable updates.

get expandedDetailKeys(): readonly NgbDataGridDetailKey[] set expandedDetailKeys(keys: readonly NgbDataGridDetailKey[])

singleExpand

Limits detail-row expansion to one row at a time.

singleExpand: boolean

Default:false

exportOptions

Enables PDF and/or Excel export and configures the export mode.

get exportOptions(): NgbDataGridExportOptions set exportOptions(value: NgbDataGridExportOptions | null | undefined)

Default:{ enabled: false, ... }

theme

Adds theme-specific CSS variables and button/table styling.

Default:'bootstrap'

responsive

Enables the small-screen stacked layout.

responsive: NgbDataGridResponsiveOptions | boolean

Default:false

trackBy

Provides a stable row identifier value for tracking, selection, sticky rows, and editing.

get trackBy(): NgbDatagridTrackByFn<T> | undefined set trackBy(value: NgbDatagridTrackByFn<T> | undefined)

Default:undefined

rowClass

CSS classes for each data row, supplied directly or by a callback receiving row and row index.

rowClass?: string | string[] | Record<string, boolean> | ((row: T, rowIndex: number) => string | string[] | Record<string, boolean>)

rowStyle

Inline styles for each data row, supplied directly or by a callback receiving row and row index.

rowStyle?: Record<string, string | number> | ((row: T, rowIndex: number) => Record<string, string | number> | null | undefined)

rowReorderable

Enables row drag handles and row reordering.

rowReorderable: boolean

Default:false

columnReorderable

Enables drag-drop reordering for columns.

get columnReorderable(): boolean set columnReorderable(value: boolean)

Default:false

resizable

Enables drag resizing for explicit-width columns.

get resizable(): boolean set resizable(value: boolean)

Default:false

actionDisplay

Render row actions as icon-only square buttons (Figma editing screen).

actionDisplay: 'text' | 'icons'

Default:'text'

showStickyRowBadge

Show a STICKY badge on the configured column when a row is pinned.

showStickyRowBadge: boolean

Default:false

stickyRowBadgeField

Column field in which to display the sticky-row badge when showStickyRowBadge is enabled.

stickyRowBadgeField: string | null

Default:null

stickyRowBadgeLabel

Text displayed in the sticky-row badge.

stickyRowBadgeLabel: string

Default:'STICKY'

labels

Localized strings for built-in UI; individual aria/text inputs override matching keys.

Default:{}

locale

BCP 47 locale for pagination range and number formatting (e.g. `en-US`, `ar-SA`).

locale: string | null

Default:null

dir

Text direction on the grid root; `auto` inherits from document or parent `dir`.

Default:'auto'

keyboardNavigation

Enables arrow-key cell focus, Space selection, Alt+Page paging, and F3 filter shortcuts.

keyboardNavigation: boolean

Default:true

cellSelection

Opt in to current-page rectangular selection and cell keyboard navigation. Batch editing requires range mode and unique trackBy IDs.

get cellSelection(): 'none' | 'range' set cellSelection(value: 'none' | 'range')

Default:'none'

editService

Overrides the built-in edit service for immutable or stateful editing workflows.

editService?: NgbDatagridEditService<T>

Default:default service

dataProviderAll

Required when export pages mode is `all`.

dataProviderAll?: () => Observable<T[]> | Promise<T[]> | T[]

Default:undefined

dataProviderSelection

Required when export pages mode is `selection`.

dataProviderSelection?: () => T[]

Default:undefined

pageSize

Current page size used by the built-in pagination logic.

get pageSize(): number set pageSize(value: number | null | undefined)

Default:10

Outputs

virtualRangeChange

Emits a debounced remote window request containing skip, take and the current data state. The application loads that window.

virtualRangeChange: EventEmitter<NgbDataGridVirtualRange>

scrollBottom

Emits when the scrollable body reaches its bottom while not loading. Append data in the application; repeated notifications are suppressed until data length changes or the user scrolls away.

scrollBottom: EventEmitter<void>

detailChange

Emits once per changed row, including accordion-driven collapses.

detailChange: EventEmitter<NgbDataGridDetailChange<T>>

expandedDetailKeysChange

Updated keys after explicit expansion changes; suitable for two-way binding.

expandedDetailKeysChange: EventEmitter<readonly NgbDataGridDetailKey[]>

batchSave

One event after local batch Apply or replay, containing original/updated rows and optional historyAction. Update the bound array and persist through the application.

batchSave: EventEmitter<NgbGridBatchSaveEvent<T>>

cellRangeChange

Selected anchor/focus addresses, or null when cleared. Ranges are excluded from view snapshots.

cellRangeChange: EventEmitter<NgbGridCellRange | null>

rowAdd

Emits after a new row passes validation and the add flow saves.

rowAdd: EventEmitter<{ newRow: T; }>

rowEdit

Emits when inline or toolbar editing starts for an existing row. In-cell and external editing do not emit this event.

rowEdit: EventEmitter<{ row: T; index: number; }>

rowSave

Emits after saving an edit, including history replay. historyAction identifies Undo/Redo; persist replayed edits through this handler.

rowSave: EventEmitter<{ original: T; updated: T; index: number; historyAction?: "undo" | "redo"; }>

rowCancel

Emits when edit mode is cancelled.

rowCancel: EventEmitter<{ row: T; index: number; }>

rowDelete

Emits after a row delete action runs.

rowDelete: EventEmitter<{ row: T; index: number; }>

groupChange

Emits the current ordered group descriptors after panel or API grouping changes.

groupChange: EventEmitter<NgbDataGridGroupChange>

sortChange

Emits the current sort state after the header cycle changes.

sortChange: EventEmitter<{ active: string | null; direction: "asc" | "desc" | ""; }>

filterChange

Preferred filtering event for descriptor-driven filtering.

filterChange: EventEmitter<NgbCompositeFilterDescriptor>

filtersChange

Legacy compatibility event for global and column filter text state.

filtersChange: EventEmitter<{ global: string; columns: Record<string, string>; }>

pageChange

Emits when the built-in pager changes page or page size.

pageChange: EventEmitter<{ page: number; pageSize: number; }>

viewChange

Emits grid configuration snapshots for saved views and history; excludes row data.

viewChange: EventEmitter<NgbDataGridViewSnapshot>

dataStateChange

Emits complete sort, filter, page, page size, skip, and global filter state.

dataStateChange: EventEmitter<NgbDataGridState>

selectionChange

Emits the selected rows and the last selection action.

selectionChange: EventEmitter<{ selected: T[]; lastAction: { row: T; index: number; selected: boolean; } | null; }>

rowReorder

Emits after row drag-drop reorders the data.

rowReorder: EventEmitter<{ row: T; fromIndex: number; toIndex: number; data: T[]; }>

columnReorder

Emits after column drag-drop reorders visible columns.

columnReorder: EventEmitter<NgbColumnReorderEvent<ColumnDef<T>>>

Properties

renderTick

renderTick: number

Default:0

virtualScrollFallbackReason

Why requested virtualization is using regular rendering instead.

get virtualScrollFallbackReason(): string | null

virtualScrollActive

get virtualScrollActive(): boolean

resolvedVirtualRowHeight

get resolvedVirtualRowHeight(): number

bodyViewportHeight

get bodyViewportHeight(): number | null

resolvedDetailRowHeight

get resolvedDetailRowHeight(): number

bodyMaxHeight

get bodyMaxHeight(): number | null

virtualContentHeight

get virtualContentHeight(): number

virtualStartIndex

get virtualStartIndex(): number

viewportRows

get viewportRows(): (NgbDatagridRenderRow<T> | NgbDatagridLoadingRow)[]

virtualTopPadding

get virtualTopPadding(): number

virtualBottomPadding

get virtualBottomPadding(): number

batchEditor

Internal bridge registered by ngbGridBatchEditing.

cellRange

get cellRange(): NgbGridCellRange | null

layoutToolbar

customToolbar

exportButtonDir

exportButtonDir?: ExportButtonDirective

bodyScroller

bodyScroller?: ElementRef<HTMLElement>

headerScroller

headerScroller?: ElementRef<HTMLElement>

colgroupSyncId

colgroupSyncId: string

Default:`dg-col-${Math.random().toString(36).slice(2, 8)}`

columnDragField

columnDragField: string | null

Default:null

columnDragOverIndex

columnDragOverIndex: number | null

Default:null

exporting

exporting: boolean

Default:false

rowDetailTpl

rowDetailTpl?: NgbRowDetailTemplate<T>

pagerTpl

pagerTpl?: NgbPagerTemplate<T>

groupHeaderTpl

expanded

expanded: Set<number>

filterForm

filterForm: FormGroup

globalFilterCtrl

globalFilterCtrl: FormControl<string>

addingNew

addingNew: boolean

Default:false

draftNew

draftNew: DraftValues<T> | null

Default:null

errorsNew

errorsNew: Partial<Record<KeyOf<T>, string>>

Default:{}

sort

get sort(): { active: Extract<keyof T, string> | null; direction: SortDir; } set sort(value: { active: Extract<keyof T, string> | null; direction: SortDir; } | null | undefined)

stickyRowIds

stickyRowIds: Set<NgbDatagridRowId>

selectedRowIds

selectedRowIds: Set<NgbDatagridRowId>

globalFilter

get globalFilter(): string set globalFilter(value: string | null | undefined)

filters

get filters(): Record<string, string> set filters(value: Record<string, string> | null | undefined)

localFilter

get localFilter(): NgbCompositeFilterDescriptor set localFilter(value: NgbCompositeFilterDescriptor | null | undefined)

openFilterMenuField

openFilterMenuField: string | null

Default:null

openFilterMenuAnchor

openFilterMenuAnchor: HTMLElement | null

Default:null

openRowFilterField

openRowFilterField: string | null

Default:null

openRowFilterOperatorAnchor

openRowFilterOperatorAnchor: HTMLElement | null

Default:null

openMenuOperatorField

openMenuOperatorField: string | null

Default:null

multiCheckboxDrafts

multiCheckboxDrafts: Record<string, unknown[]>

Default:{}

multiCheckboxSearch

multiCheckboxSearch: Record<string, string>

Default:{}

page

get page(): number set page(value: number | null | undefined)

editingIndex

Inline / in-cell editing state

editingIndex: number | null

Default:null

editingCell

editingCell: { rowIndex: number; field: string; } | null

Default:null

focusedCell

Roving keyboard focus within the current page (data cells).

focusedCell: { rowIndex: number; colIndex: number; } | null

Default:null

statusMessage

Screen-reader status updates (sort, page, selection).

statusMessage: string

Default:''

editForm

editForm: FormGroup

saveAttemptedEdit

saveAttemptedEdit: boolean

Default:false

externalEditOpen

External dialog editing state

externalEditOpen: boolean

Default:false

externalEditIsNew

externalEditIsNew: boolean

Default:false

externalEditPagedIndex

externalEditPagedIndex: number | null

Default:null

externalForm

externalForm: FormGroup

saveAttemptedExternal

saveAttemptedExternal: boolean

Default:false

addForm

addForm: FormGroup

saveAttemptedNew

saveAttemptedNew: boolean

Default:false

stickyGroupHeaderRows

stickyGroupHeaderRows: NgbDatagridGroupRenderRow<T>[]

Default:[]

stickyGroupFooterRows

stickyGroupFooterRows: NgbDatagridGroupFooterRenderRow<T>[]

Default:[]

stickyGroupOverlayColumnWidths

stickyGroupOverlayColumnWidths: number[]

Default:[]

stickyGroupHeaderTranslateY

stickyGroupHeaderTranslateY: number

Default:0

stickyGroupFooterTranslateY

stickyGroupFooterTranslateY: number

Default:0

groupDragField

groupDragField: string | null

Default:null

groupPanelDragActive

groupPanelDragActive: boolean

Default:false

groupPanelDragDenied

groupPanelDragDenied: boolean

Default:false

exportButtonTpl

get exportButtonTpl(): TemplateRef<ExportButtonContext> | null

gridHost

get gridHost(): this

declarativeColumns

get declarativeColumns(): ColumnDef<T>[]

resolvedColumns

get resolvedColumns(): ColumnDef<T>[]

visibleColumns

get visibleColumns(): ColumnDef<T>[]

filtered

get filtered(): T[]

openRowFilterColumn

get openRowFilterColumn(): ColumnDef<T> | null

openFilterMenuColumn

get openFilterMenuColumn(): ColumnDef<T> | null

sorted

get sorted(): T[]

paged

get paged(): T[]

renderRows

get renderRows(): NgbDatagridRenderRow<T>[]

anyFilterable

get anyFilterable(): boolean

startIndex

get startIndex(): number

endIndex

get endIndex(): number

paginationActive

get paginationActive(): boolean

resolvedPageSizeOptions

Page-size options for the footer dropdown (includes [pageSize] when not listed in pageSizes).

get resolvedPageSizeOptions(): number[]

shouldEnableScroll

get shouldEnableScroll(): boolean

isHeaderSticky

get isHeaderSticky(): boolean

isFooterSticky

get isFooterSticky(): boolean

detailColspan

get detailColspan(): number

externalEditableColumns

get externalEditableColumns(): ColumnDef<T>[]

tablePixelWidth

get tablePixelWidth(): number | null

tableClassList

get tableClassList(): string[]

responsiveWrapperClasses

get responsiveWrapperClasses(): string[]

densityMode

get densityMode(): 'comfortable' | 'compact'

zebraStripesEnabled

get zebraStripesEnabled(): boolean

cellTpls

Internal lookup maps

cellTpls: Record<string, NgbCellTemplate<T>>

Default:{}

editTpls

editTpls: Record<string, NgbEditorTemplate<T>>

Default:{}

filterTpls

filterTpls: Record<string, NgbFilterTemplate<T>>

Default:{}

filterMenuTpls

filterMenuTpls: Record<string, NgbFilterMenuTemplate<T>>

Default:{}

globalTpl

globalTpl: NgbGlobalFilterTemplate | null

Default:null

groupHeaderColumnTpls

groupHeaderColumnTpls: Record<string, NgbDataGridGroupHeaderColumnTemplateDirective<T>>

Default:{}

groupFooterTpls

groupFooterTpls: Record<string, NgbDataGridGroupFooterTemplateDirective<T>>

Default:{}

trackRow

trackRow: (index: number, row: T) => unknown

stickyRowsEnabled

get stickyRowsEnabled(): boolean

stickyHeaderEnabled

get stickyHeaderEnabled(): boolean

stickyFooterEnabled

get stickyFooterEnabled(): boolean

Methods

requestVirtualRange

Request another remote window. Repeated scroll events within a buffer are coalesced.

requestVirtualRange(force?: boolean): void

scrollToRow

Scroll a row in the processed page, or an absolute record in remote-window mode.

scrollToRow(index: number): boolean

scrollTo

scrollTo(request: NgbDataGridScrollRequest): boolean

scrollToItem

Finds an item in the loaded processed page. Remote IDs must be resolved by the application.

scrollToItem(request: NgbDataGridScrollItemRequest): boolean

batchCellValue

batchCellValue(row: T, field: string): unknown

batchCellDirty

batchCellDirty(row: T, field: string): boolean

batchCellError

batchCellError(row: T, field: string): string

refreshBatchState

refreshBatchState(): void

validateBatchRow

validateBatchRow(row: T, rowId: string | number): NgbGridBatchCellError[]

cellRangeEnabled

cellRangeEnabled(): boolean

clearCellRange

clearCellRange(): void

isCellInRange

isCellInRange(row: number, col: number): boolean

onCellRangeEnter

onCellRangeEnter(event: MouseEvent, row: number, col: number): void

endCellRangeDrag

endCellRangeDrag(): void

isGroupingEnabled

isGroupingEnabled(): boolean

isGroupingActive

isGroupingActive(): boolean

isColumnGroupable

isColumnGroupable(col: ColumnDef<T>): boolean

isFieldGrouped

isFieldGrouped(field: string): boolean

groupedColumns

groupedColumns(): NgbDataGridGroupDescriptor[]

groupingSettings

groupingSettings(): NgbDataGridGroupingSettings

showGroupFooters

showGroupFooters(): boolean

showStickyGroupHeaders

showStickyGroupHeaders(): boolean

showStickyGroupFooters

showStickyGroupFooters(): boolean

hasStickyGroupHeaders

hasStickyGroupHeaders(): boolean

hasStickyGroupFooters

hasStickyGroupFooters(): boolean

groupColumnHeader

groupColumnHeader(field: string): string

groupHandleAriaLabel

groupHandleAriaLabel(col: ColumnDef<T>): string

groupDirectionAriaLabel

groupDirectionAriaLabel(descriptor: NgbDataGridGroupDescriptor): string

groupRemoveAriaLabel

groupRemoveAriaLabel(descriptor: NgbDataGridGroupDescriptor): string

groupPanelLabel

groupPanelLabel(): string

groupFieldLabel

groupFieldLabel(descriptor: NgbDataGridGroupDescriptor): string

groupDirectionLabel

groupDirectionLabel(descriptor: NgbDataGridGroupDescriptor): string

toggleGroupField

toggleGroupField(field: string): void

addGroupField

addGroupField(field: string, dir?: GroupSortDir, emit?: boolean): void

removeGroupField

removeGroupField(field: string, emit?: boolean): void

moveGroupField

Move a grouping level without changing its direction or aggregates.

moveGroupField(field: string, direction: 'previous' | 'next'): void

toggleGroupDirection

toggleGroupDirection(field: string): void

onGroupHandleDragStart

onGroupHandleDragStart(event: DragEvent, field: string): void

onGroupHandleDragEnd

onGroupHandleDragEnd(): void

onGroupPanelDragOver

onGroupPanelDragOver(event: DragEvent): void

onGroupPanelDragLeave

onGroupPanelDragLeave(event: DragEvent): void

onGroupPanelDrop

onGroupPanelDrop(event: DragEvent): void

isColumnReorderEnabled

isColumnReorderEnabled(): boolean

isColumnReorderable

isColumnReorderable(col: ColumnDef<T>): boolean

onColumnDragStart

onColumnDragStart(event: DragEvent, col: ColumnDef<T>, fromIndex: number): void

onColumnDragOver

onColumnDragOver(event: DragEvent, toIndex: number): void

onColumnDragLeave

onColumnDragLeave(event: DragEvent, index: number): void

onColumnDrop

onColumnDrop(event: DragEvent, toIndex: number): void

onColumnDragEnd

onColumnDragEnd(): void

reorderColumn

Reorders a visible column relative to another visible column index. Only columns that pass isColumnReorderable can be moved.

reorderColumn(column: ColumnDef<T> | Extract<keyof T, string>, destinationIndex: number, options?: NgbColumnReorderOptions, emit?: boolean): void

moveColumn

moveColumn(fromIndex: number, toIndex: number, emit?: boolean): void

isFilteringEnabled

isFilteringEnabled(): boolean

resolvedFilterMode

resolvedFilterMode(): NgbFilterMode

getColumnFilterType

getColumnFilterType(col?: ColumnDef<T>): 'text' | 'numeric' | 'boolean' | 'date' | 'select'

isMultiCheckboxMode

isMultiCheckboxMode(col: ColumnDef<T>): boolean

getAllowedOperators

getAllowedOperators(col: ColumnDef<T>): NgbFilterOperator[]

defaultFilterOperator

defaultFilterOperator(col: ColumnDef<T>): NgbFilterOperator

rowFilterOperator

rowFilterOperator(col: ColumnDef<T>): NgbFilterOperator

operatorLabel

operatorLabel(operator: NgbFilterOperator): string

rowFilterOperatorLabel

rowFilterOperatorLabel(col: ColumnDef<T>, operator: NgbFilterOperator): string

rowFilterMenuTitle

rowFilterMenuTitle(col: ColumnDef<T>): string

rowFilterPlaceholder

rowFilterPlaceholder(col: ColumnDef<T>): string

isSearchHighlightEnabled

isSearchHighlightEnabled(): boolean

shouldHighlightSearchInColumn

shouldHighlightSearchInColumn(field: string): boolean

formatCellDisplayValue

formatCellDisplayValue(value: unknown): string

groupColumnField

groupColumnField(col: ColumnDef<T>): string

groupRowLabel

groupRowLabel(group: NgbDataGridGroupResult<T>): string

groupRowCountLabel

groupRowCountLabel(group: NgbDataGridGroupResult<T>): string

groupLeadColumnField

groupLeadColumnField(group: NgbDataGridGroupResult<T>): string | null

isGroupLeadColumn

isGroupLeadColumn(col: ColumnDef<T>, group: NgbDataGridGroupResult<T>): boolean

shouldRenderGroupCell

shouldRenderGroupCell(col: ColumnDef<T>, group: NgbDataGridGroupResult<T>): boolean

groupCellColspan

groupCellColspan(col: ColumnDef<T>, group: NgbDataGridGroupResult<T>): number | null

hasGroupHeaderColumnTemplate

hasGroupHeaderColumnTemplate(field: string): boolean

hasGroupFooterTemplate

hasGroupFooterTemplate(field: string): boolean

groupHeaderColumnTemplate

groupHeaderColumnTemplate(field: string): NgbDataGridGroupHeaderColumnTemplateDirective<T> | null

groupFooterTemplate

groupFooterTemplate(field: string): NgbDataGridGroupFooterTemplateDirective<T> | null

groupHeaderContext

groupHeaderContext(group: NgbDataGridGroupResult<T>): GroupHeaderCtx<T>

groupColumnContext

groupColumnContext(group: NgbDataGridGroupResult<T>, col: ColumnDef<T>): GroupColumnCtx<T>

groupRowIndent

groupRowIndent(level: number): number

isGroupCollapsed

isGroupCollapsed(group: NgbDataGridGroupResult<T>, level: number, startIndex: number): boolean

toggleGroupCollapsed

toggleGroupCollapsed(group: NgbDataGridGroupResult<T>, level: number, startIndex: number): void

setGroupExpanded

Group path uses zero-based sibling indexes, for example [0, 1].

setGroupExpanded(path: readonly number[], expanded: boolean): boolean

expandGroup

expandGroup(path: number | readonly number[]): boolean

collapseGroup

collapseGroup(path: number | readonly number[]): boolean

setAllGroupsExpanded

setAllGroupsExpanded(expanded: boolean): void

getSearchHighlightSegments

getSearchHighlightSegments(value: unknown, field: string): NgbSearchHighlightSegment[]

rowFilterEmptyOptionLabel

rowFilterEmptyOptionLabel(col: ColumnDef<T>): string

booleanFilterOptionLabel

booleanFilterOptionLabel(value: boolean): string

isRowFilterMenuOpen

isRowFilterMenuOpen(field: string): boolean

toggleRowFilterMenu

toggleRowFilterMenu(field: string, anchor?: HTMLElement | null): void

setRowFilterOperator

setRowFilterOperator(col: ColumnDef<T>, operator: NgbFilterOperator): void

operatorRequiresValue

operatorRequiresValue(operator: NgbFilterOperator): boolean

isRowFilterVisible

isRowFilterVisible(col: ColumnDef<T>): boolean

isRowFilterOperatorVisible

isRowFilterOperatorVisible(col: ColumnDef<T>): boolean

isMenuFilterVisible

isMenuFilterVisible(col: ColumnDef<T>): boolean

getColumnFilter

getColumnFilter(field: string): NgbFilterDescriptor | null

hasActiveColumnFilter

hasActiveColumnFilter(field: string): boolean

clearColumnFilter

clearColumnFilter(field: string, emit?: boolean): void

clearAllFilters

clearAllFilters(emit?: boolean): void

currentGlobalFilterValue

currentGlobalFilterValue(): string

operatorControlName

operatorControlName(field: string): string

valueControlName

valueControlName(field: string): string

getFilterControl

getFilterControl(field: string): AbstractControl | null

applyRowFilter

applyRowFilter(col: ColumnDef<T>): void

ensureMenuJoinLogic

ensureMenuJoinLogic(col: ColumnDef<T>): 'and' | 'or'

setMenuJoinLogic

setMenuJoinLogic(col: ColumnDef<T>, logic: 'and' | 'or'): void

canApplyMenuFilter

canApplyMenuFilter(col: ColumnDef<T>): boolean

canClearMenuFilter

canClearMenuFilter(col: ColumnDef<T>): boolean

ensureMenuDraftConditions

ensureMenuDraftConditions(col: ColumnDef<T>): NgbMenuFilterConditionDraft[]

ensureMenuDraft

First menu condition (header filter menus).

ensureMenuDraft(col: ColumnDef<T>): NgbMenuFilterConditionDraft

setMenuDraftOperator

setMenuDraftOperator(col: ColumnDef<T>, operator: NgbFilterOperator, index?: number): void

isMenuOperatorOpen

isMenuOperatorOpen(field: string, index?: number): boolean

toggleMenuOperator

toggleMenuOperator(field: string, index?: number): void

toggleFilterMenu

toggleFilterMenu(field: string, anchor?: HTMLElement | null): void

applyMenuFilter

applyMenuFilter(col: ColumnDef<T>): void

clearMenuFilter

clearMenuFilter(col: ColumnDef<T>): void

multiCheckboxOptions

multiCheckboxOptions(col: ColumnDef<T>): MultiCheckboxOption[]

multiCheckboxVisibleOptions

multiCheckboxVisibleOptions(col: ColumnDef<T>): MultiCheckboxOption[]

multiCheckboxValueLabel

multiCheckboxValueLabel(col: ColumnDef<T>, value: unknown): string

ensureMultiCheckboxDraft

ensureMultiCheckboxDraft(col: ColumnDef<T>): unknown[]

multiCheckboxSelectedCount

multiCheckboxSelectedCount(col: ColumnDef<T>): number

multiCheckboxTotalCount

multiCheckboxTotalCount(col: ColumnDef<T>): number

isMultiCheckboxChecked

isMultiCheckboxChecked(col: ColumnDef<T>, value: unknown): boolean

toggleMultiCheckboxValue

toggleMultiCheckboxValue(col: ColumnDef<T>, value: unknown): void

isMultiCheckboxAllSelected

isMultiCheckboxAllSelected(col: ColumnDef<T>): boolean

toggleMultiCheckboxAll

toggleMultiCheckboxAll(col: ColumnDef<T>): void

multiCheckboxToggleLabel

multiCheckboxToggleLabel(col: ColumnDef<T>): string

isMultiCheckboxPartiallySelected

isMultiCheckboxPartiallySelected(col: ColumnDef<T>): boolean

multiCheckboxFilterApplyLabel

multiCheckboxFilterApplyLabel(): string

multiCheckboxFilterCancelLabel

multiCheckboxFilterCancelLabel(): string

multiCheckboxFilterShowCancel

multiCheckboxFilterShowCancel(): boolean

cancelMultiCheckboxFilter

cancelMultiCheckboxFilter(col: ColumnDef<T>): void

applyMultiCheckboxFilter

applyMultiCheckboxFilter(col: ColumnDef<T>): void

filterContext

filterContext(col: ColumnDef<T>, source: 'row' | 'menu'): FilterCtx<T>

isServerBound

True when `[data]` is a server page and `[total]` is the full result count.

isServerBound(): boolean

recordTotal

Row count for pager, range labels, and `aria-rowcount`.

recordTotal(): number

pagerCollectionSize

Collection size passed to the built-in pager.

pagerCollectionSize(): number

hasRenderableRows

hasRenderableRows(): boolean

resolvedPageable

resolvedPageable(): NgbDatagridPageableSettings

pagerShowsAt

pagerShowsAt(placement: NgbDatagridPagerPosition): boolean

showPagerInfo

showPagerInfo(): boolean

showPagerPageSizes

showPagerPageSizes(): boolean

pagerButtonCount

pagerButtonCount(): number

pagerPreviousNext

pagerPreviousNext(): boolean

pagerType

hasCustomPagerTemplate

hasCustomPagerTemplate(): boolean

pagerResponsive

pagerResponsive(): boolean

pagerContext

pagerContext(): PagerCtx<Datagrid<T>> & { $implicit: PagerCtx<Datagrid<T>>; }

dataState

dataState(): NgbDataGridState

captureView

Capture configuration only: no records, callbacks, selection, or editor drafts.

restoreHistoryRow

Used by history to replay a committed edit through the normal edit service and rowSave event.

restoreHistoryRow(index: number, updated: T, historyAction: 'undo' | 'redo'): NgbDataGridHistoryResult

restoreView

restoreView(snapshot: unknown): NgbDataGridViewRestoreResult

onBodyHorizontalScroll

onBodyHorizontalScroll(): void

onWindowResize

onWindowResize(): void

isColumnPinned

isColumnPinned(col: ColumnDef<T>): boolean

columnPinnedSide

columnPinnedSide(col: ColumnDef<T>): 'start' | 'end' | null

resolvedDir

resolvedDir(): 'ltr' | 'rtl' | null

isRtl

isRtl(): boolean

hasPinnedColumns

hasPinnedColumns(): boolean

shouldPinLeadingUtilityColumns

shouldPinLeadingUtilityColumns(): boolean

utilityColumnWidth

utilityColumnWidth(kind: UtilityColumnKind): number

resolvedEditMode

resolvedEditMode(): NgbEditMode

isIncellEditMode

isIncellEditMode(): boolean

isExternalEditMode

isExternalEditMode(): boolean

isToolbarEditMode

isToolbarEditMode(): boolean

showEditingToolbar

showEditingToolbar(): boolean

showRowEditAction

showRowEditAction(): boolean

showRowDeleteAction

showRowDeleteAction(): boolean

showActionsColumn

showActionsColumn(): boolean

isCellInEditMode

isCellInEditMode(pagedIndex: number, col: ColumnDef<T>): boolean

onCellClick

onCellClick(ev: MouseEvent, pagedIndex: number, col: ColumnDef<T>): void

onCellMouseDown

onCellMouseDown(ev: MouseEvent, pagedIndex: number, col: ColumnDef<T>): void

onCellKeydown

onCellKeydown(ev: KeyboardEvent, pagedIndex: number, col: ColumnDef<T>, colIndex: number): void

startIncellEdit

startIncellEdit(pagedIndex: number, field: string): void

commitIncellEdit

commitIncellEdit(close?: boolean): boolean

cancelIncellEdit

cancelIncellEdit(): void

getSingleSelectedPagedIndex

getSingleSelectedPagedIndex(): number | null

editSelectedRow

editSelectedRow(): void

deleteSelectedRows

deleteSelectedRows(): void

openExternalEdit

openExternalEdit(pagedIndex: number): void

openExternalAdd

openExternalAdd(): void

saveExternalEdit

saveExternalEdit(): void

cancelExternalEdit

cancelExternalEdit(): void

utilityLeadingWidth

utilityLeadingWidth(): number

columnWidth

columnWidth(col: ColumnDef<T>): number

isColumnResizable

isColumnResizable(col: ColumnDef<T>): boolean

startColumnResize

startColumnResize(event: MouseEvent, col: ColumnDef<T>): void

onDocumentMouseMove

onDocumentMouseMove(event: MouseEvent): void

onDocumentMouseUp

onDocumentMouseUp(): void

autoFitColumnsToGrid

autoFitColumnsToGrid(): void

utilityStickyOffset

utilityStickyOffset(kind: Exclude<UtilityColumnKind, 'actions'>): number | null

columnStartOffset

columnStartOffset(col: ColumnDef<T>): number | null

columnEndOffset

columnEndOffset(col: ColumnDef<T>): number | null

columnPinnedClass

columnPinnedClass(col: ColumnDef<T>): string | null

isStackedLayout

isStackedLayout(): boolean

isStackedCardsLayout

isStackedCardsLayout(): boolean

stackedGroupFor

stackedGroupFor(col: ColumnDef<T>): StackedGroup

stackedColumnsInGroup

stackedColumnsInGroup(group: StackedGroup): ColumnDef<T>[]

stackedCardGroups

stackedCardGroups(): StackedGroup[]

visibleColumnIndex

visibleColumnIndex(col: ColumnDef<T>): number

stackedCardColspan

stackedCardColspan(): number

clearSorting

clearSorting(emit?: boolean): void

setColumnHidden

setColumnHidden(field: string, hidden: boolean): void

applyColumnVisibility

applyColumnVisibility(visibility: Record<string, boolean>): void

getSelectedCount

getSelectedCount(): number

hasSelectedRows

hasSelectedRows(): boolean

hasSingleSelectedRow

hasSingleSelectedRow(): boolean

resolveHeaderClass

resolveHeaderClass(col: ColumnDef<T>): string | string[] | Record<string, boolean> | null

resolveHeaderStyle

resolveHeaderStyle(col: ColumnDef<T>): Record<string, string | number> | null

resolveCellClass

resolveCellClass(row: T, rowIndex: number, col: ColumnDef<T>): string | string[] | Record<string, boolean> | null

resolveCellStyle

resolveCellStyle(row: T, rowIndex: number, col: ColumnDef<T>): Record<string, string | number> | null

resolveRowClass

resolveRowClass(row: T, rowIndex: number): string | string[] | Record<string, boolean> | null

resolveRowStyle

resolveRowStyle(row: T, rowIndex: number): Record<string, string | number> | null

updateHighlightCache

updateHighlightCache(): void

headerText

headerText(col: ColumnDef<T>): string

headerTitle

headerTitle(col: ColumnDef<T>): string

cellTitle

cellTitle(row: T, col: ColumnDef<T>): string

columnFilterAriaLabel

columnFilterAriaLabel(col: ColumnDef<T>): string

inputAriaLabel

inputAriaLabel(col: ColumnDef<T>): string

reorderColumnAriaLabel

reorderColumnAriaLabel(col: ColumnDef<T>): string

resizeColumnAriaLabel

resizeColumnAriaLabel(col: ColumnDef<T>): string

openFilterMenuAriaLabel

openFilterMenuAriaLabel(col: ColumnDef<T>): string

clearFilterAriaLabel

clearFilterAriaLabel(col: ColumnDef<T>): string

filterOperatorAriaLabel

filterOperatorAriaLabel(col: ColumnDef<T>): string

editRowAriaLabel

editRowAriaLabel(index: number): string

deleteRowAriaLabel

deleteRowAriaLabel(index: number): string

stickyRowToggleAriaLabel

stickyRowToggleAriaLabel(): string

booleanDisplayLabel

booleanDisplayLabel(value: boolean): string

emptyStateLabel

emptyStateLabel(): string

paginationRangeLabel

paginationRangeLabel(): string

rowsPerPageLabel

rowsPerPageLabel(): string

ariaRowCount

ariaRowCount(): number

ariaDataRowIndex

ariaDataRowIndex(index: number): number | null

ariaColCount

ariaColCount(): number

isCellFocused

isCellFocused(rowIndex: number, colIndex: number): boolean

cellTabIndex

cellTabIndex(rowIndex: number, colIndex: number): number | null

focusCell

focusCell(rowIndex: number, colIndex: number): void

onDataCellFocus

onDataCellFocus(rowIndex: number, colIndex: number): void

onDataCellKeydown

onDataCellKeydown(ev: KeyboardEvent, rowIndex: number, colIndex: number, col: ColumnDef<T>): void

announceStatus

announceStatus(message: string): void

ariaSortFor

ariaSortFor(field: Extract<keyof T, string>): 'ascending' | 'descending' | 'none'

sortButtonAriaLabel

sortButtonAriaLabel(col: ColumnDef<T>): string

exportAriaLabel

exportAriaLabel(kind: 'pdf' | 'excel'): string

export

export(kind: 'pdf' | 'excel'): Promise<void>

setSelectionIds

Apply selection ids and refresh checkbox UI (for programmatic / OnPush sync).

setSelectionIds(ids: Iterable<NgbDatagridRowId>, options?: { emit?: boolean; }): void

isCellEditable

isCellEditable(col: ColumnDef<T>, row: T, isNew: boolean): boolean

isRowReorderEnabled

isRowReorderEnabled(): boolean

hasActiveFilters

hasActiveFilters(): boolean

startAdd

startAdd(): void

saveAdd

saveAdd(): void

cancelAdd

cancelAdd(): void

startEdit

startEdit(i: number): void

saveEdit

saveEdit(i: number): void

cancelEdit

cancelEdit(i: number): void

onNewDraftChange

onNewDraftChange(col: ColumnDef<T>): void

validateInto

validateInto(col: ColumnDef<T>, targetDraft: DraftValues<T> | null, targetErrors: Partial<Record<KeyOf<T>, string>>): void

deleteRow

deleteRow(i: number): void

isRowHighlighted

isRowHighlighted(row: T, rowIndex: number): boolean

isCellHighlighted

isCellHighlighted(row: T, rowIndex: number, column: ColumnDef<T>, colIndex: number): boolean

toggleSort

toggleSort(field: Extract<keyof T, string>): void

onGlobalFilterChange

onGlobalFilterChange(): void

onColumnFilterChange

onColumnFilterChange(): void

onDocumentClick

onDocumentClick(event: MouseEvent): void

canCancelToolbarEdit

canCancelToolbarEdit(): boolean

isToolbarEditActive

isToolbarEditActive(): boolean

isToolbarSaveDisabled

isToolbarSaveDisabled(): boolean

saveToolbarEdit

saveToolbarEdit(): void

cancelToolbarEdit

cancelToolbarEdit(): void

ariaColIndexForUtility

ariaColIndexForUtility(kind: Exclude<UtilityColumnKind, 'actions'>): number | null

ariaColIndexForDataColumn

ariaColIndexForDataColumn(visibleColumnIndex: number): number

ariaColIndexForActions

ariaColIndexForActions(): number

onEscapeKey

onEscapeKey(): void

onPageChange

onPageChange(p: number): void

onPageSizeChange

onPageSizeChange(): void

canExpandRow

Whether a current-page row can display the projected detail template.

canExpandRow(index: number): boolean

detailRowId

Stable within this grid instance, including nested grids and SSR rendering.

detailRowId(index: number): string

expandRow

Expand a current-page row. Returns false for an unavailable row or a no-op.

expandRow(index: number): boolean

collapseRow

Collapse a current-page detail, restoring its disclosure focus when needed.

collapseRow(index: number): boolean

toggleExpand

Compatibility toggle using processed current-page indexes.

toggleExpand(index: number): void

isExpanded

isExpanded(index: number): boolean

onRowClick

onRowClick(ev: MouseEvent, i: number): void

onPage

onPage(p: number): void

onPageSize

onPageSize(sz: number | string): void

onRowDrop

onRowDrop(event: NgbDndDropEvent<T>): void

asBool

asBool(v: unknown): boolean

triggerExport

triggerExport(kind: 'pdf' | 'excel'): void

isResponsiveEnabled

isResponsiveEnabled(): boolean

isRowSticky

isRowSticky(row: T, pagedIndex: number): boolean

toggleStickyRow

toggleStickyRow(pagedIndex: number): void

stickyIcon

stickyIcon(row: T, pagedIndex: number): string

stickyTop

stickyTop(row: T, pagedIndex: number): number | null

isSelectionEnabled

isSelectionEnabled(): boolean

showSelectionColumn

showSelectionColumn(): boolean

isCheckboxOnly

isCheckboxOnly(): boolean

isSelectionDisabled

isSelectionDisabled(row: T, pagedIndex: number): boolean

isRowSelected

isRowSelected(row: T, pagedIndex: number): boolean

toggleSelection

toggleSelection(pagedIndex: number, event?: Event): void

toggleSelectAllCurrentPage

toggleSelectAllCurrentPage(): void

isPageAllSelected

isPageAllSelected(): boolean

isPageIndeterminate

isPageIndeterminate(): boolean

selectAllLabel

selectAllLabel(): string

rowSelectionLabel

rowSelectionLabel(index: number): string

onRowSelect

onRowSelect(ev: MouseEvent, pagedIndex: number): void

Referenced types

Source: src/datagrid/src/datagrid/datagrid.component.ts in the installed @angular-bootstrap/ngbootstrap package. Angular compiler metadata and private members are omitted.

This project is not affiliated with ng-bootstrap or ngx-bootstrap. Those projects focus mainly on Bootstrap components for Angular. ngbootstrap focuses on Angular UI for data-heavy apps, especially Data Grid, Angular-native Form Builder, drag and drop workflows, documentation examples, and performance-focused Angular patterns.