简体   繁体   English

复选框树与reactjs中的按钮

[英]Checkbox tree with Buttons in reactjs

I have a specific requirement to add a Checkbox tree having Action buttons on each node. 我有一个特殊要求,即要在每个节点上添加一个具有“操作”按钮的复选框树。 As I am new to Reactjs, I tried certain options like react-sortable-tree and react-checkbox-tree, which solves either Action Button or Checkbox requirement. 当我刚接触Reactjs时,我尝试了某些选项,例如react-sortable-tree和react-checkbox-tree,它解决了Action Button或Checkbox的要求。 https://www.npmjs.com/package/react-sortable-tree Could I get help to find necessary control or control behaviour to fulfil the requirement acceptance? https://www.npmjs.com/package/react-sortable-tree我能否获得帮助以找到必要的控制或控制行为以满足要求的接受?

Thank you, Sagar 谢谢萨加尔

There is rc-tree which is used by Ant Design it has checkable property which makes each tree node a checkbox. Ant Design使用了rc-tree ,它具有checkable属性,该属性使每个树节点成为一个复选框。 If it does not solve your problem you can create a custom tree view yourself. 如果它不能解决您的问题,则可以自己创建一个自定义树视图。 There are plenty of examples on web ( How TO - Tree View ). 网上有很多示例(“ 如何-树状视图” )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM