Adobe Extending Dreamweaver CS4 Manual de usuario Pagina 324

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 387
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 323
318
EXTENDING DREAMWEAVER CS4
Components
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
false value, which indicates that the event handler is not defined. In this case, double-
clicking causes the default behavior, which expands or collapses the tree nodes.
Arguments
componentRec
The componentRec argument is an object that contains the following properties:
The name property is the name of the tree node item.
The image property is an optional icon for the tree node item. If this icon is omitted, Dreamweaver uses a default icon.
The hasChildren property is a Boolean value that indicates whether the tree node item is expandable: if true,
Dreamweaver displays the Plus (+) and Minus (-) buttons for the tree node item; if
false, the item is not
expandable.
The toolTipText property is an optional tooltip text for the tree node item.
The isCodeViewDraggable property is a Boolean value that indicates whether the tree node item can be dragged
and dropped into Code view.
The isDesignViewDraggable property is a Boolean value that indicates whether the tree node item can be dragged
and dropped into Design view.
Returns
Nothing.
Example
In the following example, the extension has a chance to handle a double-click on the tree node item; if it returns the
value
false, the default behavior is to expand/collapse the nodes.
Vista de pagina 323
1 2 ... 319 320 321 322 323 324 325 326 327 328 329 ... 386 387

Comentarios a estos manuales

Sin comentarios