Programmatically changing tab in tabcontrol

Yo!

Is there a method for dynamically set the selected tab in a tab control?

Neither docs nor poshud.com seems to mention anything but the basic usage of the tabs.

Not built-in. Tabs need a little love. There is an issue for implementing Endpoint for them as well. You might be able to do something crazy with JavaScript by setting the active class on the tab you want but I think it would be a big hack. Probably wouldn’t be that hard to implement right in the component.

image

What happens if you throw select-udelement at them? :see_no_evil:

:laughing: I don’t know! Maybe it would work.

One could use Invoke-redirect too, as the Tab has their own url (URL+ID it seems):
https://beta.hrdashboard.Domain.dk/Admin---Employees#875a9e2b-6dee-4406-9d82-530cfafc559f11