I've been thinking for some time that we should really build some sort of <xul:calendar/> widget in XBL. We'd probably use attributes of the element to change the appearance of the widget (say, one arrangement might be a grid filled with calendar dates, another might be a month-day-year trio of menulists, another would be a day-month-year trio, etc.). A common binding would support the implementation and event handlers; the content bindings would each correspond to a particular view of the element, as determined by attributes.
Does anyone want to start writing one?
Posted by WeirdAl at August 7, 2004 2:12 PMWhat would be the output?
Should the view be switchable?
Additional idea, there should be a xul:time widget to add a time-of-day to a specified xul:calender (specified by ID or so).
I'm really not too confident that one implementation would work for enough people, though.
As far as code is concerned, it's probably you that should just start away and see if the output makes people kick in ;-).
Posted by: Axel Hecht at August 8, 2004 1:50 AMThis is definitely a desired feature. WebForms 2.0 needs some date and time pickers implemented. Or are you thinking of something more complex like the Mozilla Calendar has? Either way, writing up a simple spec and posting it on http://wiki.mozilla.org/XULDev or linking to it from there would be a good idea.
There is already a minicalendar widgit in the calendar code. You could work off that.
Posted by: Richard Klein at August 8, 2004 12:58 PMIs there an XPCOM component that provides info about week day names, month names, first day of the week and so on? These would be needed for a calender.
Doing a date/time picker (text input) would require support for localization of the format as well as parsing different locales. Not too trivial to do without access to the underlying OS.
erik
Posted by: Erik Arvidsson at August 12, 2004 3:48 PMDon't forget to check the code for calendar. It already has a widget.
Posted by: mvl at August 13, 2004 7:45 AM