I have a tabs container which contains 4 tabs each with a TableView macro inside. I simply want to set the default tab depending on the date. I can hardcode it for now, but I'd like to do it programmatically using JavaScript, eventually. Is there an easy way to do this either on the Tabs Container macro or on the Tabs themselves?
Hi
Unsre what "tabs" component are you using, but the one from Atlassian allows to switch between tabs using the "anchor" in the url
https://aui.atlassian.com/aui/latest/docs/tabs.html#tabs-example-second
Alex
Alex,
Thank you.
I've had to add the line:
AJS.tabs.change(jQuery(`a[href="${currentFYandQtrStr}"]`));
to my AJS.toInit() function, so that works. It just doesn't look nice, because the default is the first Tabs Page. I was hoping there might be a way to simply use the id of the Tabs Page in the Tabs Container to set the default.
Any ideas? If not, this is sufficient, just not pretty.
Thank you in advance.
-Kathleen J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure why you could not do that with the same approach!?
And selecting any other tab
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.