Icons
Last modified by Eleni Cojocariu on 2026/08/25 16:23
Content
Explanation
The Icon Theme Application lets code ask for a name of the XWiki Icon Set, so an extension never hard-codes an image path and follows the Icon Theme the wiki has selected on its own.
Each way of asking has its own page:
- Display an Icon in a Script renders an icon from Velocity, and Icon Script Service lists everything $services.icon offers.
- Icon JavaScript API loads icons into browser code, over the Icon REST API that also answers requests of its own.
- Add an Icon Picker lets the user of a form choose an icon, and Icon Picker documents the macro and the jQuery plugin that place it.
- Create an Icon Theme adds a mapping of your own to a wiki, and Icon Theme Properties documents every setting its page carries.
What a request for an icon goes through:
FAQ
Which name does a script pass to select a theme?
The name property of the theme page's IconThemesCode.IconThemeClass object, not the page name: the bundled Font Awesome theme lives on IconThemes.FontAwesome and is named Font Awesome.
More
To find more about the current topic, you can search or use the table below and filter the columns to narrow your choices.