1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    33
    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
    33
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar