32. set-attribute-button
Prev | Chapter 5. Content objects | Next

## 32. set-attribute-button

set-attribute-button(attribute, `attribute_name`, `key`, `value,` ..., `key`, `value`)

Inserts a command-button in generated content which can be used to give a value to specified attribute. A pop-up menu listing all possible values is displayed when this button is clicked.

This pop-up menu cannot be displayed if the type of the specified attribute is not an enumerated type or is not IDREF or IDREFS. Moreover, when the type of the specified attribute is IDREF or IDREFS, the pop-up menu cannot be displayed if no attributes of type ID have been added to elements in the document.

Optional parameter unset-attribute may be set to yes (other allowed value is no) to specify that a remove attribute command is to be added at the end of the pop-up menu.

By default, this button has its icon set to `icon(pop-down)`.

Example:

    set-attribute-button(attribute, for,
                         unset-attribute, yes,
                         icon, icon(pop-right));

Prev | Up | Next
31. replace-button | Home | 33. text-area