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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •