/yii2-widgets2-addons

Adds some helpful features to dmstr/yii2-widgets2-module

Primary LanguagePHP

Yii2 Widgets 2 Addons

This extension adds some useful functionality to the Yii2 Widgets 2 module.

Installation

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.

Configuration

Add the following to your config/web.php:

use eluhr\widgets2\addons\Module;
[
    'modules' => [
        'widgets-addons' => [
            'class' => Module::class
        ]
    ]
]

Usage

Add the Widget to your view:

use eluhr\widgets2\addons\widgets\CellLiveEditor;

echo CellLiveEditor::widget();