Class NativeInterpolator
- java.lang.Object
-
- org.pepstock.charba.client.options.NativeInterpolator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NativeInterpolator
create(String code)
Creates a callback in java script.
All options in the configuration which can be set like scriptable, can be set with a native callback.
The callback can receive only 3 arguments:
from: the initial value of element property to:the target value of element property factor: a value between 0 and 1 (inclusive) with the factor of animationString
toSource()
Returns a string representing the source code of the function.
-
-
-
Method Detail
-
create
@JsOverlay public static NativeInterpolator create(String code)
Creates a callback in java script.
All options in the configuration which can be set like scriptable, can be set with a native callback.
The callback can receive only 3 arguments:
- from: the initial value of element property
- to:the target value of element property
- factor: a value between 0 and 1 (inclusive) with the factor of animation
- Parameters:
code
- the code of the callback to execute- Returns:
- a callback in java script
-
toSource
@JsMethod(name="toString") public String toSource()
Returns a string representing the source code of the function.- Returns:
- a string representing the source code of the function
-
-