2017 © Pedro Peláez
 

yii2-extension yii2-formbuilder

A drag and drop form builder with jQuery for Yii2

image

meysampg/yii2-formbuilder

A drag and drop form builder with jQuery for Yii2

  • Monday, April 16, 2018
  • by meysampg
  • Repository
  • 5 Watchers
  • 19 Stars
  • 1,011 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 1 Open issues
  • 14 Versions
  • 7 % Grown

The README.md

Yii2 Form Builder

🟥⚠️ THIS PACKAGE IS ABANDONED. PLEASE SELECT ANOTHER PACKAGE OR FORK THIS REPOSITORY AND INFORM ME ON p.g.meysam [at] Gmail [dot] com TO REFER TO YOUR PACKAGE IN PACKAGIST ⚠️🟥, (*1)

A drag and drop form builder with jQuery for Yii2 which built upon to jQuery FormBuilder plugin., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

composer.phar require meysampg/yii2-formbuilder "*"

or add, (*5)

"meysampg/yii2-formbuilder": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by:, (*7)

use meysampg\formbuilder\FormBuilder;

and use it as a widget:, (*8)

<?= FormBuilder::widget(); ?>

Configurations

There are some properties that let you to easily control over form builder., (*9)

Property Type Description Default Value
accessVariableName string JavaScript variable name for accessing to formbuilder contents in JS codes 'formBuilderJsVariable'
data array list of elements for rendering as default elements of form builder
dataType string indicates that input and output data must be XML or JSON 'xml'
elementType string HTML tag for form builder constructor 'div'
messages array list of label strings on a desired language
language string Desired language for showing form builder (See translation section)
options array list of plugin options, see FormBuilder Documentations
showActionButtons boolean indicates that control buttons be showed or not false

Examples

<?= FormBuilder::widget([
    'data' => [
        [
            "type" => "header",
            "subtype" => "h1",
            "label" => "Header",
            "class" => "header",
        ],
        [
            "type" => "button",
            "label" => "Button",
            "subtype" => "button",
            "class" => "button-input btn btn-warning",
            "name" => "button-1475845417456",
            "style" => "warning",
        ],
    ],
]); ?>

screen shot 2016-10-08 at 13 00 02, (*10)


<?= FormBuilder::widget([
    'dataType' => 'json' 
]); ?>

screen shot 2016-10-08 at 13 04 32, (*11)


<?= FormBuilder::widget([
    'messages' => [
        "autocomplete" => "Autocomplete 23",
    ],
]); ?>

screen shot 2016-10-08 at 13 18 55, (*12)


<?= FormBuilder::widget([
    'language' => 'fa-IR',
]); ?>

formbuilder-fa, (*13)

Translation

Simply copy en.php file in messages folder and rename it to your language (e.g. ar, fr, fa, fa-IR ...), translate strings, commit your changes and send a pull request., (*14)

The Versions

16/04 2018

dev-master

9999999-dev

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

16/04 2018

dev-analysis-8jk9M2

dev-analysis-8jk9M2

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

02/12 2017

v1.2.6

1.2.6.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

01/07 2017

v1.2.5

1.2.5.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

22/06 2017

v1.2.4

1.2.4.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

24/05 2017

v1.2.3

1.2.3.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

24/05 2017

v1.2.2

1.2.2.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

23/05 2017

v1.2.1

1.2.1.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

23/05 2017

v1.2

1.2.0.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

23/05 2017

v1.1.3

1.1.3.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

23/05 2017

v1.1.2

1.1.2.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

10/11 2016

v1.1.1

1.1.1.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

07/11 2016

v1.1

1.1.0.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder

08/10 2016

v1.0

1.0.0.0

A drag and drop form builder with jQuery for Yii2

  Sources   Download

MIT

The Requires

 

by Meysam P.G.

extension yii2 form js form-builder