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

In this article
Not finding the help you need?