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

create custom template and display confirm before delete from tree #48

Closed
hatemalhassani opened this issue Feb 13, 2017 · 4 comments
Closed

Comments

@hatemalhassani
Copy link

how to create custom template for tree including create new folder or item?

and

how to display confirm before delete from tree?

thanks

@rychkog
Copy link
Contributor

rychkog commented Feb 13, 2017

Hi @hatemalhassani

  1. There is no way to create a custom template but you can override styles (node_modules/ng2-tree/styles.css)
  2. There is no way to display confirm before tree (node) removal :( . But this is a good idea and I will add this feature to the backlog (I think it will be available with a next release)

@hatemalhassani
Copy link
Author

thank you for your reply @rychkog

for custom template: I think this feature is vrey usefull for me because i need to i add custom form (to add new object insead of value of string).

@rychkog
Copy link
Contributor

rychkog commented Feb 13, 2017

@hatemalhassani I see, so in your usecase you want to provide html as node values. Will think about it - maybe will manage to bring this to the tree as well

@hatemalhassani
Copy link
Author

in my case i use value of object "RenamableNode" so i need to create item with multi-value (custom template for add new item)

rychkog pushed a commit that referenced this issue Nov 19, 2017
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

2 participants