I would like to use Knockout.js with Bootstrap Tour. In particular, I would like to attach some data bound click handler to a button within a tour step.
I create a simple tour like this:
var tour = new new Tour({
steps: [
{
orphan: true,
title: "Help Title",
content: "<button data-bind='click: someBoundFunction'>Click me!</button>"
}
]
});
tour.init();
tour.start(true);
Is it possible to use this kind of binding? Or won't this binding work because of the markup code creation mechanism of bootstraptour? I tried it like this but clicking on the button does not execute the function neither is any error message shown.