Skip to content
New issue

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

How to invoke refreshIso() #5

Open
dv336699 opened this issue Nov 30, 2013 · 2 comments
Open

How to invoke refreshIso() #5

dv336699 opened this issue Nov 30, 2013 · 2 comments

Comments

@dv336699
Copy link

How can I call .refreshIso() from outside isotope?
Sometimes I need to increase or decrease the width, but I need to refresh the grid, this is easy using isotope with jQuery, but I'm not sure how to do it using the directives.

Thank you

btw, I notice the following and maybe I can set a external event to trigger the refresh?

return $scope.$on(config.refreshEvent, function() {
      return $scope.refreshIso();
});
@joaogarin
Copy link

Hello,

Did you find a way to do this?

@joaogarin
Copy link

Hello, using $rootscope you can call

$rootScope.$broadcast('iso-init', {name:null, params:null}); This will redraw the isotope grid on you page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants