Skip to content

Repository files navigation

Purpose

Pure javascript plugin with non intrusive data in <table> in order to filter and sort

Requirements

None !

Features

  • Add filter <input> in header
  • Add sort <img> in header
  • No inject data in <table> to work, only the id table
  • No jQuery requirement

Installation

<scripttype="text/javascript" src="smartable.js"></script>

Usage

varsortFilterTable=newsmartab({tabId : '#table',linkUpSort : 'up-sort.png',//defaultlinkDownSort : 'down-sort.png',//defaultlinkNoSort : 'img/sort.png',//defaultwidthFilter : 100,//defaultunsortCols : [1],unfilterCols : [1]});sortFilterTable.addHeader();

Options

  • tabId : table identifier
  • linkUpSort : up sort image
  • linkDownSort : down sort image
  • linkNoSort : general sort image
  • widthFilter : width of <input> filter in px
  • unsortCols : list of column number don't sortable
  • unfilterCols : list of column number don't filterable

Browser support

ChromeFirefoxIEOperaSafari
?Latest ✔???

About

Pure javascript plugin with non intrusive data in <table> in order to filter and sort

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages