or
<
html
>
<
head
>
<
script
src
=
"scripts/kendo/jquery.min.js"
></
script
>
<
script
src
=
"scripts/kendo/kendo.mobile.min.js"
></
script
>
<
link
href
=
"styles/kendo.mobile.common.min.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"styles/kendo.mobile.all.min.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
</
head
>
<
body
>
<
div
id
=
"view1"
data-role
=
"view"
style
=
"background:grey;"
>
<
ul
data-role
=
"listview"
>
<
li
>This is view 1</
li
>
<
li
><
a
href
=
"#view2"
data-transition
=
"fade"
>Go to view2 »</
a
></
li
>
<
li
><
a
href
=
"#view3"
data-transition
=
"fade"
>Go to view3 »</
a
></
li
>
</
ul
>
</
div
>
<
div
id
=
"view2"
data-role
=
"view"
data-before-show
=
"protect"
>
<
ul
data-role
=
"listview"
>
<
li
>This is view 2</
li
>
<
li
>You should never see this</
li
>
</
ul
>
</
div
>
<
div
id
=
"view3"
data-role
=
"view"
>
<
ul
data-role
=
"listview"
>
<
li
>This is view 3</
li
>
<
li
><
a
href
=
"#view1"
>Go to view 1 »</
a
></
li
>
</
ul
>
</
div
>
<
script
type
=
"text/javascript"
>
var app = new kendo.mobile.Application($(document.body), {
skin: "flat",
transition: "fade"
});
function protect(e)
{
console.log("protect method");
e.preventDefault();
app.navigate("#view1");
}
</
script
>
</
body
>
</
html
>
template: '<
span
kendo-tooltip
k-content
=
"\'#=timeStamp#"
>#=timeStamp#</
span
>'