Giter Site home page Giter Site logo

Comments (3)

kutlugsahin avatar kutlugsahin commented on May 13, 2024

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.

alex35mil avatar alex35mil commented on May 13, 2024

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.

kutlugsahin avatar kutlugsahin commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.