close

Close the ModalView

Example

<div data-role="view">
    <a data-role="button"  data-click="openModal">open</a>
</div>

<div data-role="modalview" id="foo" style="width: 200px; height: 200px">
    <a data-role="button"  data-click="closeModal">Close</a>
</div>

<script>
function openModal() {
   $("#foo").data("kendoMobileModalView").open();
}

function closeModal() {
   $("#foo").data("kendoMobileModalView").close();
}

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