pixium / yii2-widget-form-builder
Form Builder to json
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.6.0
- yiisoft/yii2: ~2.0.14
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, ] );