bigbite / macy.js

http://macyjs.com/
MIT License
1.28k stars 156 forks source link

How to change the number of columns depending on the number of items? #79

Open afuno opened 3 years ago

afuno commented 3 years ago

How to implement this?

That is, if I add or delete items from the list, the number of columns should change.

As far as I understand now, the reInit() method does not solve this problem? Can you please tell me how can I implement this?

lzj666888 commented 2 years ago

In this condition, you can edit the source code. While reIniting, assign new options to the old options of macy instance. Just update the options is ok.