2017 © Pedro Peláez
 

yii2-extension bootstrap-select

Yii2 Bootstrap Select Asset.

image

scorpsan/bootstrap-select

Yii2 Bootstrap Select Asset.

  • Wednesday, July 4, 2018
  • by scorpsan
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

bootstrap-select

Позволяет использовать стилизованные выпадающие списки. Плагин мультиязычный, поэтому установите язык в своем приложении., (*1)

Installation

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

You can set the console, (*3)

$ composer require "scorpsan/bootstrap-select"

or add, (*4)

"scorpsan/bootstrap-select": "*"

in require section in composer.json file., (*5)

Using

Once the extension is installed, simply use it in your code by :, (*6)

Add following code to your configuration file of application:, (*7)

field($model, 'id')->dropDownList($items, [
    'class'  => 'form-control selectpicker',
    'data' => [
        'style' => 'btn-success',
        'live-search' => false,
        'size' => 7,
        'title' => 'Choose one...'
    ]]);
echo $form->field($model, 'id')->dropDownList($items, [
    'class'  => 'form-control selectpicker',
    'data' => [
        'style' => 'btn-primary',
        'live-search' => true,
        'size' => 7,
        'title' => 'Choose one...',
    ],
]);
echo $form->field($model, 'id')->dropDownList($items, [
    'class'  => 'form-control selectpicker',
    'multiple' => true,
    'data' => [
        'style' => 'btn-warning',
        'live-search' => false,
        'size' => 7,
    ],
]);

echo Html::dropDownList('item', null, $items, [
    'class'  => 'form-control selectpicker',
    'data' => [
        'style' => 'btn-info',
        'live-search' => false,
        'size' => 7,
        'title' => 'Choose one...',
    ]
]);
echo Html::dropDownList('item', null, $items, [
    'class'  => 'form-control selectpicker',
    'data' => [
        'style' => 'btn-default',
        'live-search' => true,
        'size' => 7,
        'title' => 'Choose one...',
    ]
]);

...
?>

The Versions

04/07 2018

dev-master

9999999-dev

Yii2 Bootstrap Select Asset.

  Sources   Download

BSD-3-Clause

The Requires

 

by Dzmitry Saniuk

extension yii2 bootstrap widget select bootstrap-select

03/07 2018

1.0.0

1.0.0.0

Yii2 Bootstrap Select Asset.

  Sources   Download

BSD-3-Clause

The Requires

 

by Dzmitry Saniuk

extension yii2 bootstrap widget select bootstrap-select