openam / bootstrap-responsive-tabs

Bootstrap responsive tabs are tabs that switch to collapsible components (accordions) when resized.
openam.github.io/bootstrap-responsive-tabs
MIT License
132 stars 60 forks source link

a real link inside the nav-tabs #25

Open maki3000 opened 10 years ago

maki3000 commented 10 years ago

hello!

i have a real link inside the nav-tabs. of course there is no content in the tab-content for it, because it links to a new page. also the href doesn't look something like this: href="#profile", but e.g. like that: href="http://www.example.com". of course the responsive tabs script crashes there, because it has no content for the tab and it can't do something with the href. is there a solution for that? i tried to add a class "no-content" to the real link i the tab and then tried to make the responsive tabs script to ignore this one. but i didn't succeed..

maki3000 commented 10 years ago

i really hacked now the script and succeded in adding a real link to the responsive tabs. would be nice if there would be a standart option or class to add if there's a real link under the tabs..

mav2287 commented 8 years ago

I had the same issue the problem is that when it makes the new link it makes the href="#" instead of keeping what was their if it is already a link.

openam commented 8 years ago

Is this possible to do in the bootstrap collapse?

mav2287 commented 8 years ago

yea, as long as you don't have the data-toggle="collapse" on the link you can. The problem comes in when you try to do something like this http://www.bootply.com/ZobVKYt63X In that case I have a drop down button. When the responsive tabs does it's thing it makes each link in the drop down button a header, which would be fine, but they no longer work as links.

dabustard commented 8 years ago

Solution has not been found yet? It important because real link is working well in a default bootstrap tabs but with installed responsive script it is not...