Adobe 38040334 - Dreamweaver CS3 User Manual page 323

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

Advertisement

Property name
Description
Left /right
toolStyle
JavaScript code that returns a Boolean value (
enabled
conditions exist:
When the
When the selection in the tree changes
When server model changes
The JavaScript code to execute. The command handler can force a refresh using the
command
serverComponents.refresh()
The unique menu ID for the pop-up menu button when the button is clicked. When this ID is present, it over-
menuId
rides the command handler. In other words, the button can be either a button associated with a command, or
a button that has a pop-up menu associated with it, but not both at the same time.
Arguments
None.
Returns
An array of toolbar buttons in left-to-right order.
Example
The following example assigns properties to the toolbar buttons:
function toolbarControls()
{
var toolBarBtnArray = new Array();
dom = dw.getDocumentDOM();
var plusButton = new ToolbarControlRec();
var aServerModelName = null;
if (dom && dom.serverModel)
{
aServerModelName = dom.serverModel.getDisplayName();
}
else
{
//look in the site for potential server model
aServerModelName = site.getServerDisplayNameForSite();
}
if (aServerModelName.length)
{
if(aServerModelName == "ColdFusion")
{
plusButton.image
plusButton.pressedImage
plusButton.disabledImage
plusButton.toolStyle
plusButton.toolTipText
plusButton.enabled
plusButton.command
}
else
{
dreamweaver.serverComponents.refresh()
function.
= PLUS_BUTTON_UP;
= PLUS_BUTTON_DOWN;
= PLUS_BUTTON_UP;
= "left";
= MM.MSG_WebServicesAddToolTipText;
= "dwscripts.IS_WIN";
= "invokeWebService()";
or
). The enablers are called when the following
true
false
function is called
DREAMWEAVER CS3
Extending Dreamweaver
dreamweaver.
317

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents