Q1:
What are the ways to select items in the FlexWheel?
Q2:
How do I set EditableAppointmentWheel to display Date in European formats like
- dd/mm/yyyy ?
Q3:
WheelChangeEnd event is not firing, how do I get the events to work?
Q4:
Why does the mouse wheel not scroll items when over the FlexWheel?
A: The following methods work:
A: You can set the EditableAppointmentWheel.EditorDateFormat = “whatever format you like”, But
I use the flex Date.parse() to translate date strings to Date() object and unfortunately Adobe decided
Not to support
date formats outside the
As a solution (as of version 1.*.2) I added an option to pass dateParseFunction, in which you can handle string to date
conversions by yourself. Combined with EditorDateFormat
property you
can handle any date format from now on.
For example, in your creation complete or something:
edWheel.EditorDateFormat = “DD/MM/YYYY”
edWheel.dateParseFunction=myParseDate
private function creationComplete():void
{
ed.EditorDateFormat
= "DD/MM/YYYY";
ed.dateParseFunction
= parseDate;
}
private function parseDate(str:String):Date
{
var arr:Array = str.split("/");
var dt:Date = new Date(arr[2],arr[1]-1,arr[0]);
return dt;
}
A: Set the initialValuesArray (see as-docs on how). As of version 1.*.2 they always fire
regardless of the initialValuesArray property.
A: As of version 1.*.2 the mouse wheel scrolls items! However as you can
see in the example application the mouse wheel event is also handled by
the browser if the html page has scrolling. I could not find an immediate
solution for this so the version was released with this known issue.
Hopefully I will solve it next version.