← DataGrid API

Interface · v2.6.0

NgbDataGridExportOptions

Export configuration for PDF/Excel, page source, file names, and adapter-specific options.

Import

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

Declaration

Properties

enabled

enabled: boolean

type

pages

fileName

fileName?: string

pdf

pdf?: { pageSize?: 'A4' | 'Letter' | string; landscape?: boolean; margins?: [number, number, number, number]; }

excel

excel?: { sheetName?: string; }

Referenced types

Source: src/datagrid/src/datagrid.types.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.