Comments (3)
It does not accept classNames it manages its own classes internally. Actually if you want to style the container wrap it and add classes to the wrapper. the purpose that it accepts style is to enable editing dimensions of the box like min-height or padding-bottom. Normally container accept drops when the drag is inside its borders and by default its size will be determined according to the items inside but sometimes you want the box of container bigger than the child elements to accept the drop. So that's why you need to edit its style. But again basically just style the wrapper to modify the appearance.
from react-smooth-dnd.
Gotcha. I wanted to set width on Container
using CSS variable but I can move it on Draggable
level since it accepts className
prop so all good here. Thanks!
--
Also, unrelated question. I finished Reason bindings yesterday and literally just rendered dumb example w/o looking deep into complex cases. Is it possible to handle dnd of multiple selected items in the list?
from react-smooth-dnd.
Yes it is if they are consecutive. Just wrap the selected items in one Draggable so that they will be moved together.
from react-smooth-dnd.
Related Issues (20)
- Native touch scroll is blocked after touch/scroll on the react-smooth-dnd HOT 1
- Does it support html tables? HOT 2
- shouldAcceptDrop not detecting that element is dragged over HOT 10
- Is the license correct at MIT?
- Draggable render ref HOT 1
- Documentation for functional components? HOT 1
- Cannot read property 'setDraggables' of undefined HOT 4
- Why I click the dragabled Item will trigger drag event?
- Container control on dynamic fields HOT 1
- onDrop returning invalid addedIndex and removedIndex HOT 1
- Property 'children' does not exist on type 'IntrinsicAttributes....' HOT 10
- Functional components
- horizontal scroll not working when using infinite scroll HOT 3
- Flickering issue HOT 2
- Question about getContainerOptions
- Please fix "Property 'children' does not exist on type 'IntrinsicAttributes'"
- Performance issue
- How to use payload on onDragEnd Or return dragged element
- 为什么我写的onDrop方法的 addedIndex不是正确的数组的index,像是随机的一样
- Uncaught TypeError: Cannot read properties of undefined (reading 'setDraggables')
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-smooth-dnd.