The more JS libs we work with the better, it is simply a question of who is going to do it. We already have examples that show the beginnings of using JQuery, CreateJS, the ACE Editor, Flat (a Bootstrap theme), and a more complete implementation of MaterialDesignLite. I also have an example of using a Cordova BarCode Scanner plugin in a mobile app.
I'm not familiar with Moment.js and Lodash. They look like non-UI libraries which would be integrated with Royale in a different way (via typedefs). Looks like there is TypeScript defnitions for lodash on DefinitelyTyped and Moment ships with a TypeScript definitions. HTH, -Alex On 4/30/19, 10:18 PM, "Dany Dhondt" <archeme...@mac.com.INVALID> wrote: Wouldn’t it be a nice proof of concept if we tried to implement a widely used js lib into Royale? There are a lot of js packages that are used thousands of times a day, like moment.js, lodash, … Dany > Op 1 mei 2019, om 01:13 heeft Alex Harui <aha...@adobe.com.INVALID> het volgende geschreven: > > Isn't the ACE editor already an example? Or maybe there are different scenarios for external JS usage. > > -Alex > > On 4/30/19, 2:42 PM, "Carlos Rovira" <carlosrov...@apache.org <mailto:carlosrov...@apache.org>> wrote: > > Hi, > > I'm planing to make a blog example about using external JS or CSS in Apache > Royale since people ask for it, and I think is one of the key points for > people that wants to use Royale. > My plan is to create a simple example that imports a JS script and then use > bracket access. The example in concrete will use the script for coloring > code that we use in TDJ that is external to Royale to show how we do it. > > But I think that's just one of the ways to use external JS (bracket > notation access). > I think there's more: > - dot notation -> but this required typedefs (Let me know if I'm wrong). > and in that case, I don't have clear where we can add code to typedefs to > do this. In the other way, how users can do something like this in their > codebases. For me this is unexplored terrain, so hope others that knows > about it could give some techniques, or point to some docs if we already > has something. Maybe it could be great they could write some doc in our > GitHub pages > > - More ways?? Let me know. > > I can work on this in few days , hope you could let me know about those > alternate methods I didn't control > > thanks > > -- > Carlos Rovira > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cf423a553176c417709a808d6cdf47e15%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636922847343802698&sdata=aE74z47Qoowlb3b6KZpzpd6jsRY06RIq74BNhakX5ew%3D&reserved=0 <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cf423a553176c417709a808d6cdf47e15%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636922847343812703&sdata=S%2BRaeDZ5KKI7fx6emZDjUqm2dXMPNe0OvCVpELERy%2B4%3D&reserved=0>