$Foswiki::cfg{JQueryPlugin}{IconFonts}
setting if not already present:
$Foswiki::cfg{JQueryPlugin}{IconFonts} = { ... 'material' => { 'prefix' => 'ma', 'definition' => '$Foswiki::cfg{PubDir}/$Foswiki::cfg{SystemWebName}/WebFontsContrib/material-icons/material.json', 'css' => '$Foswiki::cfg{PubUrlPath}/$Foswiki::cfg{SystemWebName}/WebFontsContrib/material-icons/font-face.css', }, ... };This will register the
ma
prefix to refer to the given icon definition so that below call to %JQICON will load the appropriate
css and font files:
You type:
%JQICON{"ma-add-alarm"}%You get: where
add-alarm
is the name of an icon. See the full list of all icons below.
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
js | script.js | manage | 1 K | 31 Jan 2019 - 11:46 | ProjectContributor | Generated by AttachContentPlugin |
css | style.css | manage | 334 bytes | 31 Jan 2019 - 11:46 | ProjectContributor | Generated by AttachContentPlugin |