sort-and-filter
v1.0.0
Published
Search and sort function context.
Downloads
12
Readme
sortAndFilter
A library to modify local context of a vuejs table component. Please read the test.js file for the appropriate context needed.
Features
- string path selection sorting (e.g. "child.id")
- filter types: enumerated, number, search, and custom filters
- sorting resets when clicking column 3x
Sorting Usage
// standard
const sortKey = "id";
sortAndFilter(sortKey);
// nested sort key
const sortKey = "child.id";
sortAndFilter(sortKey);
// only apply filters from context (see tests)
sortAndFilter();Testing
npm test