Articles in this section
Category / Section

How to disable the ribbon collapse icon in the JavaScript Spreadsheet

1 min read

This article explains how to disable the ribbon collapse symbol from the JavaScript Spreadsheet toolbar. You can achieve this by adding “display: none” to the drop-down icon span element in the spreadsheet ribbon, as shown below.
[HTML]

 <div id="spreadsheet"></div>

[TS]

let spreadsheet: Spreadsheet = new Spreadsheet({
cssClass: 'e-custom',
 sheets: [
   {
     name: 'Car Sales Report',
     ranges: [{ dataSource: (dataSource as any).defaultData }],
   },
 ],
});

spreadsheet.appendTo('#spreadsheet');

[CSS]

/* To disable the collapse icon. */
       
.e-custom .e-ribbon span.e-drop-icon.e-icons {
       display: none;
     }

Sample Link: https://stackblitz.com/edit/r3t4ne-pnzz5s?file=index.ts,index.html

Screenshot:

Picture2.png

Conclusion

We hope you enjoyed learning about how to disable the ribbon collapse icon in the JavaScript Spreadsheet.

You can refer to our JavaScript Spreadsheet page to know about its other groundbreaking feature representations. You can also explore our JavaScript Spreadsheet Documentation to understand how to manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied