New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-multifiltersjs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-multifiltersjs

Select multiple input of the same group to perform a filter that is made via js

  • 0.0.11
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

MultiFilters JS

Select multiple input of the same group to perform a filter that is made via js

Bower.io

This package is available on Bower.

Install Bower.io
$ npm install -g bower
Installing
# install a package and add it to bower.json
$ bower install generator-multifiltersjs --save

Bower depends on Node.js and npm. Also make sure that git is installed as some bower packages require it to be fetched and installed.

Usage

DEMO

Call the plugin on any input you want to track and tell it what to look for with a data-col attribute:

$(document).ready(function() {
  $('#formGroupFilters .form-control').multifiltersJS({
    'target' : $('#table-dados')
  });
})

As long as the data-col attribute matches up with something in the , it will filter the content in those columns in the table:


data-col='Filter1'

data-col='Filter2'

data-col='Filter3'

<div class="form-group" id="formGroupFilters">
  <div class="control-group">
    <label for="txt-filter1" class="control-label">Filter1</label>
    <div class="controls">
      <input type="text" id="txt-filter1" name="txt-filter1" class="form-control" data-col='Filter1'>
    </div>
  </div>

  <div class="control-group">
    <label for="filter2" class="control-label">Filter2</label>
    <div class="controls">
      <input type="text" id="txt-filter2" name="txt-filter2" class="form-control" data-col='Filter2'>
    </div>
  </div>

  <div class="control-group">
    <label for="txt-filter3" class="control-label">Filter3</label>
    <div class="controls">
      <input type="text" id="txt-filter3" name="txt-filter3" class="form-control" data-col='Filter3'>
    </div>
  </div>
</div>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Test your changes to the best of your ability.
  4. Update the documentation to reflect your changes if they add or changes current functionality.
  5. Commit your changes (git commit -am 'Added some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Creator

Created by Ivan Augusto Hoinacki

License

MIT License

FAQs

Package last updated on 17 Dec 2014

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