Backend\Traits\WidgetMaker
Overview
WidgetMaker Trait
Adds widget based methods to a controller class, or a class that
contains a $controller property referencing a controller.
Public Methods
public getWidget()
public getWidget($name): void
public makeFormWidget()
public makeFormWidget(
string $class,
mixed $fieldConfig = [],
array $widgetConfig = []
): Backend\Classes\FormWidgetBase
makeFormWidget object with the supplied form field and widget configuration. The fieldConfig is a field name, an array of config or a FormField object.
public makeWidget()
public makeWidget(
string $class,
array $widgetConfig = []
): Backend\Classes\WidgetBase
makeWidget object with the supplied configuration file.