public registerControl ( string $code, string $name, string $description, string | integer $controlGroup, string $icon, array $properties, string $designTimeProviderClass ) |
$code |
string |
Specifies the control code, for example "codeeditor". |
$name |
string |
Specifies the control name, for example "Code editor". |
$description |
string |
Specifies the control descritpion, can be empty. |
$controlGroup |
string | integer |
Specifies the control group.
Control groups are used to create tabs in the Control Palette in Form Builder.
The group could one of the ControlLibrary::GROUP_ constants or a string. |
$icon |
string |
Specifies the control icon for the Control Palette. |
$properties |
array |
Specifies the control properties.
The property definitions should be compatible with Inspector properties, similarly
to the Component properties: http://octobercms.com/docs/plugin/components#component-properties
Use the getStandardProperties() of the ControlLibrary to get the standard control properties. |
$designTimeProviderClass |
string |
Specifies the control design-time provider class name.
The class should extend RainLab\Builder\Classes\ControlDesignTimeProviderBase. If the class is not provided,
the default control design and design settings will be used. |