TriplyDB / Yasgui

Yet Another Sparql GUI
https://yasgui.triply.cc
MIT License
178 stars 54 forks source link

Set specific tab active dynamically #207

Closed eric-personal closed 1 year ago

eric-personal commented 1 year ago

I'm creating my tabs dynamically and I wanted a way to set a specific tab after creation to be the active tab. I have access to the tabs but can't find a function to do this.

I tried the following:

tab.yasqe.focus();
tab.yasqe.setSelection(); 
instance.tabElements._selectedTab = 'new id....'

Is there a simple way to set the active tab dynamically after tabs have been created ?

eric-personal commented 1 year ago

Found it in the code. Just wanted to update the ticket for others.

tab.select();