javascript - Backbutton support for Navbar from Bootstrap3 -


i've reworked navbar of twitter bootstrap bit support button. simple single page solution not require server side processing. try here. create links within 1 tab tab. i've done via

// make links data-toggle outside of mytabs working $('#main a[data-toggle]').click(function (e) {    $(this).tab('show'); }); 

and need mark links in html data-toggle=tab:

<a href="#download" data-toggle="tab">download</a> 

it still works, e.g. try download in left-bottom corner, new tab not highlighted anymore somehow. (worked before. investigating.) additionally when use dropdown old tab still highlighted, see here: http://i.stack.imgur.com/9icer.png

my question: there 'official' or better way make navigating tabs bootstrap working? i.e. highlighting, browser support, dropdown , onload behaviour implemented properly.

update: dropdown still issue highlight-on-normal-link-click issue seems fixed when do:

$('#main a[data-toggle]').click(function (e) {   document.location.hash = $(this).attr('href'); }); 

or should try easytabs seems work out of box bootstrap?

short answer: no.

long answer: bootstrap @ base css framework. yes, includes jquery plugins. if closely @ those, notice of them not rich functionality.

so no, sort of interactivity looking not built in bootstrap directly. path on correct 1 - find compatible plug-in, or yourself. may seem shortcoming of bootstrap, isn't. javascript perspective, leaving decide how best implement these sorts of things, instead of locking in 1 particular way.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -