Advanced Table usage #5366
-
Hi, As started discussing in #5356 I wanted to continue digging the advanced usage of tables. In my case, I want to use a Table to render the result of a query executed in DB. So I've setup a working Table with Dynamic headers and content based of the result of a query. My table cells are rendered as a simple custom widget that simply contains a canvas.Text and render itself inside a container.NewScroll. So big values are not overflowing on next columns. The issue with that, is that the scroll event is not executed on the Table itself anymore when my mouse is on a cell. Even if scrollbars are not visible in the hoovered cell. Something should propagate the scroll event in my opinion. Next, the sort question. I guess it's something we have to fully manage by hand ? Thanks a lot for sharing your knowledge on the subject. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Yes that is true - if a widget responds to an event it won't propagate to a parent element. It makes everything a lot simpler but has some drawbacks. Were we to change that to allow propagation then probably that would apply to all events and everything gets a lot more complicated. If there a way to handle it neatly that would be cool. But having two scrollers inside each other isn't really ideal, Apple documents against this. A random question here - did you consider a label with truncation turned on? (you mentioned not having the scroll visible so thought I would ask).
Yes - the table does not know anything about your data. |
Beta Was this translation helpful? Give feedback.
Yes that is true - if a widget responds to an event it won't propagate to a parent element. It makes everything a lot simpler but has some drawbacks. Were we to change that to allow propagation then probably that would apply to all events and everything gets a lot more complicated. If there a way to handle it neatly that would be cool. But having two scrollers inside each other isn't really ideal, Apple documents against this.
A random question here - did you consider a label with truncation turned on? (you mention…