pudinglabs/yii2-bootstrap-tags-input

Bootstrap tags input for Yii2 framework

Installs: 19 498

Dependents: 2

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 3

Open Issues: 2

Type:yii2-extension

v1.0 2016-08-24 02:18 UTC

This package is not auto-updated.

Last update: 2021-04-14 10:33:25 UTC


README

A simple widget tags input, renders a Bootstrap Tags Input.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require pudinglabs/yii2-bootstrap-tags-input "*"

or add

"pudinglabs/yii2-bootstrap-tags-input" : "*"

Usage

// with an ActiveForm
<?= 
    $form->field($model, 'your_attr')->widget(TagsinputWidget::classname(), [
            'options' => [],
            'clientOptions' => [],
            'clientEvents' => []
         ]);
?>

// as a widget
<?= 
    TagsinputWidget::widget([
        'model' => $model,
        'attribute' => 'your_attr',
        'options' => [],
        'clientOptions' => [],
        'clientEvents' => []
    ]);
?>

License

MIT

Free Software, Hell Yeah!