MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onReorder

Function onReorder

examples/s2-vite-project/src/App.tsx:111–117  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

109 return {'text/plain': item.name};
110 }),
111 onReorder(e) {
112 if (e.target.dropPosition === 'before') {
113 list.moveBefore(e.target.key, e.keys);
114 } else if (e.target.dropPosition === 'after') {
115 list.moveAfter(e.target.key, e.keys);
116 }
117 }
118 });
119 return (
120 <ListView

Callers

nothing calls this directly

Calls 2

moveBeforeMethod · 0.65
moveAfterMethod · 0.65

Tested by

no test coverage detected