Drupal module that adds search, sort and filters to lists
PHP HTML JavaScript Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
drupal_ti
js
modules
templates
tests
.gitignore
.travis.yml
API.md
LICENSE
README.md
composer.json
listjs.info.yml
listjs.libraries.yml
listjs.module
listjs.theme.inc

README.md

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.