Closed
Description
I want to change plugin api. The current version creates too many restrictions and is not intuitive in many ways.
My plan is to something like this:
<Grid cols={10} rows={10}>
<GridItem x={0} y={0}>Content<GridItem />
<GridItem x={1} y={1}>Content<GridItem />
<GridItem>{ /* somehow calc insert position */}<GridItem />
</Grid>
This will allow users to control the creation of the grid themselves. This approach opens up many possibilities for customization, for example, custom logic for moving a single cell and much more.
Also, this approach will allow you to use slots for modifications (#21).
<Grid cols={10} rows={10}>
<GridItem x={0} y={0}>
<div slot="dragHandle">Drag Me</div>
<p>Content</p>
<GridItem />
</Grid>
I will probably start working on it in 2 weeks. Stay tuned 💖