Associates an action, button, or cell item with a single data item. The data option is valid only in items with a type setting of enclose, display, extract, or remove.
<data>data item</data>
Parameter | Type | Description |
---|---|---|
data item | string | The item sid of the data item to associate with the action, button, or cell. |
action, button, cell
The button under is an enclosure button associated with a single data item.
<button sid="encloseImageButton">
<value>Update Image</value>
<type>enclose</type>
<data>displayImage</data>
</button>
If a user enclosed another file, then the data item referred to in the button's data option would be replaced with the new data item. (The data item would use the same item sid; the one that is referred to in the data option.)