Last Updated: February 25, 2016
·
554
· asimihsan

tablequeryjs - use textual queries to filter tables

https://github.com/asimihsan/tablequeryjs

  • Execute arbitrarily complex queries, using parenthesis and logical operators.
  • Confirm the validity of queries in real time; indicated as a coloured outline around the search field.
  • Execute queries on any column name.
  • Re-use old queries; the last five queries are persisted and available via a dropdown.

Usage

<link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet">

<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="http://cdn.jsdelivr.net/jquery.tablequeryjs/0.1.1/tablequery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {
    tablequery.set_table("#table");
    tablequery.set_table_search_text("#table_search_text");
  });
</script>