Isatarget(), Isavailableincodeview() – Adobe Extending Dreamweaver CS4 User Manual
Page 236
230
EXTENDING DREAMWEAVER CS4
Floating panels
Returns
Dreamweaver expects a string of the form
"floaterName1,floaterName2,...floaterNameN"
.
Example
The following example of the
initialTabs()
function specifies that the first time the floating panel appears, it should
be tabbed with the scriptEditor floating panel:
function initialTabs(){
return "scriptEditor";
}
isATarget()
Availability
Dreamweaver MX (Windows only).
Description
Specifies whether other panels can dock to this floating panel. If the
isATarget()
function is not specified,
Dreamweaver prevents other panels from docking to this one. Dreamweaver calls this function when the user tries to
combine this panel with others.
Arguments
None.
Returns
Dreamweaver expects a Boolean value:
true
if other floating panels can dock to this one;
false
otherwise.
Example
isATarget()
{
return true;
}
isAvailableInCodeView()
Description
Determines whether the floating panel should be enabled when Code view is selected. If this function is not defined,
the floating panel is disabled in the Code view.
Arguments
None.
Returns
Dreamweaver expects a Boolean value:
true
if the floating panel should be enabled in Code view;
false
otherwise.