React-sortable-hoc: Where is the source code for the grid?

Created on 22 Aug 2018  ·  8Comments  ·  Source: clauderic/react-sortable-hoc

http://clauderic.github.io/react-sortable-hoc/#/basic-configuration/grid?_k=t5xcdq

Where can I find the source code of this?

Most helpful comment

@hayk94
I was looking for the same thing, best I could find was.
https://codesandbox.io/s/vm917ww2z3

It doesn't allow for multiple props on the gridItem, anyone know how to add more additional props to this example? The documentation does have much on grids...

All 8 comments

@hayk94
I was looking for the same thing, best I could find was.
https://codesandbox.io/s/vm917ww2z3

It doesn't allow for multiple props on the gridItem, anyone know how to add more additional props to this example? The documentation does have much on grids...

@stevenanthonyrevo maybe you can pass the value as component and pass props to it?

@hayk94 Thanks for the help!

I also noticed the documentation doesn't have anything relating to persistent ordering of the grid.

For example, the user can drag the boxes around however the boxes are based on the mapped array order not persistent to db or localstorage. These draggable items don't stay around when user refreshes page. Any thoughts or references for dealing with this?

You can call your function which saves the state in onSortEnd method

I wish everybody answered my issue questions like this one... I guess he got the #420 wish... lucky bstrd
Thanks everybody

@ hayk94
我一直在寻找相同的东西,最好的发现是。
https://codesandbox.io/s/vm917ww2z3

它不允许在gridItem上使用多个道具,有人知道如何在此示例中添加更多其他道具吗?该文档确实在网格上有很多...

thanks,

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sammiwei911 picture sammiwei911  ·  3Comments

ccharliemagne picture ccharliemagne  ·  3Comments

arackaf picture arackaf  ·  3Comments

suhaotian picture suhaotian  ·  3Comments

sami616 picture sami616  ·  4Comments