Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebake committed May 15, 2014
1 parent f125dd1 commit 7564c32
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
yii2-bootstrap-select
=====================

A yii2 wrapper package for the custom select for @twitter bootstrap using button dropdown http://silviomoreto.github.io/bootstrap-select/
A yii2 wrapper package for the custom select for @twitter bootstrap using button dropdown http://silviomoreto.github.io/bootstrap-select/

### Install via Composer

Expand All @@ -10,26 +10,20 @@ at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install the package using the following command:

~~~
php composer.phar require --prefer-dist cakebake/yii2-bootstrap-select "dev-master"
~~~
php composer.phar require --prefer-dist cakebake/yii2-bootstrap-select "*"

or add

~~~
"cakebake/yii2-bootstrap-select": "dev-master"
~~~
"cakebake/yii2-bootstrap-select": "*"

to the require section of your ```composer.json``` file and run ```php composer.phar update```.

### Usage

Add this in your view (If you like it global use "views/layouts/main.php"):

```php
use cakebake\bootstrap\select\BootstrapSelectAsset;
BootstrapSelectAsset::register($this);
```
use cakebake\bootstrap\select\BootstrapSelectAsset;
BootstrapSelectAsset::register($this);

Create your `<select>` with the `.selectpicker` class.

Expand All @@ -38,7 +32,7 @@ Create your `<select>` with the `.selectpicker` class.
<option>Ketchup</option>
<option>Barbecue</option>
</select>

Enable Bootstrap-Select via JavaScript:

$('.selectpicker').selectpicker();
Expand Down

0 comments on commit 7564c32

Please sign in to comment.