1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    37
    Vote Rating
    1
    vnurin is on a distinguished road

      0  

    Default button doesn't show its new text

    button doesn't show its new text


    I added buttons array to the toolbar, then changed text of buttons. How I can make new texts of buttons visible on the toolbar?

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Please post code to get faster help.

    Here is one way

    Ext.getCmp('#toolbarId').items.getAt(indexIfItem).setText('new text');

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    37
    Vote Rating
    1
    vnurin is on a distinguished road

      0  

    Default thanks!

    thanks!


    Thanks a lot! I lost my Yesterday on that!

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    873
    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


    Quote Originally Posted by vnurin View Post
    Thanks a lot! I lost my Yesterday on that!
    I would suggest reading the API docs as I'm sure you would have come across the setText method.

    http://dev.sencha.com/deploy/touch/docs/
    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.

Thread Participants: 2