Adobe 38040334 - Dreamweaver CS3 User Manual page 321

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
property is optional tool tip text for the tree node item.
toolTipText
• The
isCodeViewDraggable
dragged and dropped into the Code view.
• The
isDesignViewDraggable
dragged and dropped into the Design view.
Returns
A Boolean value that indicates whether the drop operation was successful:
Example
The following example determines if the component is a table or view, and then returns the appropriate
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;
}
handleDoubleClick()
Availability
Dreamweaver MX.
Description
When the user double-clicks the node in the tree, the event handler is called to allow editing. This function is
optional. The function can return a
double-clicking causes the default behavior, which expands or collapses the tree nodes.
Arguments
componentRec
• The
argument is an object that contains the following properties:
componentRec
• The
property is the name of the tree node item.
name
• The
property is an optional icon for the tree node item. If this icon is omitted, Dreamweaver uses a
image
default icon.
• The
property is a Boolean value that indicates whether the tree node item is expandable: if
hasChildren
Dreamweaver displays the Plus (+) and Minus (-) buttons for the tree node item; if
expandable.
• The
property is an optional tooltip text for the tree node item.
toolTipText
property is a Boolean value that indicates whether the tree node item can be
property is a Boolean value that indicates whether the tree node item can be
value, which indicates that the event handler is not defined. In this case,
false
Extending Dreamweaver
if successful;
true
false
the item is not
false,
DREAMWEAVER CS3
315
otherwise.
bHandled
,
true

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents