Skip to content
New issue

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

Add ability to set active tab from active accordion panel #40

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

simonrolfmore
Copy link

By default, accordion panels do not sync with tabs: the correct panel will be shown based on the active tab, but changing the active accordion panel does not change the active tab.

This PR adds that optional feature. I hope it's ok. Please let me know if there are style or implementation issues that you'd like altered!

Simon Rolfe added 3 commits July 1, 2015 12:04
By default, accordion panels do not sync with tabs: the correct panel
will be shown based on the active tab, but changing the active accordion
panel does not change the active tab.
To enable tab syncing, pass options as follows:
$('#myTab').tabCollapse({
syncTabs: true
});
@simonrolfmore simonrolfmore changed the title Add abiity to set active tab from active accordion panel Add ability to set active tab from active accordion panel Jul 1, 2015
@reddo
Copy link

reddo commented Nov 17, 2015

This works great! Nice work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants