Class: AssetDragAndDrop

Granite.author.ui.assetFinder. AssetDragAndDrop


new AssetDragAndDrop()

Drop Controller that manages d&d of Assets over Overlays

Source:
ui/ui.assetFinder.AssetDragAndDrop.js
See:

Methods


<private> _getComponentMapping(event)

Searches for a compatible component mapping

Parameters:
Name Type Description
event
Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Returns:
Type
*

createComponent(event)

Creates the component when a mapping is found (cf. cq:authoring/assetToComponentMapping)

Parameters:
Name Type Description
event
Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Returns:
Type
Granite.author.Component

getTypeName()

Returns the type name of the drag origin

Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Returns:
Type
string

handleDragEnd(event)

Handles the drag end event

Parameters:
Name Type Description
event
Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Fires:

handleDragStart(event)

Handles the drag start event

Parameters:
Name Type Description
event
Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Fires:

handleDrop(event)

Handles the dropped event

Parameters:
Name Type Description
event
Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Fires:

isInsertAllowed(event)

Is it allowed to insert nearby the target Granite.author.Editable

Parameters:
Name Type Description
event
Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Returns:
Type
boolean

prepareProperties(event, dropTarget)

Will be called to receive the properties needed for the server update

Parameters:
Name Type Description
event
dropTarget
Source:
ui/ui.assetFinder.AssetDragAndDrop.js
Returns:
Type
Object