1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    35
    Answers
    1
    Vote Rating
    1
    muceli is on a distinguished road

      0  

    Default Unanswered: 5 seconds after the label.hide()

    Unanswered: 5 seconds after the label.hide()


    Hello,
    There is a label. This label is hidden. I'm with the show function. 5 seconds after getting back to the show, I have to hide the label, but how?

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    This example uses a button, but you can adapt it to your needs.

    Code:
    Ext.create('Ext.window.Window', {
      bodyPadding: 5,
      height: 200,
      title: 'Button show/hide test',
      width: 300,
      items: [{
        xtype: 'button',
        hidden: true,
        text: 'A Button'
      }],
      buttons: [{
        text: 'Show button',
        handler: function() {
          var targetButton = this.up('window').down('button');
          targetButton.show();
           
          Ext.defer(function() { targetButton.hide();}, 5000);
          
        }
      }]
    }).show();Ext.create('Ext.window.Window', {
      bodyPadding: 5,
      height: 200,
      title: 'Button show/hide test',
      width: 300,
      items: [{
        xtype: 'button',
        hidden: true,
        text: 'A Button'
      }],
      buttons: [{
        text: 'Show button',
        handler: function() {
          var targetButton = this.up('window').down('button');
          targetButton.show();
          Ext.defer(function() { targetButton.hide();}, 5000);
        }
      }]
    }).show();

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    35
    Answers
    1
    Vote Rating
    1
    muceli is on a distinguished road

      0  

    Default


    Thank you for your answer. So, show () again within 5 seconds after the button is pressed (the arrangement) How can we increase 5 seconds. So if it is will increase again within 5 seconds press the 1 second after that time do not press the hide () will be.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."