Specifications

To o l b a r s 83
showIf="script" Specifies that this item appears only on the toolbar if the specified script
returns
true. For example, you can use showIf to show certain buttons only in a given
application or only when a page is written in a server-side language such as ColdFusion, ASP, or
JSP. If you do not specify
showIf, the item always appears. Dreamweaver checks this property
whenever the items enabler runs; that is, according to the value of the
update attribute. You
should use this attribute sparingly. The
showIf attribute can be used either in the item definition
or in a reference to the item from a toolbar. If both the definition and the reference specify the
showIf attribute, Dreamweaver shows the item only if both conditions are true. The showIf
attribute is equivalent to the
showIf() function in a command file.
Contents
None.
Container
The toolbar tag or the toolbarset tag.
Example
<itemref id="strikeout_button">
<separator/>
Description
Inserts a separator at the current location in the toolbar.
Attributes
{showIf}
showif
Specifies that the separator should appear only on the toolbar if the given script returns
true. For example, you can use showIf to show the separator only in a given application or only
when the page has a certain document type. If unspecified, the separator always appears.
Contents
None.
Container
The toolbar tag.
Example
<separator/>
Toolbar item tags
Each type of toolbar item has its own tag and its own set of required and optional attributes. You
can define
toolbar items either inside or outside of toolbars. In general, it is better to define
them outside of toolbars and refer to them within toolbars using the
itemref tag.
You can define the following types of items in a toolbar.
<button>
Description
A pushbutton that executes a specific command when pressed. Looks and acts the same as the
Reference button on the Dreamweaver toolbar.