GithubHelp home page GithubHelp logo

sentecode / datatables-multiple-criteria-filter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mastercho/datatables-multiple-criteria-filter

0.0 1.0 0.0 97 KB

Multiple criteria filter for jQuery DataTables plug-in

License: MIT License

JavaScript 51.16% CSS 48.84%

datatables-multiple-criteria-filter's Introduction

Overview

jQuery DataTables plug-in employs 'multiple-criteria-multiple-column' filtering using DataTables API. In addition to conventional 'match all the criteria' logic, 'append to selection' operation is available.

How to use

Filter itself coded as a DataTables feature plug-in, so in order to use that, you must specify 'F' among your DataTable 'dom'/'sDom' options:

var dataTable = $('#mytable').DataTable({
		sDom: 'tF'
});

Search is implemented using external search plug-in, so DataTables smart search feature is not in effect.

Since the filtering is done client side, plug-in is not capable to filter DataTables operating in server-side processing mode (serverSide: true option).

To start using plug-in, you may simply refer to mFilter.js, mFilter.css within 'head' section:

<head>
	<script src="js/mFilter.js"></script>
	<link rel="stylesheet" type="text/css" href="css/mFilter.css">
</head>

To include mFilter remotely:

<script type="application/javascript" src="https://cdn.mfilter.tk/js/mfilter.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.mfilter.tk/css/mfilter.min.css">

Live demo is available at Codepen

Prerequisites

<script type="application/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="application/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">

datatables-multiple-criteria-filter's People

Contributors

ygorbunkov avatar

Watchers

 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.