We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap buttons perform filters as expected.
<button opt-kind ok-key="filter" ng-attr-ok-sel="{{ priceFiltered ? '' : '.hasPrice' }}" class='btn btn-default' ng-model="priceFiltered" ng-click="priceFiltered = !priceFiltered">Must have price</button>
I cannot get checkbox or option elements to work for the life of me.
<input type="checkbox" ng-model="priceFiltered" opt-kind ng-attr-ok-sel="{{ priceFiltered ? '' : '.hasPrice' }}{{ imageFiltered ? '.hasImage' : '' }}" ok-key="filter">
Can you provide an example of how to trigger filter via checkbox or option element. Thanks!
The text was updated successfully, but these errors were encountered:
I'm having this issue too, can't find a solution yet.
Sorry, something went wrong.
Hi, I think this is the solution for filtering with checkboxes $scope.filtersChange = function(){ var checkboxes = document.querySelectorAll('.filters input'); var container = $('#iso-cont'); var filters = []; // get checked checkboxes values checkboxes = Array.prototype.slice.call(checkboxes); checkboxes.filter(function(key){ if(key.checked) return true; }).forEach(function(item){ filters.push('._' + item.value); }); filters = filters.join(', '); container.isotope({ filter: filters }); };
$scope.filtersChange = function(){ var checkboxes = document.querySelectorAll('.filters input'); var container = $('#iso-cont'); var filters = []; // get checked checkboxes values checkboxes = Array.prototype.slice.call(checkboxes); checkboxes.filter(function(key){ if(key.checked) return true; }).forEach(function(item){ filters.push('._' + item.value); }); filters = filters.join(', '); container.isotope({ filter: filters }); };
No branches or pull requests
Bootstrap buttons perform filters as expected.
<button opt-kind ok-key="filter" ng-attr-ok-sel="{{ priceFiltered ? '' : '.hasPrice' }}" class='btn btn-default' ng-model="priceFiltered" ng-click="priceFiltered = !priceFiltered">Must have price</button>
I cannot get checkbox or option elements to work for the life of me.
<input type="checkbox" ng-model="priceFiltered" opt-kind ng-attr-ok-sel="{{ priceFiltered ? '' : '.hasPrice' }}{{ imageFiltered ? '.hasImage' : '' }}" ok-key="filter">
Can you provide an example of how to trigger filter via checkbox or option element. Thanks!
The text was updated successfully, but these errors were encountered: