Hi,
I can't get the select event on the tabstrip working. It should log a console message that the select event was fired, but it does nothing. What am I doing wrong?
HTML markup:
JS code:
I can't get the select event on the tabstrip working. It should log a console message that the select event was fired, but it does nothing. What am I doing wrong?
HTML markup:
<
div
data-role
=
"layout"
data-id
=
"mobile-tabstrip"
>
<
div
data-role
=
"footer"
>
<
div
data-role
=
"tabstrip"
id
=
"tabStrip"
>
<
a
href
=
"#user"
data-icon
=
"contacts"
>User</
a
>
<
a
href
=
"#cycle"
data-icon
=
"play"
>Cycle</
a
>
<
a
href
=
"#stats"
data-icon
=
"toprated"
>Stats</
a
>
<
a
href
=
"#settings"
data-icon
=
"settings"
>Settings</
a
>
</
div
>
</
div
>
</
div
>
JS code:
var tabstripBound = false;
var app = new kendo.mobile.Application($(document.body), {
platform : "android",
viewShow: function() {
if (!tabStripBound) {
var tabStrip = $("#tabStrip").data("kendoMobileTabstrip");
tabStrip.bind("select", onSelect);
tabStripBound = true;
}
}
});
function onSelect(item){
console.log("In on select");
}