With ExtJs
I can use Ext.get("xxx").fadeOut(...)
to fade out a html
element, but with Sencha Touch, if I do the same thing Ext.get("xxx").fadeOut(...)
, it tells me that fadeOut
is undefined
. Am I doing something wrong?
Depending on where you are getting a ref to a component or dom element you can use something like this.
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'
})
Etc etc
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.