Results 1 to 4 of 4

Thread: button doesn't show its new text

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    37
    Vote Rating
    1
      0  

    Default 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
      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
      0  

    Default thanks!

    Thanks a lot! I lost my Yesterday on that!

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1390
      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 @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

Posting Permissions

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