Wiki source code of Icon Picker Macro

Last modified by superadmin on 2026/11/28 03:19

Show last authors
1 = Usage =
2 {{code}}
3 {{iconPicker id="" class="" prefix="" /}}
4 {{/code}}
5
6 **Where:**
7 |=id (optional)|DOM id of the input field where the picker will apply
8 |=class (optional)|CSS class of inputs where the picker will apply
9 |=prefix (optional)|Prefix to add before the name of the icon in the input field (default: "{{{image:icon:}}}")
10 == Live example ==
11 {{code}}
12 {{html}}
13 <p><label>Field 1: <input type="text" id="myPicker" /></label></p>
14 <p><label>Field 2: <input type="text" class="fieldWithPicker" /></label></p>
15 {{/html}}
16
17 {{iconPicker id="myPicker" class="fieldWithPicker" prefix="icon:" /}}
18 {{/code}}
19 == Play with it ==
20 {{html}}
21 <p><label>Field 1: <input type="text" id="myPicker" /></label></p>
22 <p><label>Field 2: <input type="text" class="fieldWithPicker" /></label></p>
23 {{/html}}
24
25 {{iconPicker id="myPicker" class="fieldWithPicker" prefix="icon:" /}}

#panelheader($msg.get("xe.panels.quicklinks"))

  • [DSSF 2008>DSSF2008.WebHome]
  • [DCNM 2009>DCNM2009.WebHome]
  • [HCCF 2010>HCCF2010.WebHome]
  • [$msg.get("xe.panels.quicklinks.index")>Main.AllDocs]
  • [$msg.get("xe.panels.quicklinks.sandbox")>Sandbox.WebHome]
    #if ($xwiki.hasAdminRights())
    <p><a href="$xwiki.getDocument("Panels.QuickLinks").getURL("inline")">$msg.get("xe.panels.edit")</a></p>
    #end
    #panelfooter()