Results 1 to 4 of 4

Thread: How to change the title a TabItemConfig?

  1. #1
    Sencha User
    Join Date
    Jan 2015
    Posts
    29

    Default How to change the title a TabItemConfig?

    I want to make the title dynamic based on status.
    I tried the following but does not work.

    Code:
    inputTab.setText("Input*");
    Thanks.

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    223

    Default

    Just setting something in TabItemConfig is not enough. Your TabPanel has to get this altered TabItemConfig. Try this:

    Code:
    TabItemConfig tabConfig = tabPanel.getConfig(tabWidget);
    tabConfig.setText("Input*");
    tabPanel.update(tabWidget, tabConfig);
    Last edited by Andreas Samjeske; 4 May 2015 at 12:23 AM. Reason: typo

  3. #3
    Sencha User
    Join Date
    Jan 2015
    Posts
    29

    Default

    Quote Originally Posted by Andreas Samjeske View Post
    Just setting something in TabItemConfig is not enough. Your TabPenel has to get this altered TabItemConfig. Try this:

    Code:
    TabItemConfig tabConfig = tabPanel.getConfig(tabWidget);
    tabConfig.setText("Input*");
    tabPanel.update(tabWidget, tabConfig);
    It works like a charm! Thank you

  4. #4

    Default

    yes it works for me too

Similar Threads

  1. [FNR] TabPanel.update(Widget, TabItemConfig) removes styling
    By madmaxmatze in forum Sencha GXT Bugs
    Replies: 4
    Last Post: 18 Sep 2015, 10:11 AM
  2. [CLOSED] setHTML in TabItemConfig is preventing click event
    By jeff_i in forum Sencha GXT Bugs
    Replies: 1
    Last Post: 25 Jun 2013, 5:24 AM
  3. [FIXED] TabPanel update ignores TabItemConfig close
    By winter in forum Sencha GXT Bugs
    Replies: 2
    Last Post: 11 Jan 2013, 4:48 PM
  4. Replies: 8
    Last Post: 16 Jul 2012, 3:14 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
  •