Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Yii2 widget for handle multiple inputs for an attribute of model

License

NotificationsYou must be signed in to change notification settings

unclead/yii2-multiple-input

Repository files navigation

Yii2 widget for handle multiple inputs for an attribute of model and tabular input for batch of models.

Latest Stable VersionTotal DownloadsDaily DownloadsLatest Unstable VersionLicense

Latest release

The latest stable version of the extension is v2.27.0 Follow theinstruction for upgrading from previous versions

Installation

The preferred way to install this extension is throughcomposer.

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 yourcomposer.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 yii2-multiple-input widget like in the following code

useunclead\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 documentationhere

License

yii2-multiple-input is released under the BSD 3-Clause License. See the bundledLICENSE.md for details.

About

Yii2 widget for handle multiple inputs for an attribute of model

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors23


[8]ページ先頭

©2009-2025 Movatter.jp