Registry / web-framework / kartik-v-yii2-widget-select2

kartik-v-yii2-widget-select2

JSON →
library2.2.5phppackagistunverified

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).

composer require kartik-v/yii2-widget-select2
INSTALL
IMPORT
SIG · KARTIK-V-YII2-WIDG
K
kartik-v-yii2-widget-select2
web-frameworkphpv2.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Select2
use kartik\select2\Select2;

Render a Select2 dropdown with placeholder.

use kartik\select2\Select2; echo Select2::widget([ 'name' => 'country', 'data' => ['USA', 'Canada', 'Mexico'], 'options' => ['placeholder' => 'Select a country...'], ]);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
kartik-v-yii2-widget-select2 — pip install kartik-v-yii2-widget-select2 · libregistry