Jump to content

Toast bildirimine progressbar eklemek


yakup

Recommended Posts

Merhabalar,

Toast bildirimlerine progressbar ekleyebilirmiyiz daha önce yapan oldu mu ?

image.png.9b0c9b091326a2b7003a1103005b5b78.png

 

Bunun gibi mesela verdiğim süreden geriye doğru sayacak.

image.png.dd603e866a0fc709c707ea46a8fe28cb.png

 

Kıllandığım script

Ext.toast({title: 'Giriş Yaptı',html: 'yakup Sisteme Giriş Yaptı...',align:'br',closeToolText: 'Kapat',closable:true,autoCloseDelay: 3000,});

 

https://docs-devel.sencha.com/extjs/7.3.1/modern/Ext.Toast.html#configs

Buralarda araştırdım ama gözüme çarpmadı.

 

Link to comment
Share on other sites

JS code:

var _toast = new Ext.toast({
    title: 'Giriş Yaptı',
    html: 'yakup Sisteme Giriş Yaptı...',
    align: 'br',
    closeToolText: 'Kapat',
    closable: true,
    autoCloseDelay: 3000,
    listeners: {
        beforeShow: function() {
            var me = this;
            me._pb = Ext.create('Ext.ProgressBar');
            me.add(me._pb);
            me._pb.wait({
                duration: me.autoCloseDelay,
                increment: me.autoCloseDelay / 1000,
                text: 'Please wait...',
                scope: this
            })
        }
    }
});

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...