-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
var plateFilter = new Jets({
callSearchManually: true,
contentTag: '.plates',
hideBy: 'opacity: 0; height: 0; width: 0; padding: 0; margin: 0; display: none;',
manualContentHandling: function(filterTag) {
// console.log(tag.querySelector('.plate-title').textContent);
console.log('filtering by attribute...');
console.log(filterTag.getAttribute('data-categories'));
return filterTag.getAttribute('data-categories');
}
});
$('.plateGallery-filter label').on('click', function() {
console.log('filtering...');
var FILTER_INPUT = $(this).find('input');
if ( FILTER_INPUT.prop('checked') ) {
var FILTER_CATEGORY = FILTER_INPUT.attr('data-category');
console.log('filtering for: ' + FILTER_CATEGORY);
plateFilter.search(FILTER_CATEGORY);
} else {
plateFilter.search('');
}
});
the "console.log('filtering by attribute...');" doesnt run in the manualContentHandling method.
I couldnt find any documentation on using both, only separately.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels