Skip to content

Drupal module that adds search, sort and filters to lists

License

Notifications You must be signed in to change notification settings

subhojit777/listjs

Repository files navigation

Build Status

This module uses List.js library to add search to lists. List.js is a native JavaScript library, therefore jQuery is not required. List.js is a tiny, invisible and simple, yet powerful and incredibly fast vanilla JavaScript library that adds search and flexibility to plain HTML lists.

Features:

  • Provides a theme function which will create sortable lists.
  • Add fast search to Views lists.
  • ListJs facet widget, so that you can search among facet items.

Installation:

  • Download list.js v1.2 library.
  • Extract the library inside /libraries. Create /libraries directory if not present.
  • Make sure list.min.js is located inside /libraries/listjs/dist, i.e. path of list.min.js should be /libraries/listjs/dist/list.min.js.

Screenshots:

ListJs views style plugin ListJs facet widget

Documentation:

Tests

  • 7.x version uses Behat tests.
  • 8.x version uses Drupal PHPUnit JavaScript tests.