Results 1 to 3 of 3

Thread: enableTabScroll: hide scroll buttons

  1. #1
    Sencha User jaforom's Avatar
    Join Date
    Jun 2009
    Posts
    20
    Vote Rating
    1
      0  

    Default enableTabScroll: hide scroll buttons

    In a TabPanel, when the number of tabs is five or more, I set enableTabScroll = true. When the number of tabs is minor than five, I set enableTabScroll = false, but the scroll buttons are not hidden. What's the way to hide these buttons?

    Thanks.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,024
    Vote Rating
    1366
      0  

    Default

    I don't think there is a way to dynamically hide/show the scroll buttons minus going in and doing it manually.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User jaforom's Avatar
    Join Date
    Jun 2009
    Posts
    20
    Vote Rating
    1
      0  

    Default

    Initially, the scroll buttons are hidden by config:

    Code:
    enableTabScroll: false
    When the user adds a new tab, the app does:

    Code:
    tabPanel.enableTabScroll = true
    and the scroll buttons are showed. Then, hide the buttons is impossible...

    Code:
    tabPanel.enableTabScroll = false

    Thanks.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •