Sencha touch没有淡出功能

Sencha touch has no fadeOut function

本文关键字:淡出 功能 touch Sencha      更新时间:2023-09-26

对于ExtJs,我可以使用Ext.get("xxx").fadeOut(...)来淡出html元素,但是对于Sencha Touch,如果我做同样的事情Ext.get("xxx").fadeOut(...),它告诉我fadeOutundefined。我做错了什么吗?

取决于你在哪里得到一个ref到一个组件或dom元素,你可以使用这样的东西。

me.getMain.down('#myComponentItemId').hide('fadeOut');
me.getMain.down('#myComponentItemId').show('slideIn');
.hide()
.show()
.hide('fadeOut')
.show('fadeIn')
.show({
    type: 'slide',
    duration: 500,
    direction: 'left' 
})

等等