PHPackages                             rsr/yii2-button-dropdown-sorter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rsr/yii2-button-dropdown-sorter

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

rsr/yii2-button-dropdown-sorter
===============================

Bootstrap ButtonDropdown to use as sorter in yii2

1.0.5(11y ago)914.3k↓66.7%2MITPHP

Since Apr 6Pushed 6y ago4 watchersCompare

[ Source](https://github.com/RezaSR/yii2-ButtonDropdownSorter)[ Packagist](https://packagist.org/packages/rsr/yii2-button-dropdown-sorter)[ RSS](/packages/rsr-yii2-button-dropdown-sorter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (6)Used By (0)

ButtonDropdown Sorter Extension for Yii 2
=========================================

[](#buttondropdown-sorter-extension-for-yii-2)

Bootstrap ButtonDropdown to use as sorter in yii2 widgets

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require rsr/yii2-button-dropdown-sorter

```

or add

```
"rsr/yii2-button-dropdown-sorter": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

In widgets that have the sorter, like ListView, set the "class" attribute to "rsr\\yii2\\ButtonDropdownSorter". There is an optional "label" attribute which defines the label of the button which defaults to "Sort". Be sure the {sorter} is present in widget's template.

Example:

```
