Update `codebox` macro
[GitHub/WoltLab/woltlab.github.io.git] / docs / package / pip / clipboard-action.md
1 # Clipboard Action Package Installation Plugin
2
3 Registers clipboard actions.
4
5 ## Components
6
7 Each clipboard action is described as an `<action>` element with the mandatory attribute `name`.
8
9 ### `<actionclassname>`
10
11 The name of the class used by the clipboard API to process the concrete action.
12 The class has to implement the `wcf\system\clipboard\action\IClipboardAction` interface, best by extending `wcf\system\clipboard\action\AbstractClipboardAction`.
13
14 ### `<pages>`
15
16 Element with `<page>` children whose value contains the class name of the controller of the page on which the clipboard action is available.
17
18 ### `<showorder>`
19
20 <span class="label label-info">Optional</span>
21
22 Determines at which position of the clipboard action list the action is shown.
23
24
25 ## Example
26
27 {jinja{ codebox(
28 title="clipboardAction.xml",
29 language="xml",
30 filepath="package/pip/clipboardAction.xml"
31 ) }}