aharui commented on issue #593: AdvancedDataGrid, groupedColumns does not work
URL: https://github.com/apache/royale-asjs/issues/593#issuecomment-569870691
 
 
   OK, the reason it isn't running for you is that you have to use the 
`-js-dynamic-access-unknown-members` compiler option because you are using 
plain objects in the example and the minifier will rename the field names 
without that option.  Here's the compiler command-line that worked for me:
   
   `js/bin/mxmlc +configname=flex -js-dynamic-access-unknown-members 
src/ADGColumnGroup.mxml`
   
   Adding that option will make your code larger.  Some people have different 
opinions, but in my opinion the best practice in Royale is to not use plain 
objects and create data classes instead.  Then you won't need that compiler 
option.  Adding data classes will also make your code bigger, but it I think it 
can also make it smaller depending on how many accesses there are to the 
object's properties.  But with data classes you will also get compiler checking 
that you didn't mis-type a property name and various data-binding warnings will 
go away, which should improve your productivity.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to