macy.js
macy.js copied to clipboard
How to change the number of columns depending on the number of items?
How to implement this?
- 4 columns for 3 or more items
- 2 columns for 2 items
- 1 column for 1 item
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?
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.