You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Carlos Rovira <ca...@apache.org> on 2017/01/27 17:54:41 UTC
[FlexJS] RadioButton click event
Hi Piotr,
I finish the update of MDL library. I refactored RadioButton to get events,
but again "click" is giving problems. I commented code in mdl radio button
and the example par in mdl example. Hope you could take a look to see where
is failing.
My final task with MDL initial version are:
* finish to get all icons as constants
* finish Footer mega
With that we should see if we miss something (maybe some event, or way to
update some property on a control)
with that I think I'll spend some cycles with Table component to see if we
can introduce some enhancements like the ones Sankar propose.
I refactored some components to let better prepared for a SWF version and
make them extend from the base clases of FlexJS. For example, CheckBox is
not an HTML CheckBox. The idea should be try to left HTML dependency, but
this would require more work with the rest of components, maybe not worth
it.
Thanks in advance.
--
Carlos Rovira
http://about.me/carlosrovira
Re: [FlexJS] RadioButton click event
Posted by piotrz <pi...@gmail.com>.
Hi Carlos,
I'm following your changes constantly :) I'm happy that you took this work
on docs sometimes boring but really required.
I will look into this problems with click event on Monday. :)
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-RadioButton-click-event-tp58731p58732.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] RadioButton click event
Posted by piotrz <pi...@gmail.com>.
Carlos,
Maybe in case of RadioButton we should introduce custom event
"radioButtonClick" - then we will control amount of clicks and "selected"
property should work.
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-RadioButton-click-event-tp58731p58815.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] RadioButton click event
Posted by piotrz <pi...@gmail.com>.
Hi Carlos,
I just pushed fixed for double click event on RadioButton, but it's not
ideal. With this fix our "selected" property won't work.
My solution:
- Getting all Radio buttons in group and deselect all radio (I'm using java
script function not "selected" property - that's why in unselection process
our selected property is untouched) - Look into the "unselectAll" function -
maybe you will have some other idea.
- I'm selecting clicked element
Here is what I see without my fix. Our event listener is fire two times and
source of our event is from
<http://apache-flex-development.2333347.n4.nabble.com/file/n58814/radio_click.png>
goog.events.handleBrowseEvent function inside events.js - This function is
fire two times in our ElementWrapper - fireListenerOverride. - Not sure why.
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-RadioButton-click-event-tp58731p58814.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.