Directive · v2.7.0
NgbDndItemDirective
NgbDndItemDirective directive exported by the ngbootstrap package API.
Import
import { NgbDndItemDirective } from '@angular-bootstrap/ngbootstrap';Selector:[ngbDndItem]
Declaration
class NgbDndItemDirective<T = unknown>Inputs
ngbDndItem
required: the value carried by this row/panel
item: TdndGroup
optional: constrain cross-list drops
dndGroup?: stringdndIndex
index inside its parent list (bind to the rendered row index)
dndIndex?: numberdndSourceList
Explicit source list for recursive templates where DI can be ambiguous.
dndSourceList?: T[]dndDisabled
dndDisabled: booleanDefault:false
dndRole
dndRole: stringDefault:'listitem'
Outputs
dndDragStart
dndDragStart: EventEmitter<T>dndDragEnd
dndDragEnd: EventEmitter<void>Properties
draggable
get draggable(): booleanhostClass
hostClass: booleanDefault:true
dragging
dragging: booleanDefault:false
ariaGrabbed
get ariaGrabbed(): "true" | "false"role
get role(): string
set role(value: string)tabIndex
tabIndex: numberDefault:0
Methods
onDragStart
onDragStart(ev: DragEvent): voidonDragEnd
onDragEnd(): voidonKeydown
onKeydown(ev: KeyboardEvent): void