Comments (1)
The icon is not explicitly defined by RTC, instead, the dataTransfer.dropEffect
attribute is set when the user starts dragging, and is set to "move": https://github.com/lukasbach/react-complex-tree/blob/main/packages/core/src/interactionMode/ClickItemToExpandInteractionManager.ts#L56
The cursor that is shown in this case depends on the browser I guess, the docs for the property are here: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect
You can probably overwrite this cursor yourself with CSS, or expand the interaction manager you are using (probably ClickToExpandInteractionManager) with a new default drop effect, see https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect on that. There, you can overwrite the "onDragStart" method with something like
onDragStart: e => {
e.dataTransfer.dropEffect = 'other-dropeffect';
actions.startDragging();
},
from react-complex-tree.
Related Issues (20)
- DROP not working when open a new folder. HOT 3
- Example for drag and drog with controlled tree? HOT 1
- Request for `context.stopRenamingItem(item.index)` as counter for existing startRenamingItem function HOT 2
- Cannot read properties of undefined (reading 'index') HOT 3
- tree update HOT 1
- Drag custom files to the tree HOT 2
- Text selection on title don't work HOT 3
- Missing `activeTreeId` in `TreeEnvironmentRef<T,C>` type HOT 1
- Set state on unmounted component HOT 8
- Tree is missing `multiselect` prop HOT 2
- I want to print node contents. HOT 1
- Unable to update tree data using custom Data Provider HOT 3
- Collision with react-dnd HOT 2
- Search whole tree HOT 5
- Animation when node is opened and closed HOT 3
- `renderItem` and `renderItemTitle` rerenders causes performance hits HOT 1
- customize keyboard bindings HOT 1
- Custom search HOT 1
- Expand tree element without selecting it HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-complex-tree.