Edit this page

beforeOpen

Fires before the ModalView is shown. calling preventDefault on the event argument will cancel the open.

Example

<div data-role="view">
    <a data-role="button" href="#foo" data-rel="modalview">Foo</a>
</div>

<div data-role="modalview" id="foo" data-before-open="preventOpen">
    Foo
</div>

<script>
function preventOpen(e) {
    e.preventDefault();
    console.log(e.target); // <a href="#foo" ...
}

new kendo.mobile.Application();
</script>

Event Data

e.target jQuery

The invocation target of the ModalView.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy