clickOn String
(default "up")
Configures the DOM event used to trigger the button click event/navigate in the mobile application. Can be set to "down"
as an alias for touchstart
, mousedown
, MSPointerDown
, and PointerDown
vendor specific events.
Setting the clickOn
to down
usually makes sense for buttons in the header or in non-scrollable views for increased responsiveness.
By default, buttons trigger click/navigate when the user taps the button (a press + release action sequence occurs).
<div data-role="view" data-title="Foo">
<div data-role="header">
<div data-role="navbar">
span
Button
</div>
</div>
</div>
<script>
var app = new kendo.mobile.Application();
function onClick() {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("click");
}
</script>