React-sortable-hoc: no example code for the sortable-table-rows example?

Created on 8 Nov 2017  路  7Comments  路  Source: clauderic/react-sortable-hoc

Hi, I'm looking through the examples but can't find the code associated with this example: http://clauderic.github.io/react-sortable-hoc/#/react-virtualized/sortable-table-rows
Can you please point me in the right direction?

Most helpful comment

Okay, I finally found a working example in their codebase:
https://github.com/bvaughn/react-virtualized/blob/master/docs/Table.md#rowrenderer

Could you please add a source to that example nonetheless so the next person has a better time finding this? :)

All 7 comments

Okay, I finally found a working example in their codebase:
https://github.com/bvaughn/react-virtualized/blob/master/docs/Table.md#rowrenderer

Could you please add a source to that example nonetheless so the next person has a better time finding this? :)

Yeah especially since the react-virtualized Table example gives an error when you run it (I get sortBy undefined. Probably because context is undefined, probably because I can't figure out how to add items). So there's no way to start from their table and learn to integrate sortable. I'm trying to figure out how to get this working but having very little luck. I'm trying to expand outward from react-virtualized's minimal example linked above but that's a little TOO minimal.

Please add row sorting code to examples.

Yes, Please give us example code for sortable rows instead of cols

@chhornponleu : That's for columns, not for rows.

@clauderic Can you please add some example for sortable table rows? Like the one you have on the demos page.

Did anyone find a more complete source example of the row reordering?

For anyone looking for a sortable-table-row example, I have made this.

I still couldn't figure out the auto scrolling part, so if anyone knows how to achieve it please fork this example and implement it. Thanks
This can be achieved like this

EDIT: The example is already here in storybook.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ashishtechuz picture ashishtechuz  路  4Comments

sammiwei911 picture sammiwei911  路  3Comments

curtd59 picture curtd59  路  3Comments

sami616 picture sami616  路  4Comments

ricokahler picture ricokahler  路  3Comments