angular-masonry
angular-masonry copied to clipboard
It is possible to call masonry methods ?
Hello I would like to know if there is a way to call the http://masonry.desandro.com/methods.html from the directive ? for example i would like to have layoutComplete method.
thanks!
:+1:
No, there's no way of doing that at the moment. PR welcome.
Great idea
Great idea! When I use angular-masonry with infinite scroll, the whole grid updates which causes flickering.
Does anyone have solution until the directive supports methods?
any news on this matter?
@rbosneag Still taking PRs for this. :)
+1 - I often need to trigger a re-arrange after changing brick classes that control width.
@skattabrain
Unfortunately the only way I found to trigger reload is by broadcasting on the $rootScope, but it does work:
$rootScope.$broadcast('masonry.reload');
you can add other methods by modifying the masonry directive and add a listener, for example: scope.$on('masonry.destroy', ctrl.destroy);
Not ideal, but works.
Is there an update regarding calling methods? Would be very useful! This would for example solve problems/workarounds with calling the masonry rearange method.
+1 we all got the same problem
found the need for this, since I am doing drag drops. I don't see any pull requests addressing this.