← Form Builder and Drag Drop API

Type · v2.6.0

DndCanDropFn

Guard function; return true to allow, false to block

Import

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

Declaration

type DndCanDropFn<T = unknown> = (payload: DndCanDropPayload<T>) => boolean;

Referenced types

Source: src/drag-drop/src/directive/dnd-list.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.