Be.pageRenderer ViewHelper <f:be.pageRenderer>
¶
ViewHelper to register backend module resources like CSS and JavaScript using the PageRenderer.
Examples¶
All options:
<f:be.pageRenderer pageTitle="foo"
includeCssFiles="{0: '{f:uri.resource(path:\'Css/Styles.css\')}'}"
includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/Library1.js\')}', 1: '{f:uri.resource(path:\'JavaScript/Library2.js\')}'}"
addJsInlineLabels="{0: 'label1', 1: 'label2'}" />
Custom CSS file EXT:your_extension/Resources/Public/Css/styles.css
and
JavaScript files EXT:your_extension/Resources/Public/JavaScript/Library1.js
and
EXT:your_extension/Resources/Public/JavaScript/Library2.js
will be loaded, plus some inline labels for usage in JS code.
Source code¶
Go to the source code of this ViewHelper: PageRendererViewHelper.php (GitHub).
Arguments¶
The following arguments are available for <f:be.pageRenderer>
:
-
pageTitle
¶ -
- Type
- string
Title tag of the module. Not required by default, as BE modules are shown in a frame
-
includeCssFiles
¶ -
- Type
- mixed
List of custom CSS file to be loaded
-
includeJsFiles
¶ -
- Type
- mixed
List of custom JavaScript file to be loaded
-
addJsInlineLabels
¶ -
- Type
- mixed
Custom labels to add to JavaScript inline labels
-
includeRequireJsModules
¶ -
- Type
- mixed
List of RequireJS modules to be loaded
-
addInlineSettings
¶ -
- Type
- mixed
Adds Javascript Inline Setting