2017 © Pedro Peláez
 

yii2-extension yii2-model-selector

DB bounded item selector widget based on select2. It has server-side items search and paging

image

pavlm/yii2-model-selector

DB bounded item selector widget based on select2. It has server-side items search and paging

  • Monday, January 9, 2017
  • by pavlm
  • Repository
  • 1 Watchers
  • 2 Stars
  • 57 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-model-selector

Yii2 widget to replace native html select in case of a long option lists.
Based on select2 jquery plugin.
Bounded to ActiveRecord models.
Supports server side search and paging.
Contains select2-bootstrap.less (t0m/select2-bootstrap-css) for using with custom twitter bootstrap library.
Bundled with two prebuilt stylesheets for standard bootstrap and AdminLTE theme., (*1)

model-selector preview, (*2)

Installation

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

Either run, (*4)

php composer.phar require pavlm/yii2-model-selector:dev-master

or add, (*5)

"pavlm/yii2-model-selector": "dev-master"

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

Usage

Most simple case:, (*7)

echo ModelSelector::widget([
    'name' => 'field',
    'query' => Film::find(),
    'itemId' => 'film_id',
    'itemLabel' => 'title',
]);

The Versions

09/01 2017

dev-master

9999999-dev

DB bounded item selector widget based on select2. It has server-side items search and paging

  Sources   Download

The Requires

  • bower-asset/select2 ~3

 

by Avatar pavlm

09/01 2017

v0.1.1

0.1.1.0

DB bounded item selector widget based on select2. It has server-side items search and paging

  Sources   Download

The Requires

  • bower-asset/select2 ~3

 

by Avatar pavlm

18/06 2015

v0.1

0.1.0.0

DB bounded item selector widget based on select2. It has server-side items search and paging

  Sources   Download

The Requires

  • bower-asset/select2 ~3

 

by Avatar pavlm