#can i open tauri window from a react view and let it open a specific tab?

6 messages · Page 1 of 1 (latest)

upbeat citrus
#

I have this setttings window im working on with tabs that you can select for different sections.

I would like to have a react view tauri link that opens a real tauri window oitside the react view, so it would load a new window on top of the main window.

Then i would like to set the active tab that should open somehow, perhaps with an url param or by other means.

Is this possible somehow?
Couls not find an example that implements this.

Usecase:: direct the user to the right tab with the correct settings to be made

hollow mauve
#

Hello, yes you can do it. You can use events to communicate between windows, and have a button event on the main window to open another window with some data to have a specific tab opened in top window. Maybe universal links can do it too.

young cedar
#

If you don't need any special data but really just the tab you can use react-router for that and specify the route in the url. If you still using the multi-page app mode from a few days ago you could simply do settings.html/Whatever (browser mode) or settings.html/#/Whatever (hash mode)

upbeat citrus
#

Is there an example of how to open a tauri window with invoke or window api?

#

Since it has to open my settings window not load an url in the current window. Thanks! Then i can close yet another issue almost ready! Exciting🤩