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

Function onReorder

examples/s2-parcel-example/src/App.js:112–118  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

moveBeforeMethod · 0.65
moveAfterMethod · 0.65

Tested by

no test coverage detected