Friday, January 31, 2014

KendoUI mobile - getting view's elements


<div data-role="view" id="myView">
    <a data-role="button" data-click="getContentElement">Tap here</a>
</div>

<script>
function getContentElement() {
    var view = $("#myView").data("kendoMobileView");
    console.log(view.contentElement());
}

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

No comments:

Post a Comment