ahmadpriatama/yii2-bootstrap-tags-input

Bootstrap tags input for Yii2 framework

1.0.1 2018-03-12 11:29 UTC

This package is not auto-updated.

Last update: 2024-12-11 10:44:31 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!