This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

angular-sort-button

0.5.0 • Public • Published

angular-sort-button

A simple and lightweight angular sort button component.

Usage

Install

npm install angular-sort-button

Include

angular.module('fancyStuffModule', [
    'apinnecke.sort-button'
]);

or if you're using browserify of something like that:

angular.module('fancyStuffModule', [
    require('angular-sort-button')
]);
<tr>
    <th><sort-button order="order" value="city">City</sort-button></th>
    <th><sort-button order="order" value="price">Price</sort-button></th>
    <th><sort-button order="order" value="status">Status</sort-button></th>
    <th><sort-button order="order" value="color">Color</sort-button></th>
</tr>

Parameter order has two properties: order (which contains the name from current ordering column) and reverse (which contains the boolean flag, weather it is reverse or not).

Readme

Keywords

none

Package Sidebar

Install

npm i angular-sort-button

Weekly Downloads

6

Version

0.5.0

License

none

Last publish

Collaborators

  • npm