Consumer view example

14-11-2018
A minimal working example would be: ```typescript S.addRoute("/consumer/amura/ebookings/reservations", reservationsHandler) function reservationsHandler() { let view = new amura_consumer.View("ebookings"); let waitPanel = S.create("div", "waitPanel", view.body) new S.Spinner(null, null, waitPanel) S.setView(view) S.getJson({ url: "/amura/ebookings/reservations.api", onSuccess: data => { S.clear(view.body) // ... render the content } }) } ``` The first argument is a class name that serves as a namespace for all the depending styles.
Frontend Consumer

Amura