Module: alfresco/dnd/DragAndDropItemsListView

alfresco/dnd/DragAndDropItemsListView

This view uses a DragAndDropItems widget as a data renderer so that drag-and-drop item data can be populated via an AlfList or any of its descendants. This then means that the items can be sourced via a service and refreshed as necessary (it even allows for the possibility of paging, sorting and filtering).
Author:
  • Dave Draper
License:
Source:

Members

dragWithHandles :boolean

Type:
  • boolean
Default Value:
  • false
Source:

renderFilterSelectorQuery :string

Override the default selector to match items in the DND source. This is required because the view doesn't render table rows.
Type:
  • string
Default Value:
  • ".alfresco-dnd-DragAndDropItem"
Source:

templateString :String

The HTML template to use for the widget.
Type:
  • String
Source:

useItemsOnce :boolean

If this is configured to be true then once an item has been used it will be removed so that it cannot be used again. If the item is deleted it will be reinstated.
Type:
  • boolean
Default Value:
  • false
Source:

useItemsOnceComparisonKey :string

When items can only be used once this is the dot-notation property to compare deleted items against the configured datalist items AlfList to see if a deleted item should be re-instated.
Type:
  • string
Default Value:
  • "name"
Source:

Methods

createListRenderer() → {object}

Creates a new ListRenderer which is used to render the actual items in the view. This function can be overridden by extending views (such as the Film Strip View) to create alternative widgets applicable to that view.
Source:
Returns:
A new ListRenderer
Type
object