Use screen as fragment

Is it possible to include a screen like a fragment? Maybe as an iframe or is there another preferred way of achieving this?

More context: I’ve got a screen that I show on-click on a cell in a data grid as a dialog, but instead I want to show it in the bottom of the same screen e.g. with a SplitPanel.

Hi Klaus,
How about using an eventlistener? When a cell in the data-grid is clicked, you send some kind of event, then you listen in SplitPanel, create a new screen, and without calling show() method, add() to the splitpanel, the component from screen.getWindow(). What do you think of this way? I haven’t actually tried it, but I think it should work this way.

Thanks,
Nurmuhammad

1 Like

Actually, the framework’s API doesn’t allow you to use screens as fragments.

Please share your experience if you try the approach suggested by @nurmuhammad.abdurash - it would be very interesting.

1 Like

Hi @nurmuhammad.abdurash thanks for your interesting idea!

For now I solved it the “default” way by duplicating the functionality from the screen I wanted to show in the split panel, but this sounds interesting.

2 Likes