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

Change width of tab strip

Hi

How can I change the width of tabs in tab strip?

Thanks,

Miley

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2015 at 09:18 AM

    Hey Miley

    To set the width of individual tabs inside the tabstrip, you could use a CSS approach.

    For example:

    .sapUiTabSel

    {

    width:50px;

    }

    (This will change the width of the selected tab)


    .sapUiTab, .sapUiTabSel, .sapUiTabDsbl

    {

    width:150

    }


    (This will change the width of all your tabs to 150px)


    To change only one specific tab you can add a style class like so: tab.addStyleClass("my-tab-class"), then you can use this class in your css or scss file.


    You can also change the background of the tabs easily this way.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2015 at 06:47 PM
    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.