Re: [flexcoders] access to individual days on DateChooser

2005-11-15 Thread Manish Jethani
On 11/15/05, keishichi2001 [EMAIL PROTECTED] wrote:
 Flex 2.0

 Can i display a day on DateChooser either Bold or Italic?
 i'm gonna build calendar application and if a day has any plans, then
 the day should be displayed bold.
 Can i do this?

I don't think so.  There's a weekDayStyleName, and there's a
todayStyleName, but there's no selectedDayStyleName unfortunately.

Manish


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] access to individual days on DateChooser

2005-11-15 Thread Aldo Bucchi
Manish,

Changing the style of any individual day sounds like a reasonable
feature request.
But then the problem would be the means to specify the style... given
that there are an infinite number of days...

I can't think of an elegant way of doing it. But then again, I haven't
had any coffee so far today. Anyone?

mx:DateChooser getDayStyleCallback=getDayStyle /

public function getDayStyle( day:Date ):CSSStyleDeclaration
{
  // custom logic to create a CSSStyleDeclaration and return it when appropriate
  // it will override any other on the chain
}



On 11/15/05, Manish Jethani [EMAIL PROTECTED] wrote:
 On 11/15/05, keishichi2001 [EMAIL PROTECTED] wrote:
  Flex 2.0
 
  Can i display a day on DateChooser either Bold or Italic?
  i'm gonna build calendar application and if a day has any plans, then
  the day should be displayed bold.
  Can i do this?

 I don't think so.  There's a weekDayStyleName, and there's a
 todayStyleName, but there's no selectedDayStyleName unfortunately.

 Manish



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links









--
: Aldo Bucchi :
mobile (56) 8 429 8300


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] access to individual days on DateChooser

2005-11-15 Thread Manish Jethani
On 11/15/05, Aldo Bucchi [EMAIL PROTECTED] wrote:

 Changing the style of any individual day sounds like a reasonable
 feature request.
 But then the problem would be the means to specify the style... given
 that there are an infinite number of days...

 I can't think of an elegant way of doing it. But then again, I haven't
 had any coffee so far today. Anyone?

Exactly.

Maybe you should be able to tag dates.

 function tagDates(tagName:String, dates:Arrray):Void

Then you can specify style declarations for the given tag:

 function setTagStyleName(tagName:String, styleName:CSSStyleDeclaration):Void

Usage:

  tagDates(doctor_appoinments, [new Date(2005, 10, 25), new
Date(2005, 10, 28)]);
  setTagStyleName(doctor_appoinments,
StyleManager.getStyleDeclaration(DoctorAppointmentsStyle));

  // CSS
  DoctorAppointmentsStyle {
font-weight: bold;
  }

I'd try to implement this by subclassing DateChooser if I had the time.

Manish


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/