pudinglabs/yii2-bootstrap-tags-input

Bootstrap tags input for Yii2 framework

Installs: 36 342

Dependents: 2

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 3

Open Issues: 3

Type:yii2-extension

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

This package is not auto-updated.

Last update: 2024-12-19 04:07:05 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!