this is some small low level bootstrap hack you ca...
# kvision
r
this is some small low level bootstrap hack you can try:
Copy code
div().bind(obs) {
                div("obs = $it")
                button("test").bind(obs2) { v ->
                    text = "test $v"
                    if (getElementJQueryD() == null) {
                        afterInsertHook = {
                            getElementJQueryD().attr("data-original-title", "tooltip <b>$v</b>").tooltip(obj { html = true })
                        }
                    } else {
                        val testVisibility = getElementJQuery()?.attr("aria-describedby")
                        if (testVisibility != null) {
                            getElementJQueryD().attr("data-original-title", "tooltip <b>$v</b>").tooltip("show")
                        } else {
                            getElementJQueryD().attr("data-original-title", "tooltip <b>$v</b>").tooltip()
                        }
                    }
                    onClick {
                        obs.value += 1
                    }
                }
                button("test 2").onClick {
                    obs2.value += 1
                }
            }