Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-list-filter

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-list-filter

Search widget to filter Bootstrap lists

  • 0.2.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
159
increased by183.93%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

FAQs

Package last updated on 20 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc