Hi Saddam,
Good day to you.
We would inform that your requirement is achieved by collapse() method. Using loadComplete event, you can hide the ribbon menu bar initially on spreadsheet rendering. Please refer the below code snippet.
PHP
echo $spreadsheet -> sheets($sheets) -> scrollSettings($scroll) -> loadComplete('loadComplete') -> render();
<script>
loadComplete: function () {
$("#" + this._id + "_Ribbon").data("ejRibbon").collapse();
// $("#" + this._id + "_Ribbon").data("ejRibbon").expand(); for expand the menu bar
}
</script>
|
Please let us know if you need further assistance.
Regards,
Arunkumar D