Hi Nicolas, I believe my answer will only partially satisfy you. About containers exists in FlexJS (Royale) you can read more here [1]. I would strongly suggest look first on our examples [2]. We do not have ViewStack container, so I believe that is something which can be implemented and maybe pushed to our repository. We definitely suffer for a lack of documentation, when I was started to dig into the framework I simply look into how actually each component is implemented [3] - architecture is pretty clean in my opinion and more composition oriented than inheritance. Quite helpful can be this website [4] - That is the slight description about our main principle PAYG.
As for the components itself there are module Basic [3] which contains our native components which should look same in SWF and JS, but as you probably know it is not fully true and not necessary should be. There is also module MDL [5][6][7][8] which is wrapper around existing components + some implementation of some additional things like "dataProvider" in List. Encourage you to look into the code of components as I suggested it for Basic. This module do not have SWF representation - it is simply compile to JS only. I hope we will be better and better with documentation and some day new users will not have to dig into the code. I can say also from my experience that once you will figure out how everything is working productivity is quite good. [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Container+Classes+and+Layouts [2] https://github.com/apache/royale-asjs/tree/develop/examples/flexjs [3] https://github.com/apache/royale-asjs/tree/develop/frameworks/projects/Basic/src/main/flex/org/apache/flex/html [4] https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=71013028 [5] https://github.com/apache/royale-asjs/tree/develop/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl [6] https://github.com/apache/royale-asjs/tree/develop/examples/flexjs/MDLExample [7] https://getmdl.io/components/index.html [8] https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components Thanks, Piotr 2017-09-28 17:58 GMT+02:00 Idylog - Nicolas Granon <[email protected]>: > We need to « re-implement » a ViewStack container component class for use > in > a FlexJS (test) project. > > Is there a general walkthrough explaining (in details) the principles when > creating a container component for FlexJS (we are mostly interested in the > js output, not SWF). > > We have read the docs at > https://cwiki.apache.org/confluence/display/FLEX/Creating+Components but > it > is rather control-oriented (textInput, Slider…). > > We also plan to have TabNavigator etc. but I believe that we can recreate a > ViewStack container, creating other containers won’t be so difficult. > > Also, is there some document around explaining how to implement layout > containers ? (as opposed to navigation containers). > > Or maybe we do not have the correct approach and reimplementing MX > components does not fit in the “FlexJS” philosophy ? > > Many thanks in advance > > Nicolas Granon > > > > > -- Piotr Zarzycki mobile: +48 880 859 557 skype: zarzycki10 LinkedIn: http://www.linkedin.com/piotrzarzycki <https://pl.linkedin.com/in/piotr-zarzycki-92a53552> GitHub: https://github.com/piotrzarzycki21
