Skip to Content
author's profile photo Former Member
Former Member

Replacing expand/Collpase icon in panel


I am trying to create a new composite component by extending panel. I want all the features that Panel supports. But I want to change the expand/Collapse icon.

I tried to extend panelRenderer and also tried used removeClass and addClass methods. But it still shows me the old icon.

May be I am missing something, as I have just started learning openUI5.

If any one has any idea, please share!!


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 17, 2014 at 08:14 AM


    I think you don't need extend component to change icon. There is a style that defines the icon of panel:

    .sapUiPanelCollIco, html[data-sap-ui-browser*="ie"] .sapUiPanelCollIco {
    display: block;
    background-image: url(img/panel_container/Minimize.png);

    You could create your custom CSS and override sapui5 default theme.

    Hope this helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.