GithubHelp home page GithubHelp logo

Disable drag&drop about react-ui-tree HOT 7 CLOSED

swiftcarrot avatar swiftcarrot commented on May 23, 2024
Disable drag&drop

from react-ui-tree.

Comments (7)

Radivarig avatar Radivarig commented on May 23, 2024 4

e.stopPropagation() from onMouseDown like this

renderNode(node) {
    return (
      <span
        className={'node' +(node === this.state.active ? ' is-active' : '')}
        onClick={this.onClickNode.bind(null, node)}
        onMouseDown={node.undraggable ? function(e){e.stopPropagation()} : undefined}
      >
        {node.module}
      </span>
    )
  }

from react-ui-tree.

wangzuo avatar wangzuo commented on May 23, 2024

More details?

from react-ui-tree.

vomchik avatar vomchik commented on May 23, 2024

How can i turn off this feature?

from react-ui-tree.

wangzuo avatar wangzuo commented on May 23, 2024

Oh, this component is for drag & drop tree editing, you may try other components like react-treeview.

from react-ui-tree.

vomchik avatar vomchik commented on May 23, 2024

Ok. I will use another component.
27 авг. 2015 г. 3:48 пользователь "Wang Zuo" [email protected]
написал:

Oh, this component is for drag & drop tree editing, you may try other
components like react-treeview
https://www.npmjs.com/package/react-treeview.


Reply to this email directly or view it on GitHub
#6 (comment).

from react-ui-tree.

wangzuo avatar wangzuo commented on May 23, 2024

looks cool

from react-ui-tree.

bonuanilkumar avatar bonuanilkumar commented on May 23, 2024

Thanks!!

from react-ui-tree.

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.