[英]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. 我正在尝试自定义Sencha风格的
Toast
,但不是以弹出窗口为中心,而是从右侧显示Toast并淡出..类似于“推送通知”样式。
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 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
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.