WillCore.FontAwesome contains Font Awesome style and font files and assignables.
For more info on Font Awesome, goto https://fontawesome.com/icons?d=gallery.
WillCore.FontAwesome can be installed on an existing WillCore.UI project using NPM:
npm install willcore.fontawesome
After installing, the FontAwesome module can be activated via the "fontawesome" assignable on a WillCore.UI instance :
willcoreInstance.server.ui.fontAwesomeEndpoint.fontawesome;
"fontAwesomeEndpoint" is the file service name where the Font Awesome files will be served from. This can be changed to avoid clashing with existing file services.
Full Example:
const willCoreProxy = require("willcore.core");
let willcore = willCoreProxy.new();
willcore.testServer.server[__dirname] = 8581;
willcore.testServer.http;
willcore.testServer.ui;
willcore.testServer.ui.fontawesomeEndpoint.fontawesome;
WillCore.fontawesome is only activated server-side, no client side activation is required. After activating, Font Awesome will be available and ready to use in your project.