javascript - Two Bootstrap popover titles inside a single popover -
i'm having slight issue
i have line of code
<i style="font-size:28px;" class="fa fa-info-circle" data-toggle="popover" id='example' title="text entered here, text 2 here. data-content="two forms of content here"></i>
ideally i'm wanting have 2 headers can have info tag has 2 parts of detail inside rather 1 big popover tab.
ideally end looking this
///////////////////////////// //////////title////////////// ///////////////////////////// // // // // // content // // // // // ///////////////////////////// ///////////////////////////// ///////////title///////////// ///////////////////////////// // // // // // content // // // // // /////////////////////////////
thanks lot! , hope enjoy time , effort placed picture above!
edit
missed js code, see below
$('#example').popover({placement: 'right'});
you can custom popover options in boostrap :
http://getbootstrap.com/javascript/#popovers-options
and check content option :
$('#example').popover({ placement: 'right', html: true, content: function() { return '<h3 class="title1">title 1</h3><div class="content1">content 1</div><h3 class="title2">title 2</h3><div class="content2">content 2</div>'; }, });
Comments
Post a Comment