$controlRenderer
$controlRenderer : \Dewdrop\Fields\Helper\EditControl\Control
The renderer that will be used to draw the control itself.
This helper manages the rendering of edit controls for fields. It composes a helper for the control itself and a helper for its label. These helpers have access to a View object, so they can use view helpers for their control rendering.
You can customize the rendering of a control for a field by writing a custom callback like this:
$helper->getControlRenderer()->assign( $field, function ($helper, $view, $fieldPosition) use ($field) { return $view->inputText($field); } );
$controlRenderer : \Dewdrop\Fields\Helper\EditControl\Control
The renderer that will be used to draw the control itself.
$labelRenderer : \Dewdrop\Fields\Helper\EditControl\Label
The renderer that will be used to draw the label itself.
$view : \Dewdrop\View\View
The View into which the control will be rendered.
__construct(\Dewdrop\View\View $view)
Provide the View into which the HTML will be rendered and create the Control and Label renderers.
\Dewdrop\View\View | $view |
getControlRenderer() : \Dewdrop\Fields\Helper\EditControl\Control
Get the renderer used to draw the actual control.
getLabelRenderer() : \Dewdrop\Fields\Helper\EditControl\Label
Get the renderer used to draw the label.