Refresh tab count

edited October 15, 2019 in Questions
I have a tab set with a count label referencing a model.  How do I make this refresh when additional rows are added to each of the models.  I can do it for a table, just not for these tab labels?

image

Comments

  • edited September 29, 2016
    Thanks, how is this added in.  For example, I have javascript to refresh the model at intervals - can I add this line into here?  Where exactly would it go?

    (function(skuid){    var $ = skuid.$;
        $(function(){
            var myModel = skuid.model.getModel('teaminbox');
            var waitTime = 3000;
            setInterval(function() {
                myModel.updateData();
            }, waitTime);
            
        });
    })(skuid);


  • edited October 15, 2019
    I would assume that you could add it right into this script but I don't write much code, so I'm not sure the best place/format to put it.
  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited March 2, 2017
    In the upcoming Brooklyn release, global merges, such as {{$Model.Account.data.length}} will automatically update when the number of records in a Model changes. This will cause the number of records you're showing in your Tab labels to automatically update when the number of records in the Model whose data is shown in a tab is changed.
  • edited March 2, 2017
    Any idea when this might be released?

  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited December 21, 2016
    Brooklyn will be GA in November.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!