22 $action = $component->getAction();
24 $tpl->setCurrentBlock(
"with_action");
25 $tpl->setVariable(
"ACTION", $component->getAction());
26 $tpl->parseCurrentBlock();
29 if ($component->isHighlighted()) {
30 $tpl->touchBlock(
"highlighted");
33 $tpl->setVariable(
"LABEL", $this->
txt($component->getAriaLabel()));
37 $tpl->touchBlock($component->getType());
40 $tpl->setCurrentBlock(
"with_id");
42 $tpl->parseCurrentBlock();
46 foreach ($component->getCounters() as
$counter) {
47 if ($largest_counter < $counter->getNumber()) {
48 $largest_counter =
$counter->getNumber();
52 $tpl->setVariable(strtoupper(
$n), $default_renderer->render(
$counter));
53 $tpl->parseCurrentBlock();
56 if ($largest_counter) {
57 $tpl->setCurrentBlock(
"counter_spacer");
58 $tpl->setVariable(
"COUNTER_SPACER", $largest_counter);
59 $tpl->parseCurrentBlock();
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
if(!array_key_exists('StateId', $_REQUEST)) $id
txt($id)
Get a text from the language file.
getComponentInterfaceName()
Create styles array
The data for the language used.
render(Component\Component $component, RendererInterface $default_renderer)
getTemplate($name, $purge_unfilled_vars, $purge_unused_blocks)
Get template of component this renderer is made for.
Base class for all component renderers.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.