JavaScript

A5.ButtonDropdownsetContent Method

Syntax

A5.ButtonDropdown.setContent(content)

Arguments

contentobject

The text and icon(s) overrides.

htmlstring

The HTML to put in the button.

iconstring

The icon to put in the button. See A5.u.icon.

hoverIconstring

The icon to put in the button when the user hovers over it. See A5.u.icon.

pressedIconstring

The icon to put in the button when it is pressed. See A5.u.icon.

disabledIconstring

The icon to put in the button when it is disabled. See A5.u.icon.

tipstring

The TITLE attribute to put in the button that will appear as a tool tip when the user hovers over the button.

Description

Set the contents of the dropdown button to something other then the original.

Example

// assume "newDocButton" is an A5.ButtonDropdown
newDocButton.setState({html: 'New from Template...'});