1. #1
    Sencha User jaforom's Avatar
    Join Date
    Jun 2009
    Posts
    20
    Vote Rating
    0
    jaforom is on a distinguished road

      0  

    Default enableTabScroll: hide scroll buttons

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,812
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User jaforom's Avatar
    Join Date
    Jun 2009
    Posts
    20
    Vote Rating
    0
    jaforom is on a distinguished road

      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.

Thread Participants: 1

Tags for this Thread