Module: alfresco/dnd/DroppedNestingItemWrapper

alfresco/dnd/DroppedNestingItemWrapper

This is an extension of the basic DroppedItemWrapper and should be used when the item dropped can contain one or more nested DragAndDropTargets.
Author:
  • Dave Draper
License:
Source:

Methods

allWidgetsProcessed(widgets)

Updates the display items with the nested widget configuration model. The widgets processed are expected to be DragAndDropNestedTarget widgets that will be able to pass this additional configuration onto the items that are dropped into them.
Parameters:
Name Type Description
widgets array The widgets processed.
Source:

notifyParentOfChange()

This function can be called to update wrapping widgets that the current item has changed.
Source:

onItemDelete(evt)

Extends the inherited function to to iterate over all the nested items an individually delete them to ensure that any items that are configured for single use only are ultimately returned to the DragAndDropItems widget from which they were originally sourced.
Parameters:
Name Type Description
evt object The deletion event
Source:

onNestedConfig(targetWidget, resolvedPromise)

Retrieves additional configuration data from a DndModellingService that can then be passed onto the child widget.
Parameters:
Name Type Description
targetWidget object The target widget to update with the additional configuration
resolvedPromise promise A resolved promise that is expected to contain a widgets array
Source:

onNestedTargetReordered(evt)

Handles items in a target being reordered
Parameters:
Name Type Description
evt object The drop event.
Source:

onNestedTargetUpdated(evt)

Handles items being dropped into nested targets.
Parameters:
Name Type Description
evt object The drop event.
Source:

postCreate()

Extends the inherited function to listen to events generated when an item is dropped into a nested target.
Source:

<inner> onEditConfig(item, resolvedPromise)

Extends the inherited function to add in any nested configuration widgets.
Parameters:
Name Type Description
item object The current item being edited.
resolvedPromise promise A resolved promise that is expected to contain a widgets array
Source: