
Originally Posted by
lat9
Thank you Lat9! Reading the link got me to initialize the tooltip correctly which made a nicer looking tooltip. For those interested, some more googling and experiments resulted in adding the following code to jscript_zca_bootstrap.js inside the ready function to also toggle the tooltip text:
Code:
$('[data-toggle="tooltip"]').tooltip(); // edit to initialize tooltips
$('.navbar-toggler').on('click', function() { // edit to toggle tooltip text
toggleToolTipTitle.call(this, "my oncanvas tooltip text", "my offcanvas tooltip text");
});
function toggleToolTipTitle(titleOne, titleTwo) {
var lastTitle = $(".navbar-toggler i").attr("data-original-title");
$(".navbar-toggler i").attr('data-original-title',lastTitle === titleOne ? titleTwo : titleOne);
$(".navbar-toggler i").tooltip("show");
}
The code might be simplified but it works for me. Thanks again! 
Dave
zc158a, zca-bootstrap-template 3.6.1
Bookmarks