data-widget="pushmenu" collable automatically

JavaScript
// Add sidebar-collapse in the body tag 
<body class="skin-blue sidebar-mini sidebar-collapse">
Source

Also in JavaScript: