mixitup

Mixitup Javascript doesn't work in Internet Explorer

天大地大妈咪最大 提交于 2021-02-11 17:40:43
问题 The following code regarding Mixitup.js doesn't work in Internet Explorer but working fine in all other browsers. Could anyone help with this or could adjust the code for working in Internet Explorer? <script src="https://cdnjs.cloudflare.com/ajax/libs/mixitup/3.3.0/mixitup.min.js"> </script> <script> // 2) Reusable function to convert any string/text to css-friendly format var conv = function (str) { if (!str) { str = 'empty'; } return str.replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\

mixitup counting visible items on initial start after page loading

梦想与她 提交于 2021-01-29 03:26:50
问题 I am playing with mixitup to sort items. I can count items visible after I press a sort or filter buttons: $('#collection').on('mixEnd', function(e, state){ var countvisible = $("#container> tr[style='']").length; console.log('Sorted! ' + countvisible ); $('#current_count').text(countvisible); }); What I need: get a count of visible items on page load but the `on('mixEnd') does NOT ignite during the initialization of the mixitup on page load. How to do it? I can just use on PageLoad sit some

mixitup counting visible items on initial start after page loading

风格不统一 提交于 2021-01-29 03:18:34
问题 I am playing with mixitup to sort items. I can count items visible after I press a sort or filter buttons: $('#collection').on('mixEnd', function(e, state){ var countvisible = $("#container> tr[style='']").length; console.log('Sorted! ' + countvisible ); $('#current_count').text(countvisible); }); What I need: get a count of visible items on page load but the `on('mixEnd') does NOT ignite during the initialization of the mixitup on page load. How to do it? I can just use on PageLoad sit some

Integrating jQuery MixItUp in an angular.js project

喜欢而已 提交于 2019-12-24 13:54:55
问题 I'm trying to integrate jQuery MixItUp in an angular.js project. For this purpose i'm using the following custom directive. app.directive('mixitup', function($compile) { return { restrict: 'A', scope: { entities: '=' }, link: function(scope, element, attrs) { scope.$watchCollection('entities', function() { angular.element(element).mixItUp({ animation: { duration: 200 }, load: { sort: 'date:desc' }, debug: { enable: true, mode: 'verbose' } }); }, true); } }; }); The directive is used in HTML

Trigger Mixitup Filters OnLoad

你说的曾经没有我的故事 提交于 2019-12-13 00:50:53
问题 I'm using the Mixitup (https://mixitup.kunkalabs.com) utility on an ExpressionEngine site. The page is a listing of real estate properties, and the Mixitup filter is to narrow down those properties by region, features, etc. I want to be able to pass some values via url_segment to trigger the filters. So, for example, if a user clicks the listings from a map divided into various markets, they'll see only the properties in those markets first, as if they had selected it from the main page. For

MixitUp Not working with Bootstrap tab-pane

╄→尐↘猪︶ㄣ 提交于 2019-12-12 05:48:24
问题 $(function () { $('#container').mixItUp({ layout: { display: 'block' }, controls: { toggleFilterButtons: false, toggleLogic: 'or' } }); }); <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/> <script src="http://code.jquery.com/jquery-2.2.0.min.js"></script> <html> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <head> <script src="http://cdn.jsdelivr.net/jquery.mixitup/latest/jquery.mixitup.min.js">

jQuery MixItUp with AngularJS NgRoute

走远了吗. 提交于 2019-12-11 23:04:16
问题 I managed to integrate jQuery MixItUp into my AngularJs app. The items that should be displayed with MixItUp are loaded from custom services. Once all items are fetched, i trigger instantiation of jQuery MixItUp. I'm also using AngularJS NgRoute to implement different pages. When i first visit the page where jQuery MixItUp is used everything is fine. But when i then go to another page and back to the page with jQuery MixItUp, the filters and sorting aren't working anymore. I setup my routes