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

pkg:composer/pixium/yii2-widget-form-builder

1.0.8 2021-06-17 08:02 UTC

This package is auto-updated.

Last update: 2025-12-05 18:34:32 UTC


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,
        ]
    );