zidivo/multiple-input
Composer 安装命令:
composer require zidivo/multiple-input
包简介
Widget for handle multiple inputs for an attribute of Yii2 framework model
关键字:
README 文档
README
Yii2 widget for handle multiple inputs for an attribute of model and tabular input for batch of models.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require zidivo/multiple-input "~1.1"
or add
"zidivo/multiple-input": "~1.1"
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 multiple-input widget like in the following code
use zidivo\widgets\MultipleInput;
...
<?php
echo $form->field($model, 'emails')->widget(MultipleInput::className(), [
'limit' => 6,
'allowEmptyList' => false,
'enableGuessTitle' => true,
'min' => 2, // should be at least 2 rows
'addButtonPosition' => MultipleInput::POS_HEADER // show add button in the header
])
->label(false);
?>
You can find more examples of usage here
Documentation
License
Released under the BSD 3-Clause License. See the bundled LICENSE.md for details.
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-10-31