PHP code example of faryshta / yii2-jquery-tagsinput
1. Go to this page and download the library: Download faryshta/yii2-jquery-tagsinput 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/ */
faryshta / yii2-jquery-tagsinput example snippets
use faryshta\widgets\JqueryTagsInput;
// with ActiveForm
echo $form->field($model, 'attribute')->widget(JqueryTagsInput::className(), [
// extra configuration
]);
// without ActiveForm and with model.
echo JqueryTagsInput::widget([
'model' => $model,
'attribute' => 'attribute',
// extra configuration
]);