2
1
0

Hi,

I have been working on creating native components for Maestro and am having a little trouble working out a few things. I was wondering if it’s possible to get the source files (HTML, JSON, JS) for the built-in Avoka components so that I can use them as examples for creating my own components. I haven’t found a way to export the built-in libraries from Maestro. 

Specifically I would find it useful to see how some things were achieved using js in the Avoka components.

Thanks,

Pat

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi Pat,

      Take a look here first...Creating Maestro Native Components  if you download the toolkit you'll see templates that should explain a fair bit.  The templates are very similar to the built-ins.

      1. Patrick McPhan

        Hi Bill,

        I have seen/used this documentation but also thought it would be useful to see the built-in components too, if possible.

      2. Bill Frost

        Hi Pat,

        If you publish a form without minifying (from the publish/build options panel), you can use Chrome's F12 Developer Tools to open app.js and view the component code.  Search for app\.ng\. in app.js to see Angular directives and controllers.  In Chrome, press F12, then ctrl-o, enter app.js, enter, then ctrl-f to search.

        Note that you will only see the code for components that are present in your form, so add the ones you want to inspect.

      3. Patrick McPhan

        Thanks Bill, this will help me heaps! 

      CommentAdd your comment...