Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/interactive-pioneers/iptools-jquery-expandable-list

jQuery plugin to cut lists on page load and show more items on demand
https://github.com/interactive-pioneers/iptools-jquery-expandable-list

expandable jquery list

Last synced: 6 days ago
JSON representation

jQuery plugin to cut lists on page load and show more items on demand

Awesome Lists containing this project

README

        

# iptools-jquery-expandable-list [![Build Status](http://img.shields.io/travis/interactive-pioneers/iptools-jquery-expandable-list.svg)](https://travis-ci.org/interactive-pioneers/iptools-jquery-expandable-list)

jQuery expandable list plugin

## Features

Show only a defined number of list elements on page load and more on demand.

## Requirements

- jQuery 1.11.3 or greater

## Example

```html


  • Item 1

  • Item 2

  • Item 3

  • Item 4

  • Item 5

$(document).ready(function() {
$('.list').iptExpandableList({
visibleItems: 3
});
});

```

## Options

Name | Default | Type | Description
:-------------------|:---------------------------|:--------|:-----------
visibleItems | `5` | int | Number of initially visible items
showMoreButtonLabel | `Show more` | string | Label of show more button
showLessButtonLabel | `Show less` | string | Label of show less button
showMoreButtonClass | `button--show-more` | string | Class of show more button
showLessButtonClass | `button--show-less` | string | Class of show less button
initializedClass | `initialized` | string | Class added to element after initialization
animationDuration | `500` | int | Animation speed in miliseconds.

## Licence
Copyright © 2015-2017 Interactive Pioneers GmbH. Licenced under [GPL-3](LICENSE).