Skip to content

jaygoodfellow/dataFilter.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dataFilter.js

Filter and sort elements using data attributes

Examples

dataFilter.init({
     filterclass: 'filter',
     dataParent: 'dataParent',
     sortAttr: 'data-sort'
});

Documentation

dataFilter.init(options)

Options

  • filterClass the class used on buttons or links that are used to filter the data
  • dataParent the ID of the parent element which contains the data to filter
  • sortAttr the data attribute that is used to sort the items

About

Filter and sort elements using data attributes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.9%
  • HTML 33.1%