简体   繁体   中英

How to implement a custom Toast in Sencha Touch app?

I am trying to custom a Toast in Sencha touch but instead of pop-up centered, a Toast appearing from the right side and fade out.. like "push-notification" style.

It is trivial to custom styles and other parameters but I did not find the correct way to implement this layout.

Here you can see a fiddle with a basic custom implementation:

https://fiddle.sencha.com/#fiddle/1a1v

Just saved over your fiddle, try this

Ext.toast({
    message:'Hello Sencha!',
    centered: false,
    width: 300,
    height: 50,
    top: 0,
    right: 10
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM