Results 1 to 5 of 5

Thread: Setting badge text on tab panel

  1. #1
    Sencha Premium User
    Join Date
    Jun 2017
    Posts
    13

    Default Answered: Setting badge text on tab panel

    I would like to set up badge on tab of tab panel text based on data from store.
    I managed to find the right tab, and set up bagde text using setBadgeText() method.
    Badge text does appear in the right place, unfortunately tab buttons stop working, so I cannot navigate between tabs.
    How can I fix this?




  2. Because you never callParent() on initialize. But you can't if you override the instance method. So, don't override the initialize method on an instance.

  3. #2

    Default

    Help us with a fiddle, may be we can help you!

  4. #3

  5. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,254
    Answers
    759

    Default

    Because you never callParent() on initialize. But you can't if you override the instance method. So, don't override the initialize method on an instance.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  6. #5
    Sencha Premium User
    Join Date
    Jun 2017
    Posts
    13

    Default

    So what would be the best time to set badges or any other elements in component? beforeshow?

Similar Threads

  1. Change badge text of tab panel icon
    By mbohlaender in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 7 Feb 2014, 1:39 AM
  2. How do I set the badge text of a tab panel item dynamically?
    By aysencha in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 7 Oct 2013, 2:54 AM
  3. Setting badge inside controller.
    By lgertel in forum Sencha Touch 2.x: Q&A
    Replies: 9
    Last Post: 29 May 2012, 5:13 AM
  4. Replies: 2
    Last Post: 28 Jul 2010, 1:03 PM

Posting Permissions

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