File

src/target-monitor.ts

Description

The monitor available in DropTarget's listen method.

Extends

MonitorBase

Index

Methods

Methods

canDrop
canDrop()

Returns true if there is a drag operation in progress, and the owner's canDrop() returns true or is not defined.

Returns : boolean
didDrop
didDrop()

Returns true if some drop target has handled the drop event, false otherwise. Even if a target did not return a drop result, didDrop() returns true. Use it inside drop() to test whether any nested drop target has already handled the drop. Returns false if called outside drop().

Returns : boolean
getDropResult
getDropResult()

Returns a plain object representing the last recorded drop result. The drop targets may optionally specify it by returning an object from their drop() methods. When a chain of drop() is dispatched for the nested targets, bottom up, any parent that explicitly returns its own result from drop() overrides the drop result previously set by the child. Returns null if called outside drop().

Returns : DropResult
isOver
isOver(options?: literal type)

Returns true if there is a drag operation in progress, and the pointer is currently hovering over the owner. You may optionally pass { shallow: true } to strictly check whether only the owner is being hovered, as opposed to a nested target.

Parameters :
Name Type Optional
options literal type Yes
Returns : boolean

result-matching ""

    No results matching ""