This extension adds some useful functionality to the Yii2 Widgets 2 module.
The preferred way to install this extension is through composer.
Either run
composer require eluhr/yii2-widgets2-addons
or add
"eluhr/yii2-widgets2-addons": "*"
to the required section of your composer.json
file.
Add the following to your config/web.php
:
use eluhr\widgets2\addons\Module;
[
'modules' => [
'widgets-addons' => [
'class' => Module::class
]
]
]
Add the Widget to your view:
use eluhr\widgets2\addons\widgets\CellLiveEditor;
echo CellLiveEditor::widget();