With some useful features for sliders in AI2 and its disturbution.
Documentation
Blocks |
Description |
|
Rasies when any error occurred.
Params |
Type |
Description |
error |
String |
Return an exception error in String form. |
|
| Raises when any registered slider's thumb position changed. If it is changed by the user, fromUser will be
true, otherwise false.
Params |
Type |
Description |
component |
Component (Slider) |
Return the component that it's thumb position changed. |
progress |
Number (float) |
Return the position of the slider that it's thumn position changed. |
fromUser |
boolean |
Return true if the change is made by the User, otherwise false. |
|
|
Rasies when any registered slider is touched down.
Params |
Type |
Description |
component |
Component (Slider) |
Return the component that has been touched down. |
|
data-is-external-image="true">
|
Rasies when any registered slider is touched up.
Params |
Type |
Description |
component |
Component (Slider) |
Return the component that has been touched up. |
|
|
Register a slider component.
Params |
Type |
Description |
slider |
Component (slider) |
Input a slider component to register. |
|
|
Unregister a slider component.
Params |
Type |
Description |
slider |
Component (slider) |
Input a slider component to unregister. |
|
Errors
The Error Ocuured event will only return exception error.
Download
v1.2
Changelog
v1.2
- Bug fixed - Change event will work now
- Removed useless variable and Hashtable
v1.1
- Changed the name of OnChange to Changed, suggested by @Vishwas
Reference
Kodular Community
MIT AI2 Community
Comments