convert dashboard to HTML...
put button somwhere in it ...
<button class="btn btn-primary stop_search_btn">Stop</button>
and then add javascript code ...
$('.stop_search_btn').click(function() {
var mainSearch = mvc.Components.getInstance("search1");
mainSearch.finalize()
});
Thanks, I tried it worked for me.
Can't we just add an <html> element to the <dashboard> instead of converting it to html? And, pardon my ignorance, how does one attach the Javascript to the button? I tried adding a <javascript> element after or inside the <button> without any success.
What is the purpose of this stop/finalize button?
Cheers,