Extends

Mixes In

Members

acceptTypes :array

The array of types that this can be dropped if this is to be used as a target. Note that this has been added
purely to support configurablility and extensions. If this is left as the default of null then it means
that this cannot be used as a drag-and-drop target.

Type:

items :array

The array of items to render as draggable entities. Each item should have a type array (indicating
what targets it can be dropped onto), a label (to indicate its purpose) and a value (which can
be any complex object).

Type:

widgets :array

Type:

Methods

creator(item)

Handles the creation of drag and drop avatars. This could check the supplied hint parameter
to see if an avatar is required, but since the source doesn't allow self-copying and is not
a target in itself then this is not necessary.

Parameters:

onExternalItemSelected(payload)

Handles publications indicating that another DragAndDropItems
widget publishing at the same scope has had an item selected. It checks that the publication didn't
originate from the current instance and if not deselects all the items.

Parameters:

Name

Type

Description

payload

object

The payload containing the details of the widget that has had an item selected.