Giter Club home page Giter Club logo

bootstrap-list-filter's Introduction

Bootstrap List Filter

Search widget to filter Bootstrap lists

Compatible with Bootstrap 3!

Author: Stefano Cudini

labs.easyblog.it

Features:

  • complete mobile responsive
  • dynamic list generation
  • support preloaded list
  • custom html or node html item
  • custom data format
  • prevent parallel requests
  • filter by sub elements
  • search text in case sensitive
  • search text in initial position or full

Demo online:

#Source

Image

#Usage

<form role="form">
	<div class="form-group">
		<input id="searchinput" class="form-control" type="search" placeholder="Search..." />
	</div>
	<div id="searchlist" class="list-group">
		<a class="list-group-item" href="aquamarine.html"><span>aquamarine</span></a>
		<a class="list-group-item" href="blue.html"><span>blue</span></a>
		<a class="list-group-item" href="cyan.html"><span>cyan</span></a>
		...
	</div>
</form>
<script>
	$('#searchlist').btsListFilter('#searchinput', {itemChild: 'span'});
</script>

#Options

  • delay millisecond before apply filter
  • minLength min string lentgh searched
  • initial search only initial text (default: true)
  • eventKey event digit (default: 'keyup')
  • resetOnBlur auto reset selection
  • sourceData function generate data source(receive: text, callback)
  • sourceTmpl html template contains {title} placeholder
  • sourceNode function builder DOM html fragment (default: sourceTmpl)
  • emptyNode function builder for empty result
  • itemEl item selector (default: .list-group-item),
  • itemChild sub item selector (default: .list-group-item),
  • itemFilter function for filter results(receive: text, item)

bootstrap-list-filter's People

Contributors

stefanocudini avatar aegyed91 avatar jerone avatar jfgodoy avatar danielesalvatore avatar

Watchers

James Cloos avatar Dumindu Madushanka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.