2017 © Pedro Peláez
 

yii2-extension yii2-selectize-widget

The selectize.js widget for the Yii framework

image

2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  • Monday, February 12, 2018
  • by tonydspaniard
  • Repository
  • 13 Watchers
  • 70 Stars
  • 114,106 Installations
  • PHP
  • 35 Dependents
  • 0 Suggesters
  • 31 Forks
  • 7 Open issues
  • 10 Versions
  • 13 % Grown

The README.md

Selectize JS Widget for Yii2

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Selectize is an extensible jQuery-based custom <select> UI control. It's useful for tagging, contact lists, country selectors, and so on. It clocks in at around ~7kb (gzipped). The goal is to provide a solid & usable experience with a clean and powerful API., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ composer require 2amigos/yii2-selectize-widget:~1.0

or add, (*5)

"2amigos/yii2-selectize-widget": "~1.0"

to the require section of your composer.json file., (*6)

Usage

Selectize has lots of configuration options. For further information, please check the Selectize plugin website., (*7)

Text input widget

To use text input widget add the following to the view, (*8)

use dosamigos\selectize\SelectizeTextInput;

echo SelectizeTextInput::widget([
    'name' => 'tags',
    'value' => 'love, this, game',
    'clientOptions' => [
        // ...
    ],
]);

To use dropdown list widget add the following to the view, (*9)

use dosamigos\selectize\SelectizeDropDownList;

echo SelectizeDropDownList::widget([
    'name' => 'tags',
    'items' => ['love', 'this', 'game'],
    'clientOptions' => [
        // ...
    ],
]);

Configuration

SelectizeDropDownList extends from InputWidget, but have additional properties that can be configured., (*10)

Property Type Default Description
loadUrl string|array null Optional. This parameter will be passed to Url::to. If set, selectize plugin will be configured to send ajax requests to the defined url to retrieve options. Url must return a valid JSON response.
queryParam string 'query' The name of the request parameter to use on ajax requests
clientOptions array null Configuration of selectize plugin. This configuration is individual for each selectize instance.

Testing

$ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details., (*11)

Credits

License

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


web development has never been so fun
www.2amigos.us

The Versions

12/02 2018

dev-master

9999999-dev https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexander Kochetov

yii2 2amigos yii yii 2 widget selectize

20/09 2017

1.1.0

1.1.0.0 https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 2amigos yii yii 2 widget selectize

04/08 2017

1.0.4

1.0.4.0 https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 2amigos yii yii 2 widget selectize

11/06 2017

1.0.3

1.0.3.0 https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 2amigos yii yii 2 widget selectize

10/09 2016

1.0.2

1.0.2.0 https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexander Kochetov

yii2 2amigos yii yii 2 widget selectize

20/03 2015

1.0.1

1.0.1.0 https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexander Kochetov

yii2 2amigos yii yii 2 widget selectize

19/03 2015

1.0.0

1.0.0.0 https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexander Kochetov

yii2 2amigos yii yii 2 widget selectize

19/03 2015

dev-develop

dev-develop https://github.com/2amigos/yii2-selectize-widget

The selectize.js widget for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexander Kochetov

yii2 selectize

28/06 2014

0.1.1

0.1.1.0 https://github.com/2amigos/yii2-selectize-widget

Selectize.js widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Kochetov

extension yii widget selectize

03/04 2014

0.1.0

0.1.0.0 https://github.com/2amigos/yii2-selectize-widget

Selectize.js widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii widget selectize