On 12/30/16, 1:38 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com> wrote: > >I really does not talk to introduce new events, in Slider, I must to get >the slider change event that the MDL control is dispatching and then make >our slider flexjs component throw a "valueChange" flexjs event. I think >most of the time we will do this since is how MDL framework controls >works. >My question was more about, if we should call "valueChange" event as is or >call it only "change" like MDL does. I think we both likes flexjs name >"valueChange"
I would prefer "change". It seems to be a common expectation. Lots of controls dispatch it. FWIW, "valueChange" is being used for properties with [Bindable] that don't specify their own event name (in regular Flex it was called "propertyChange" but not everything that changes is a property). Another thing to think about is whether you need to package up all of the things in a ValueChangeEvent like the property name, old value, and new value. The data binding code definitely needs property name to distinguish one bindable property change from another, but I think most control users don't need it and can just easily look at the current value of the control. Then the code doesn't have to waste time packaging up that extra data. Of course, other opinions are welcome... -Alex