-
Notifications
You must be signed in to change notification settings - Fork 263
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
Feature: (example for) editable TreeItem title #527
Comments
Or even better, add editable and editing properties! |
My brother Speed has offered to help. He understands JS more than I do. |
Yes, it's not a very Pythonic pattern. The idea is borrowed from how react and vue work. It looks very different, but the nice thing is that its declarative, which makes it less prone to errors, and its also quite efficient thanks to the use of a virtual DOM.
That would indeed require overloading quite a bit of the
That might definitely be worth exploring :) |
On Fri, Nov 23, 2018 at 4:54 AM Almar Klein ***@***.***> wrote:
Would it be possible to show how to make a flx.TreeItem editable?
That would indeed require overloading quite a bit of the _render_dom
method, and would maybe be a bit too involved to include in that demo. A
separate examples could work though.
Or even better, add editable and editing properties!
That might definitely be worth exploring :)
Oh good :-)
Edward
|
The flx.Widget docs mention _render_dom, but this is Greek to me. Earlier on the same (Widget) page is this generic example:
Would it be possible to show how to make a flx.TreeItem editable? This would make a great addition to the TreeWidget demo.
The TreeItem class in ui.widgets.tree.py contains this:
This is all very cool, but it's not exactly obvious how to make headlines editable ;-)
I'll be happy to dive in, but some hints would be welcome.
Edward
The text was updated successfully, but these errors were encountered: