View Full Version : eliminating the caption on the task bar- Desktop Control

Sep 25, 2020, 8:13 AM
Hi Sir,

I'm working with desktop control and I created few shortcuts, I opened window through shortcuts but here I don't want show the text on taskbar-taskbutton text(Only image need to show).Attached screen shot.

I don't want show the caption on taskbar buttons. Is there any option to hide the text on taskbuttons.

Thank you,

Sep 25, 2020, 9:46 PM
Hi Vamsi!

That's not a feature inherent from the Desktop component. But you can do that by extending or overriding the taskbar class.

A good start point would be at the Ext.ux.desktop.TaskBar.addTaskButton() method (https://docs.sencha.com/extjs/7.2.0/classic/src/TaskBar.js.html#line168). You will be able to tweak the button to remove text, change width, and so on, so I believe this would give you a good start on that.

Hope this helps!