Hi guys,

In Flex we only had local id's, correct? If we wanted to access something 
somewhere else, we usually used "parent". Shouldn't this be possible in flexjs 
to? Sort of, only use local ids and have these translated to html id's by the 
compiler, by adding the local is to the parents id. I think with this we had 
the same concept as flex had and it would prevent a lot of problems. A special 
way to force global id wild make other concepts possible.

Chris



Von meinem Samsung Galaxy Smartphone gesendet.


-------- Ursprüngliche Nachricht --------
Von: piotrz <piotrzarzyck...@gmail.com>
Datum: 22.05.17 20:51 (GMT+01:00)
An: dev@flex.apache.org
Betreff: Re: FlexJS MXML ids and classNames

Hi Alex,

I was going to expand my thoughts on same concerns what Chris mention. If we
introduce "localId" which will be responsible for identifying components in
MXML we need to also generate "id" - based on those "localId" - cause in
many cases "id" will be required in HTML once we set "localId".

Some external library may require those "id".

Summarize a bit we have so far following ideas:
1) Introduce "localId" or "mxmlId" as entity which is not translated to HTML
2) Introduce "globalId" which will be translated to HTML, but "id" not
necessary (Josh Am I understand you right ?) - But that would break existing
applications, cause we have right now "id" translation to HTML.

Related to introduced new property:
1) Have the compiler check that HTML ids are not used more than once. (Harbs
- Globally ?, If id is used more than once in many views ?)
2) Ability set HTML ids  (Harbs I need a bit more elaboration on this, cause
I do not fully understand)
3) "id" should be generated based on "localId" or make generation based on
Chris's suggestions (Piotr, Chris)

If I miss something or didn't understand enough please correct me.

Thanks for a good discussion on that!
Piotr




-----
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MXML-ids-and-classNames-tp54361p61745.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to