2 ms·
This is really nice. As someone who has worked with the competition libs masonry, packery, and gridster, I know why you built this and it looks great so far. Al
by mc_hammer 13y ago
This is really nice. As someone who has worked with the competition libs masonry, packery, and gridster, I know why you built this and it looks great so far. All have their oddities or missing features.
Can you sort items on this programatically? If so very cool, its one feature packery is missing.
On feature I (need) think is missing is the ability to freely place an item in the bottom-right side with gaps in between it and other items - for example in the bottom right corner of the parent container. I could really see this being requested in a dashboard type use.
- skidding 13y ago> Can you sort items on this programatically? Yes you can. The grid is generated left-to-right > top-to-bottom, based on a 1d index inside a list. So you can sort the unidimensional array of items however you want, and then regenerate 2d positions based on that. > On feature I (need) think is missing is the ability to freely place an item in the bottom-right side with gaps in between it and other items You can't right now without a few tweaks, but once we start accommodating for more options this will definitely be included. We have a certain force called "pull to left" that can be replaced with "pull to top" or just don't pull, let the items be where they are placed, etc. This was just our use-case, waiting for others to surface and see where this can go.