Re: [FlexJS] List Structure

2016-11-26 Thread Carlos Rovira
Hi Alex, I tried with you recent commit and selection is not working. The examples is similar to what you posted:

[FlexJS] className manipulation

2016-11-26 Thread Carlos Rovira
Hi. with CSS class we need to insert and remove class without affect the rest of them. So I propose to introduce two methods: appendClassName (className:String):Boolean; removeClassName (className:String):Boolean; This methods will be based on RegExp to see if the className is already in the Str

Re: [FlexJS] className manipulation

2016-11-26 Thread Alex Harui
Hi Carlos, Who is making these calls, the component developer or the application developer? What percentage of people need to make such calls? It might just be better to have a utils class so folks who need it can manipulate any list of strings. Also remember that the typeNames property is suppo

Re: [FlexJS] List Structure

2016-11-26 Thread Alex Harui
Hmm. Works for me. Make sure you've cleaned and built everything. Do you get any exceptions in the console? -Alex On 11/26/16, 4:35 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >I tried with you recent commit and selection is not working. The examples >is simil

Re: [FlexJS] className manipulation

2016-11-26 Thread Josh Tynjala
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList classList should probably be used, when available. Basically, anything except IE9. - Josh On Nov 26, 2016 4:54 AM, "Carlos Rovira" wrote: > Hi. > > with CSS class we need to insert and remove class without affect the rest > of

Re: [FlexJS] List Structure

2016-11-26 Thread Carlos Rovira
No errors and I build with maven so first there's a clean. I upload a commit with the list, could you build it and see it? The main difference I think I could have with other project is the excluded default CSS: -compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css 2016-11-2

Re: [FlexJS] className manipulation

2016-11-26 Thread Carlos Rovira
@Alex, in MDL all is className-based and we need to add and remove without duplicating it, so I think is for me (developer) to provide an easy MDL API, but all users will use this behind and if they need something new, they will need to use it directly. I think this will be very used. typeNames wi

Re: [FlexJS] className manipulation

2016-11-26 Thread piotrz
Hi Carlos, I thought that our minimum is IE9. If yes - we need probably some wrapper which utilize this class provided by Josh and treat accordingly IE9. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.co

Re: [FlexJS] className manipulation

2016-11-26 Thread Alex Harui
Seems like if we could implement ClassList as a utility class. I can think of lots of apps that are less dynamic that won't need this capability. If ClassList takes an IUIBase it could grab the classList if it exists. For IE9, someone could some day provide a plugin that would parse the classNam