collapse

Triggered when a pane of a Splitter is collapsed.

Event Data

e.pane Element

The collapsing pane of the Splitter.

Example - subscribe to the "collapse" event during initialization

<div id="splitter">
  <div>Pane A</div>
  <div>Pane B</div>
</div>
<script>
$("#splitter").kendoSplitter({
  panes: [ { collapsible: true }, {} ],
  collapse: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log($(e.pane).html() + " has been collapsed");
  }
});
</script>

Example - subscribe to the "collapse" event after initialization

<div id="splitter">
  <div>Pane A</div>
  <div>Pane B</div>
</div>
<script>
function splitter_collapse(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log($(e.pane).html() + " has been collapsed");
}
$("#splitter").kendoSplitter({
  panes: [ { collapsible: true }, {} ]
});
var splitter = $("#splitter").data("kendoSplitter");
splitter.bind("collapse", splitter_collapse);
</script>
In this article