简体   繁体   中英

Set datechooser “event” based on “if”

I have a dateChooser in an app I'm working on; the app is to submit time cards.

I'm trying to figure out a way to set a color based on number of hours submitted -- ie red for less than 8, green for 8 exactly, yellow for more than 8. I already have the number of hours for that day being pulled from quick base as a number. Is there anyway set it to something like

if (hoursDateSelected <= 7){
   calendar.something = green
}

This might be what you are looking for:

Flex 4 DateChooser

Basically it is extending the component.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM