Edit this page

open

Open 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>

Parameters

target jQuery (optional)

The 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