plugin:menuext
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:menuext [2021-07-26 16:25] – andi | plugin:menuext [2023-03-02 13:52] (current) – annda | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action | type : action | ||
- | lastupdate : 2021-07-20 | + | lastupdate : 2021-07-29 |
- | compatible : hogfather | + | compatible : Hogfather, Igor |
depends | depends | ||
conflicts | conflicts | ||
Line 29: | Line 29: | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | To make use of the plugin, you need to create a '' | + | To make use of the plugin, you need to create a '' |
<code json conf/ | <code json conf/ | ||
Line 52: | Line 52: | ||
{ | { | ||
" | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
} | } | ||
] | ] | ||
Line 68: | Line 71: | ||
| attr | additional attributes to set on the A node in HTML | | | attr | additional attributes to set on the A node in HTML | | ||
- | Alternatively to creating custom items, you can also reuse existing items by specifying the '' | + | Alternatively to creating custom items, you can also reuse existing items by specifying the '' |
| order | Position to add this item (starts at 0). Defaults to to add at the end. Use negative numbers to count from the end | | | order | Position to add this item (starts at 0). Defaults to to add at the end. Use negative numbers to count from the end | | ||
| action | A standard action (see [[devel: | | action | A standard action (see [[devel: | ||
+ | | classname | Fully qualified class name of a menu item created by a plugin, meaning a class extending '' | ||
+ | |||
+ | ===== Javascript ===== | ||
+ | |||
+ | You can attach Javascript to your items by specifying the function to be called on click: | ||
+ | |||
+ | < | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Remember, you are in global scope, so your method must be available there. | ||
+ | |||
+ |
plugin/menuext.1627309505.txt.gz · Last modified: 2021-07-26 16:25 by andi