macy.js icon indicating copy to clipboard operation
macy.js copied to clipboard

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

Open afuno opened this issue 5 years ago • 1 comments

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?

afuno avatar Oct 27 '20 11:10 afuno

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.

lzj666888 avatar May 02 '22 07:05 lzj666888