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 a method for TextNode that can be reset the text for the node. #61

Closed
Kooooooma opened this issue Mar 31, 2016 · 4 comments
Closed

Comments

@Kooooooma
Copy link

Just like the title what i said, i think it will be useful!

@paquettg
Copy link
Owner

paquettg commented Apr 5, 2016

What do you mean reset?

Do you mean the original text of the node? How do you see this working?

@Kooooooma
Copy link
Author

For example, when the textNode it's val is "aa", and then i want to change it into "bb", so i need a method to do this. Just like i can changed the label attr.

@danae
Copy link

danae commented Apr 19, 2016

Indeed a method to change the text of a node would be useful. Now I have to use a workaround, first deleting all children of the node and then adding a new TextNode as a child.

@paquettg
Copy link
Owner

added method
da5afae

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

No branches or pull requests

3 participants