Giter Site home page Giter Site logo

yii2-jquery-tagsinput's Introduction

Faryshta Yii2 jQuery Tags Input

Latest Stable Version Total Downloads Latest Unstable Version License

Yii2 widgets for jQuery Tags Input (tag list) jquery plugin

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist "faryshta/yii2-jquery-tagsinput:*"

or add

"faryshta/yii2-jquery-tagsinput": "*"

to the require section of your composer.json file.

Usage

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
]);

Documentation

This library doesn't define anything new, the widgets classes are very similar to the class \yii\bootstrap\Widget which can be used as documentation for the widget classes.

The JS options can be passed using the $clientOptions property and the events can be declared using the $clientEvents property. The documentation on all the options and events supported by tagsInput can be found here.

License

The BSD License (BSD). Please see License File for more information.

yii2-jquery-tagsinput's People

Contributors

faryshta avatar mihai-p avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

yii2-jquery-tagsinput's Issues

problem with autocomplete

Good morning, i am trying to use the autocomplete function with this code:
$form->field($model, 'tipo')->widget(JqueryTagsInput::className(),[ 'clientOptions' => [ 'defaultText' => 'aggiungi', 'width' => '100%', 'allowDuplicates' => false, 'autocomplete_url' => 'tipiSearch.php', ] ])

the php file return a json encoded like this ["Amministrativo","Commerciale","Tecnico"] but dosen't work.
thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.