I am trying to build something similar to relative date item. I have a SelectItem with some default drop down options (like current day, pervious day) and then I used the formItemIcon option to show an icon next to this item. On click I will show a DateChooser object to pick a specfic date.
Now there are two issues.
1) I want to show the DateChooser next to the icon. I know that it has showNextTo method but it only takes a Canvas and FormItemIcon does not extend Canvas class.
2) How I get the date picked by the user. I mean which event I should capture to get the selected date. I tried DataChangedHandler but not able to get the selected date.
[Updated] I got that. I am sorry I didn't see the javadoc. It has getData method to see the selected date.
I hope someone will reply soon. Thanks
Now there are two issues.
1) I want to show the DateChooser next to the icon. I know that it has showNextTo method but it only takes a Canvas and FormItemIcon does not extend Canvas class.
2) How I get the date picked by the user. I mean which event I should capture to get the selected date. I tried DataChangedHandler but not able to get the selected date.
[Updated] I got that. I am sorry I didn't see the javadoc. It has getData method to see the selected date.
I hope someone will reply soon. Thanks
Comment