PHP code example of asgalex / yii2-multiple-input-bs4
1. Go to this page and download the library: Download asgalex/yii2-multiple-input-bs4 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
asgalex / yii2-multiple-input-bs4 example snippets
use unclead\multipleinput\MultipleInput;
...
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);