MCPcopy
hub / github.com/adobe/react-spectrum / getDragModality

Function getDragModality

packages/react-aria/src/dnd/utils.ts:93–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93export function getDragModality(): string {
94 return mapModality(getInteractionModality());
95}
96
97export function writeToDataTransfer(dataTransfer: DataTransfer, items: DragItem[]): void {
98 // The data transfer API doesn't support more than one item of a given type at once.

Callers 2

beginDraggingFunction · 0.90
setupMethod · 0.90

Calls 2

getInteractionModalityFunction · 0.90
mapModalityFunction · 0.85

Tested by

no test coverage detected