unclead / yii2-multiple-input
Widget for handle multiple inputs for an attribute of Yii2 framework model
Installs: 1 222 238
Dependents: 27
Suggesters: 0
Security: 0
Stars: 392
Watchers: 34
Forks: 127
Open Issues: 25
Language:JavaScript
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.38
Requires (Dev)
- phpunit/phpunit: 5.7.*
- dev-master
- 3.0.x-dev
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.2
- 2.26.1
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.5
- 2.21.4
- 2.21.3
- 2.21.2
- 2.21.1
- 2.21.0
- 2.20.6
- 2.20.5
- 2.20.4
- 2.20.3
- 2.20.2
- 2.20.1
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.1
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.3
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.2
- 2.8.1
- 2.8.0
- 2.7.1
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.x-dev
- 2.0.1
- 2.0.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.19
- 1.2.18
- 1.2.17
- 1.2.16
- 1.2.15
- 1.2.14
- 1.2.13
- 1.2.12
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-fix_rendering_action_buttons
- dev-fix-sorting
- dev-handle_empty_form_name
- dev-rework_cloning
- dev-client-validation
- dev-custom_renderer
This package is auto-updated.
Last update: 2024-12-21 15:19:03 UTC
README
Yii2 widget for handle multiple inputs for an attribute of model and tabular input for batch of models.
Latest release
The latest stable version of the extension is v2.27.0 Follow the instruction for upgrading from previous versions
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require unclead/yii2-multiple-input "~2.0"
or add
"unclead/yii2-multiple-input": "~2.0"
to the require section of your composer.json
file.
Basic usage
For example you want to have an ability of entering several emails of user on profile page. In this case you can use yii2-multiple-input widget like in the following code
use unclead\multipleinput\MultipleInput; ... <?php echo $form->field($model, 'emails')->widget(MultipleInput::className(), [ 'max' => 6, 'min' => 2, // should be at least 2 rows 'allowEmptyList' => false, 'enableGuessTitle' => true, 'addButtonPosition' => MultipleInput::POS_HEADER, // show add button in the header ]) ->label(false); ?>
Documentation
You can find a full version of documentation here
License
yii2-multiple-input is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.