Edit this page

collapse

Collapses the content.

Parameters

instant Boolean

Optional. When set to true the collapse action will be performed without animation.

Example

<div id="home" data-role="view" data-init="onInit">
    <div id="collapsible" data-role="collapsible" data-collapsed="false">
        <h2>Header</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
    </div>
</div>

<script>
    var app = new kendo.mobile.Application();

    function onInit() {
        $("#collapsible").data("kendoMobileCollapsible").collapse();
    }
</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