drag-source(key
, value
, ..., key
, value
)
Inserts a button in generated content which executes a command (see Chapter 6, Commands written in the Java™ programming language in XMLmind XML Editor - Commands) when it is dragged. There is no need to press any modifier key (e.g. Alt) when a drag-source
is dragged.
Identical to command-button except that:
A drag-source
cannot be used to popup a menu.
The user cannot click on a drag-source
. He/she needs to drag the mouse over it to trigger the command. This command must return a string.
XHTML example:
a[href][class="drag-source"]:after { content: " " drag-source(icon, icon(drag), command, "xhtml.drag"); vertical-align: text-top; }