handleDesignViewDrop()
Availability
Adobe Dreamweaver MX.
Description
Handles the drop operation when the user drags a table or view from the Database panel or a component from the Components panel to the Design view.
Arguments
componentRec
- The
componentRecargument is an object that contains the following properties:- The
nameproperty is the name of the tree node item. - The
imageproperty is an optional icon for the tree node item. If omitted, Adobe Dreamweaver MX uses a default icon. - The
hasChildrenproperty is a Boolean value that indicates whether the tree node item is expandable: iftrue,Adobe Dreamweaver MX displays the Plus (+) and Minus (-) buttons for the tree node item; iffalse,the item is not expandable. - The
toolTipTextproperty is optional tool tip text for the tree node item. - The
isCodeViewDraggableproperty is a Boolean value that indicates whether the tree node item can be dragged and dropped into the Code view. - The
isDesignViewDraggableproperty is a Boolean value that indicates whether the tree node item can be dragged and dropped into the Design view.
- The
Returns
A Boolean value that indicates whether the drop operation was successful: true if successful; false otherwise.
Example
The following example determines if the component is a table or view, and then returns the appropriate bHandled value:
function handleDesignViewDrop(componentRec){ var bHandled = false; if (componentRec) { if ((componentRec.objectType == "Table")|| (componentRec.objectType == "View")) { alert("popup Recordset Server Behavior"); bHandled = true; } } return bHandled;}