In Méthode Swing it is possible to add external CSS files. Such files must be placed under
{SWING-APP}/plugins/assets
All the files contained in this folder are loaded asynchronously into Méthode Swing.
|
It is suggested to place each library under a specific folder, e.g: {SWING-APP}/plugins/assets/font-test/font-test.css
|
|
By default, these CSS are loaded only at application level as "assets.css". To load and apply the CSS inside the editor context you must put the following line
as the first line of the CSS. Only the CSS files with editors directive (@editor or @dwpeditor) are applied inside the editors, all CSS files with application directive (@app) or without directive are excluded. Méthode Swing loads ONLY the CSS (*.css) files in the folder. Of course, if the CSS file refer to other files (such as fonts or background images) these will be working properly. |
|
Méthode Swing has no control over the CSS. So, an external CSS could break the application layout. Please refer to the log to see which libraries have been loaded. |