-
Notifications
You must be signed in to change notification settings - Fork 301
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
[Tree] examples of using the Tree Behavior with forms #38
Comments
Indeed, one possible and interesting way would be to automatically rebuild the tree before flushing using an event listener and a explicit change strategy for tree columns. |
Would be usefull. |
Hi, Do I have to create a custom type ? Does someone can show me an example ? |
@CharlyPoppins Hey, i put in pastbin an implementation to show ordered and indented tree in form for parent node: http://pastebin.com/P9ntWM3r |
@CharlyPoppins to show a tree expanded view in a backoffice, i wrote this Twig extension: http://pastebin.com/5dqnjHws. |
You can make your tree view outside of the form and writting JavaScript to Le dim. 29 mars 2015 19:30, Charly Poppins notifications@github.com a
|
Or use the generateTreeFlat and write JavaScript to modify the view. Le dim. 29 mars 2015 19:58, Frédéric Oudry frederic.oudry@gmail.com a
|
Yes but it can be nice if I manage to add a TreeViewFormType that can be called in a FormBuilder.-, |
i agree it would be nice, but it would be in another repo, to keep this one simple, single-purpose. |
Agree with you @docteurklein |
I finally managed to build my tree view :)
Maybe it's not the best way, but it works for now. |
I'm going through the old issues/PRs and closing most of them so we can focus on now. Thanks for you though, but closing for reasons above. If the bug still remains, please send failing test case to verify it. Only with test we'll be albe to help. |
Basically, I want to have a parent dropdown in a form. If the parent changes, obviously I need to update the tree which I suppose could be done with a listener similar to the Timestampable listener.
The text was updated successfully, but these errors were encountered: