angular-masonry icon indicating copy to clipboard operation
angular-masonry copied to clipboard

It is possible to call masonry methods ?

Open idhard opened this issue 10 years ago • 11 comments

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!

idhard avatar Aug 09 '14 15:08 idhard

:+1:

Gnex77 avatar Nov 09 '14 14:11 Gnex77

No, there's no way of doing that at the moment. PR welcome.

passy avatar Nov 28 '14 23:11 passy

Great idea

colepacak avatar Dec 19 '14 15:12 colepacak

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?

stianlp avatar Jan 28 '15 14:01 stianlp

any news on this matter?

rbosneag avatar Jun 18 '15 11:06 rbosneag

@rbosneag Still taking PRs for this. :)

passy avatar Jun 18 '15 14:06 passy

+1 - I often need to trigger a re-arrange after changing brick classes that control width.

skattabrain avatar Aug 12 '15 01:08 skattabrain

@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.

bdahlinger avatar Aug 20 '15 18:08 bdahlinger

Is there an update regarding calling methods? Would be very useful! This would for example solve problems/workarounds with calling the masonry rearange method.

AndrinGautschi avatar Sep 10 '15 09:09 AndrinGautschi

+1 we all got the same problem

JohnnyTheTank avatar Nov 29 '15 23:11 JohnnyTheTank

found the need for this, since I am doing drag drops. I don't see any pull requests addressing this.

ConnectedReasoning avatar May 01 '16 15:05 ConnectedReasoning