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>
In this article