You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the package only supports a fixed item height via the itemHeight prop. However, it would be highly beneficial to have support for different item heights, as many use cases require varying heights for grid items.
Proposed Solution:
Add support for variable item heights based on the individual item's data.
Allow each item to define its height dynamically (e.g., through a function or by providing a height property in the data for each item).
Ensure that the grid layout and drag-and-drop functionality work smoothly with different item heights.
Example Use Case:
<DraggableGridnumColumns={numColumns}renderItem={renderItem}data={data}onDragRelease={handleDragRelease}itemHeight={(item)=>item.height}// Dynamically set the height per item/>
The text was updated successfully, but these errors were encountered:
Description:
Currently, the package only supports a fixed item height via the
itemHeight
prop. However, it would be highly beneficial to have support for different item heights, as many use cases require varying heights for grid items.Proposed Solution:
Example Use Case:
The text was updated successfully, but these errors were encountered: