← DataGrid API

Directive · v2.7.1

NgbDatagridFloatingPanelDirective

Popup-style overlay: anchors to a trigger, portals to document.body, and uses viewport-fixed coordinates.

Import

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

Selector:[ngbDatagridFloatingPanel]

Declaration

class NgbDatagridFloatingPanelDirective implements OnChanges, AfterViewInit, OnDestroy

Inputs

ngbDatagridFloatingPanelAnchor

ngbDatagridFloatingPanelAnchor?: HTMLElement | null

ngbDatagridFloatingPanelPlacement

ngbDatagridFloatingPanelPlacement: NgbDatagridFloatingPanelPlacement

Default:'menu'

Properties

hostPosition

readonly hostPosition = "fixed"

Default:'fixed'

hostZIndex

readonly hostZIndex = 1200

Default:1200

hostMargin

readonly hostMargin = "0"

Default:'0'

hostTransform

readonly hostTransform = "none"

Default:'none'

panelTop

panelTop: number

Default:0

panelLeft

panelLeft: number

Default:0

Methods

reposition

Called when anchor/layout may have changed after the panel opens.

reposition(): void

Referenced types

Source: src/datagrid/src/foundation/datagrid-floating-panel.directive.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.