Home Manual Reference Source Repository
import {DropTarget} from 'ug-layout/esdoc'
public interface | source

DropTarget

Direct Implemented:

An interface that signifies the renderable can handle drops.

Method Summary

Public Methods
public

Calculates the highlight coordinates for the drop target.

public

handleDrop(item: Renderable, dropArea: DropArea, event: DragEvent<Renderable>)

Handles an item being dropped on this Renderable.

public

Invoked when the item is no longer a drop target.

Public Methods

public getHighlightCoordinates(args: HighlightCoordinateArgs): RenderableArea source

Calculates the highlight coordinates for the drop target.

Params:

NameTypeAttributeDescription
args HighlightCoordinateArgs

Return:

RenderableArea

public handleDrop(item: Renderable, dropArea: DropArea, event: DragEvent<Renderable>) source

Handles an item being dropped on this Renderable.

Params:

NameTypeAttributeDescription
item Renderable
dropArea DropArea
event DragEvent<Renderable>

public onDropHighlightExit() source

Invoked when the item is no longer a drop target.