1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    11
    Vote Rating
    0
    alastairwhitham is on a distinguished road

      0  

    Default Answered: Styling the back button

    Answered: Styling the back button


    I am building an app and have used the navigationview component which dynamically creates a Back button when opening a new page.

    I would like to style the toolbar so I have employed the sencha-toolbar-ui and sencha-button-ui @includes in my SASS file.

    However, the Back button is not displaying the correct style. How do I get the custom style applied to the Back button without creating custom CSS?

    Thanks.

  2. The back button has the ui config set to back. To change it you can do:

    Code:
    {
        navigationBar : {
            backButton : {
                align   : 'left',
                hidden  : true,
                ui      : '...........'
            }
        }
    }

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Answers
    3465
    Vote Rating
    833
    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


    The back button has the ui config set to back. To change it you can do:

    Code:
    {
        navigationBar : {
            backButton : {
                align   : 'left',
                hidden  : true,
                ui      : '...........'
            }
        }
    }
    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.

  4. #3
    Sencha User
    Join Date
    May 2012
    Posts
    11
    Vote Rating
    0
    alastairwhitham is on a distinguished road

      0  

    Default


    Hi Mitchell, thanks for responding.

    I have tried your advice and it successfully applies my custom colour scheme.
    However, it has removed the nice arrow shaped border that the Back button has.
    Do you know if there is a way of keeping the arrow shape for the Back button whilst applying a custom theme?

    Many thanks

  5. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Answers
    3465
    Vote Rating
    833
    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


    You need to extend the back ui and apply your custom colors
    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.

  6. #5
    Sencha User
    Join Date
    May 2012
    Posts
    11
    Vote Rating
    0
    alastairwhitham is on a distinguished road

      0  

    Default


    I got it to work by doing this:

    backButton: {
    ui: 'customThemeName-back'
    }

    I didn't know you could concatonate different styles to make 'customThemeName-back', but it works!

    Thanks for your help.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi