How to use the dnd-core.DragDropManager function in dnd-core

To help you get started, we’ve selected a few dnd-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github neo4j / neo4j-browser / src / browser / components / FileImporter / dndGlobalContext.js View on Github external
const getDndContext = () => {
  if (defaultManager) return defaultManager
  defaultManager = new DragDropManager(HTML5Backend)

  return defaultManager
}
github mendersoftware / gui / node_modules / react-dnd / lib / DragDropContext.js View on Github external
var createChildContext = exports.createChildContext = function createChildContext(backend, context) {
	return {
		dragDropManager: new _dndCore.DragDropManager(backend, context)
	};
};
github react-dnd / react-dnd / dist-modules / configureDragDropContext.js View on Github external
Object.keys(backendFactories).forEach(function (key) {
    childContextTypes[key] = _React$Component$PropTypes.PropTypes.object.isRequired;
    childContext[key] = new _DragDropManager.DragDropManager(backendFactories[key]);
  });
github cormacrelf / angular-skyhook / packages / angular-dnd / src / internal / manager.ts View on Github external
  return zone.runOutsideAngular(() => new DragDropManager(unpackBackendForEs5Users(backend), context))
}
github jenshaase / vue-react-dnd / src / DragDropContextProvider.vue View on Github external
provide () {
    return {
      dragDropManager: new DragDropManager(this.getBackend(), {
        window: this.getWindow()
      })
    }
  },
  methods: {
github react-page / react-page / packages / core / src / helper / dnd / index.js View on Github external
export default (): DragDropManager => {
  if (defaultManager) {
    return defaultManager
  }

  defaultManager = new DragDropManager(HTML5Backend)
  return defaultManager
}
github jenshaase / vue-react-dnd / src / DragDropContext.js View on Github external
export default function DragDropContext (backendOrModule, context = {}) {
  let backend = backendOrModule
  if (typeof backend === 'object' && typeof backend.default === 'function') {
    backend = backend.default
  }

  return {
    provide: {
      dragDropManager: new DragDropManager(backend, context)
    }
  }
}
github apache / incubator-superset / superset / assets / src / dashboard / util / getDragDropManager.js View on Github external
export default function getDragDropManager() {
  if (!defaultManager) {
    defaultManager = new DragDropManager(HTML5Backend);
  }
  return defaultManager;
}

dnd-core

Drag and drop sans the GUI

MIT
Latest version published 2 years ago

Package Health Score

86 / 100
Full package analysis

Similar packages