We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to be able to programatically switch to a specific tab, how do we do that?
I wouldve assumed an api where we keep the index in state, and listen back to onIndexChanges,
failing that, a ref to access the internal methods of the container. But can't see any docs about either
The text was updated successfully, but these errors were encountered:
after looking at the source I found we can do
ref = createRef<Tabs.Container>() this.ref.current?.jumpToTab("following")
It works but there's still a typescript error TS2503: Cannot find namespace Tabs
Tabs
Is there a better way to do this?
Sorry, something went wrong.
There's a CollapsibleRef type you can use: const ref = useRef<CollapsibleRef>(null)
CollapsibleRef
const ref = useRef<CollapsibleRef>(null)
No branches or pull requests
I need to be able to programatically switch to a specific tab, how do we do that?
I wouldve assumed an api where we keep the index in state, and listen back to onIndexChanges,
failing that, a ref to access the internal methods of the container. But can't see any docs about either
The text was updated successfully, but these errors were encountered: