koco-order-by-updater-binding-handler

1.4.4 • Public • Published

koco-order-by-updater-binding-handler

Knockout binding handler for ordering lists.

Installation

bower install koco-order-by-updater-binding-handler

Usage with KOCO

This is a shared module that is used in many other modules. The convention is to require the handler in the knockout-binding-handlers.js file like so:

define([
  ...
  'bower_components/koco-order-by-updater-binding-handler/src/koco-order-by-updater-binding-handler'
  ...
],

It also includes the string-utilities library as a bower dependency. You will need to configure an alias in the require.configs.js file for the dependency if you haven't already:

paths: {
  ...
  'string-utilities': 'bower_components/koco-string-utilities/src/string-utilities',
  ...
}

koco-order-by-updater-binding-handler requires you to provide your own orderByFunction. To use it in a knockout template:

<th>
<a href="#" data-bind="orderByUpdater: pagingInfo, orderByUpdaterSettings: {argumentName:'AttributeName', orderByFunction: updateOrderBy, enabled:!sortable}">
Column Name
</a>
</th>
],

Readme

Keywords

Package Sidebar

Install

npm i koco-order-by-updater-binding-handler

Weekly Downloads

2

Version

1.4.4

License

MIT

Last publish

Collaborators

  • ozakaria-rc
  • rcguillaume
  • adruffin-rc
  • pubach
  • hugo.leclerc
  • laurentlbm-rc
  • clarose
  • vietsrc
  • matstlo
  • fcharest
  • rcmax