I currently have group table (initialized with data loader query) nested inside a VBox. Since the VBox is collapsed by default, I only want the data in the table to load when the user expands the VBox (when the table is visible to the user).
I’m wondering if there is some sort of built-in functionality that I could use to achieve this. I’ve looked for some sort of on-expand listener on the VBox, but I don’t think that exists. It would be great if there is a way to do what I described.
After implementing this listener in your controller, you’ll be able to add your logic to load the table only when the GroupBox contents are visible to the user.