I'm developing a mobile application with Smart GWT.
Everything works, but I would like to be able to use the "animateShow(AnimationEffect effect)" method with the SLIDE effect from right to left (instead of from left to right).
I tried with the implementation of the native method:
by passing (MyCanvas, AnimationEffect.SLIDE, "R", "L") as parameters in my class, but it doesn't work.
What am I doing wrong?
Thanks in advantage.
Everything works, but I would like to be able to use the "animateShow(AnimationEffect effect)" method with the SLIDE effect from right to left (instead of from left to right).
I tried with the implementation of the native method:
Code:
public native void animateShow(Canvas canvas, AnimationEffect effect, String endsAt, String startFrom) /*-{ var effectJsObj = { effect: effect.@com.smartgwt.client.types.AnimationEffect::getValue()(), endsAt: endsAt, startFrom: startFrom}; var canvasJsObj = canvas.@com.smartgwt.client.widgets.Canvas::getOrCreateJsObj()(); canvasJsObj.animateShow(effectJsObj); }-*/;
What am I doing wrong?
Thanks in advantage.
Comment