PageRendererViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <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 :file:EXT:your_extension/Resources/Public/Css/styles.css
and
JavaScript files :file:EXT:your_extension/Resources/Public/JavaScript/Library1.js
and
:file:EXT:your_extension/Resources/Public/JavaScript/Library2.js
will be loaded, plus some inline labels for usage in JS code.
Table of Contents
Methods
- initializeArguments() : mixed
- Initialize arguments.
- renderStatic() : mixed
- getPageRenderer() : PageRenderer
Methods
initializeArguments()
Initialize arguments.
public
initializeArguments() : mixed
Tags
renderStatic()
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : mixed
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface
getPageRenderer()
protected
static getPageRenderer() : PageRenderer