PHPackages                             caio-brendo/yii2-dynamicgridform - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. caio-brendo/yii2-dynamicgridform

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

caio-brendo/yii2-dynamicgridform
================================

Dynamic Grid Form is a widget for the yii2 structure to add values to a grid. It is very useful for working with one-to-many data.

v1.8.1(1mo ago)61.5k5[5 issues](https://github.com/caio-brendo/yii2-dynamicgridform/issues)BSD-3-ClauseJavaScript

Since Feb 11Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/caio-brendo/yii2-dynamicgridform)[ Packagist](https://packagist.org/packages/caio-brendo/yii2-dynamicgridform)[ RSS](/packages/caio-brendo-yii2-dynamicgridform/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (4)Versions (34)Used By (0)

Dynamic Grid Form
=================

[](#dynamic-grid-form)

Dynamic Grid Form is a widget for the yii2 structure to add values to a grid. It is very useful for working with one-to-many data.

[![Latest Stable Version](https://camo.githubusercontent.com/a1f38b6bebe7ed444592ff9c4d2b0823b0521b611d5dc38c966c3b3126117711/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361696f2d6272656e646f2f796969322d64796e616d696367726964666f726d)](https://packagist.org/packages/caio-brendo/yii2-dynamicgridform)

[![Total Downloads](https://camo.githubusercontent.com/f6f3b300f8bfa6e85dcf7296dfc6d261f81b2388cfc94697b3559a0bafe07519/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6361696f2d6272656e646f2f796969322d64796e616d696367726964666f726d3f636f6c6f723d677265656e)](https://packagist.org/packages/caio-brendo/yii2-dynamicgridform)

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
  src/             contains source code of widget
  src/assets       contains assets definition
  src/views        contains view files

```

REQUIREMENTS
------------

[](#requirements)

The minimum requirement by this project template that your Web server supports PHP 5.6.0.

INSTALLATION
------------

[](#installation)

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install this widget using the following command:

```
composer require caio-brendo/yii2-dynamicgridform

```

Release Changes
---------------

[](#release-changes)

> NOTE: Refer the [CHANGE LOG](https://github.com/caio-brendo/yii2-dynamicgridform/blob/master/CHANGE.md) for details on changes to various releases.

Bugs fixed with release v1.8.1:

- bug: improved row-edit element targeting

PREVIEW
-------

[](#preview)

[![Alt Text](https://user-images.githubusercontent.com/54366167/107451588-5b529480-6b26-11eb-9b51-c2c043b41c54.gif)](https://user-images.githubusercontent.com/54366167/107451588-5b529480-6b26-11eb-9b51-c2c043b41c54.gif)

USAGE
-----

[](#usage)

### The view

[](#the-view)

You must have inputs to your values will be appended in the grid and references in the DynamicGridForm through the input id. Replace the "multipleModels" by your array of objects that contains the values and "modelClass" by a string that refence your model. Each column corresponds to an entry and must contain the attribute in the model that this column references. The following code renders the DynamicGridForm used in preview.

```
