pixium / yii2-widget-form-builder
Form Builder to json
Package info
github.com/pixiumdigital/yii2-widget-form-builder
Type:yii2-extension
pkg:composer/pixium/yii2-widget-form-builder
1.0.8
2021-06-17 08:02 UTC
Requires
- php: >=5.6.0
- yiisoft/yii2: ~2.0.14
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Wrapper around the Pixium Form Builder (Google Form like)
Installation
The preferred way to install this extension is through composer
add
$ composer require pixium/yii2-widget-form-builder:dev-master
or add
"pixium/yii2-widget-form-builder": "dev-master",
to the require section of your composer.json file.
Usage
use pixium\widgets\FromBuilder; FormBuilder::widget([ 'div' => 'container', 'data' => data, //JSON content, can be empty 'mode' => 'run' //or 'build' 'singleSection' => false, 'debug' => false, ]);
or
use pixium\widgets\FromBuilder; $form->field($model, 'data')->widget( FormBuilder::class, [ 'div' => 'container', 'data' => data, //JSON content, can be empty 'mode' => 'run' //or 'build' 'singleSection' => false, 'debug' => false, ] );