1. add-attribute-button
Prev | Chapter 5. Content objects | Next

## 1. add-attribute-button

Inserts a command-button in generated content which can be used to add an attribute to the element for which the button has been generated.

Optional parameter check-has-attributes may be set to yes (other allowed value is no) to specify that no button is to be generated when target element has no attributes (attribute wildcards and `xsi`:* attributes are ignored).

Do not specify command, parameter or menu parameters for this type of command-button. A menu of `putAttribute` commands is built dynamically each time this button is clicked.

By default, this button has its icon set to `icon(plus)`.

Examples:

    add-attribute-button()

    add-attribute-button(text, "Add attr.",
                         check-has-attributes, yes)

Prev | Up | Next
Chapter 5. Content objects | Home | 2. attributes