From version 29.2
edited by Denis Gervalle
on 2017/10/09 17:46
To version 29.3
edited by Denis Gervalle
on 2017/10/09 17:49
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -14,7 +14,7 @@
14 14  * ##$xwiki.ssrx.use('path/to/file.css')## pulls a style sheet file located in a JAR (located either in ##WEB-INF/lib## or added through an Extension).
15 15  * All the above versions accept as a second parameter a map of parameters, as in ##$xwiki.jsx.use('Document.Name', {'minify' : false, 'language': $context.language})##
16 16  * jsfx and ssfx have an optional second boolean parameter, which allows to specify whether the URL of the pulled file extension should always pass through the skin action: ##$xwiki.jsfx.use('path/to/file.js', true)##; for enabling this behavior with the generic parameter map, use ##$xwiki.jsfx.use('file.js', {'forceSkinAction': true})##
17 -* ##$xwiki.linkx.use('url/to/file.css', {'type': 'text/css', 'rel': 'stylesheet'})## pulls a style sheet from any URL, this could be very useful in combinaison with the webjar module, where you can use ##$xwiki.linkx.use($services.webjars.url('artifact-id','path/to/file.css'), {'type': 'text/css', 'rel': 'stylesheet'})##
17 +* ##$xwiki.linkx.use('url/to/file.css', {'type': 'text/css', 'rel': 'stylesheet'})## pulls a style sheet from any URL, this could be very useful in combination with the webjar module, where you can use ##$xwiki.linkx.use($services.webjars.url('artifact-id','path/to/file.css'), {'type': 'text/css', 'rel': 'stylesheet'})##
18 18  
19 19  Important parameters:
20 20  

Get Connected