Edit this page

kendo.mobile.ui.Widget

Base class of all Kendo UI Mobile widgets. Inherits from kendo.ui.Widget.

Methods

view

Returns the kendo.mobile.ui.View which contains the widget. If the widget is contained in a splitview, modalview, or drawer, the respective widget instance is returned.

Example

<div data-role="view" id="foo" data-init="getButtonView">
    <a id="button" data-role="button">I am a mobile button</a>
</div>

<script>
    new kendo.mobile.Application();
    function getButtonView() {
        console.log($("#button").data("kendoMobileButton").view()); // the foo mobile view instance
    }
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy