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

Field in Table cell not editable #45

Open
JamesDunne opened this issue Jan 1, 2024 · 4 comments
Open

Field in Table cell not editable #45

JamesDunne opened this issue Jan 1, 2024 · 4 comments

Comments

@JamesDunne
Copy link
Contributor

When returning a *Field widget from ColumnCell() to act as an editable text field, it seems all interactive functionality of the *Field does not work within the table. I've made sure to use a single *Field instance returned from ColumnCell(). I can submit a tiny demo code snippet if need be. Thanks!

@richardwilkes
Copy link
Owner

Yeah, that's expected right now. The reason is that the table cells are ephemeral -- they are only around while visible on the screen and even then, only when directly interacted with, usually only for drawing purposes. I believe I do install the cell and forward most mouse events to them, then uninstall it... but I'm pretty sure I don't do that for keyboard input (mainly because my own uses didn't need it).

I don't think this would hard to add. If you provided a list of specific things that are broken, that would be helpful.

@JamesDunne
Copy link
Contributor Author

Gotcha. Pretty much nothing works as far as interactivity of the field when it's in the cell. Can't select, can't edit, can't type, etc. The mouse cursor changes to an editing cursor when hovered over but that's the extent of it.

@richardwilkes
Copy link
Owner

OK, good to know. Some things are forwarded, but clearly not enough. To date, the only thing I've used that for is a custom label that changes its contents when clicked on. Anyway, not sure when I'll get around to adding more support for this, but will keep it in mind next time I have some spare time and am looking for something to work on.

@JamesDunne
Copy link
Contributor Author

No worries, I can find a workaround for my use case. Aside: loving this library so far. Great work!

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

2 participants