Bootstrap's tooltip not working with knockout bindings? (w fiddle)

前端 未结 4 1166
醉梦人生
醉梦人生 2020-12-29 03:59

Fiddle: http://jsfiddle.net/LkqTU/9399/

Code:

var ViewModel = function (first, last) {
    var self = this;
    self.showIcon = ko.observable(false)         


        
4条回答
  •  别那么骄傲
    2020-12-29 04:26

    The answer provided by Adi Mihasan almost worked for me. I had to make the following changes, which may also help others.

    $(element).tooltip("destroy");
    

    to

    $(element).tooltip("dispose");
    

    AND

    $(element).data("bs.tooltip").options.title = options.title 
    

    to

    $(element).data("bs.tooltip").config.title = options.title
    

提交回复
热议问题