简体   繁体   中英

Flex - DateField change event

I am using DateField as editable one in my application. And I did change event for filter function. Now I want to do the same function for each keystroke. I tried ValueCommit. But it's did nothing. My questions are:

  1. Is there an event one can use when someone changes the actual value in a DateField's TextInput control?
  2. How to use this textinput as a normal TextField component?

Thank you.

You can use keyUp event. It will be rised every time when you release pressed button in the TextField. I think this will make the trick.

<mx:DateField  keyUp="datefield1_keyUpHandler(event)" editable="true"/>

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