Build your first Support app - Part 2: Designing the user interface

Have more questions? Submit a request

2 Comments

  • villu
    Comment actions Permalink

    I like to develop the app in Pure Javascript code, Is that correct or compulsory to use Templates ? 

    0
  • Bryan - Community Manager
    Comment actions Permalink

    Hi villu. Yes, you can use straight JavaScript. Using a template engine is described here because they can be helpful but they are definitely not necessary.

    Apps live in an iframe, so you can stick with just JS or bring in other libraries of your choosing.

    Related, know that the var client = ZAFClient.init() object that's mentioned is what connects your app code to the parent Zendesk Support product. You need to maintain that client object to perform operations back to the main product (such as client.invoke, client.get, client.set, etc).

    Templates help you reload part of the page without reloading the entire page. If you reload the entire page you may lose the 'client' object that was originally initialized with underlying query parameters from the framework. Watch for that.

    0

Please sign in to leave a comment.

Powered by Zendesk