Icon Picker Macro

Version 1.1 par superadmin le 2026/01/29 15:25
Avertissement
La version de ce document n'est pas la plus récente. Pour des raisons de sécurité, XWiki affiche le document en mode restreint. Ce mode d'affichage peut provoquer des erreurs dans le corps du document.

Usage

{{iconPicker id="" class="" prefix="" /}}

Where:

id (optional)DOM id of the input field where the picker will apply
class (optional)CSS class of inputs where the picker will apply
prefix (optional)Prefix to add before the name of the icon in the input field (default: "image:icon:")

Live example

{{html}}
 <p><label>Field 1: <input type="text" id="myPicker" /></label></p>
 <p><label>Field 2: <input type="text" class="fieldWithPicker" /></label></p>
{{/html}}

{{iconPicker id="myPicker" class="fieldWithPicker" prefix="icon:" /}}

Play with it