Class Index

Classes


Namespace i$.dnd

Adds sources and targets for drag and drop.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Entry point for creating sources and targets for drag and drop.
Method Summary
Method Attributes Method Name and Description
<static>  
i$.dnd.dnd.addSource(parameter)
Creates a new dnd source based on the given data.
<static>  
i$.dnd.dnd.addTarget(parameter)
Creates a new dnd target based on the given data.
Namespace Detail
i$.dnd
Entry point for creating sources and targets for drag and drop.
Method Detail
<static> i$.dnd.dnd.addSource(parameter)
Creates a new dnd source based on the given data.
Parameters:
{Object} parameter
parameter object
{DOMNode} parameter.node
The DomNode for the drag handler.
{String} parameter.type
The type of dnd data being transferred.
{Object} parameter.data
The data to transfer when dropped.
{DOMNode} parameter.avatar Optional
The DomNode to use as the dnd avatar.
{Object} parameter.dragstart Optional
function to invoke when dragstart is called. The following parameters will be passed: {Event} e The event. For example, you may use the event to set e.dataTransfer.effectAllowed = "copy"; {DOMNode} n The DomNode of the source area.
{Object} parameter.dragend Optional
function to invoke when dragend is called. Same parameters as parameter.dragstart

<static> i$.dnd.dnd.addTarget(parameter)
Creates a new dnd target based on the given data.
Parameters:
{Object} parameter
parameter object
{DOMNode} parameter.node.
The DomNode to accept dnd source objects.
{DOMNode} parameter.type.
The type of dnd data being transferred.
{Function} parameter.drop
Function to handle the drop of data. The following parameters will be passed: {Event} e The drop event. {Node} n The DomNode of the target area. {String} type The type of data transfered. {Object} data The Object of data that was stored for that source.
{Object} parameter.dragenter Optional
function to invoke when dragend is called. Same The following parameters will be passed: {Event} e The event. {Node} n The DomNode of the target area.
{Object} parameter.dragleave Optional
function to invoke when dragend is called. Same parameters as parameter.dragenter
{Object} parameter.dragover Optional
function to invoke when dragend is called. Same parameters as parameter.dragenter

Copyright (c) 2014 IBM Corporation
Documentation generated by JsDoc Toolkit 2.4.0 on Fri Jan 12 2024 10:11:19 GMT-0000 (UTC)