xinyeweb/yii2-tagsinputtypeahead

Bootstrap Tags Input Typeahead For Yii2

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2017-09-08 13:00 UTC

This package is auto-updated.

Last update: 2024-04-16 19:12:57 UTC


README

Bootstrap Tags Input Typeahead For Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist xinyeweb/yii2-tagsinputtypeahead "*"

or add

"xinyeweb/yii2-tagsinputtypeahead": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

 <?= $form->field($model, 'tags')->widget(\xinyeweb\tagsinputtypeahead\TagsInputTypeahead::className(),[
            'data' => \yii\helpers\ArrayHelper::getColumn(\app\models\Tag::find()->asArray()->all(),'title')
    ]) ?>

tagsinput https://github.com/xinyeweb/yii2-tagsinput