承接 zidivo/multiple-input 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Single column example

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固