Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Append" button and "Remove" button for TreeNode or Menu. #11668

Closed
1 task
fengshengde opened this issue Aug 8, 2018 · 5 comments
Closed
1 task

Add "Append" button and "Remove" button for TreeNode or Menu. #11668

fengshengde opened this issue Aug 8, 2018 · 5 comments

Comments

@fengshengde
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Add "Append" button and "Remove" button for TreeNode or Menu. I can edit the TreeNode
like this http://element-cn.eleme.io/#/zh-CN/component/tree#tree-shu-xing-kong-jian

What does the proposed API look like?

<TreeNode title="parent 0" key="0-0">
	<TreeNode title="leaf 0-0" key="0-0-0" isLeaf  editText="edit" deleteText="delete"  editAction="{this.edit()}  deleteAction="{this.delete()}"/>
	<TreeNode title="leaf 0-1" key="0-0-1" isLeaf />
	<Add title = "Append" onClick="{this.add()}"/>
</TreeNode>
@afc163
Copy link
Member

afc163 commented Aug 22, 2018

title could be a ReactNode.

@damaohub
Copy link

damaohub commented Jan 9, 2019

title could be a ReactNode.
Can it get the information(key etc) of the selected target?

@daiyang123456
Copy link

setTimeout 0;

@keithlimmontajes
Copy link

same issue anyone get this ?

@keithlimmontajes
Copy link

could not get the selected target info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants