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
supposed to help control the set of classnames that "never change" so
folks can just set and reset className.

Thanks,
-Alex


On 11/26/16, 4:54 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:

>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 String or not and return a boolean true if the className was inserted
>or false if it's not (so the class was already there).
>
>I will do this in UIBase, but checking the hierarchy, I think this is
>something very close to HTML so maybe className manipulation should be in
>Element class?
>
>I'll be working on this in the meanwhile and always we can refactor to
>other place
>
>-- 
>Carlos Rovira
>http://about.me/carlosrovira

Reply via email to