Using HTML
Last updated
Was this helpful?
Last updated
Was this helpful?
You can draw any shape of UI on the ZEP canvas. In ZEP, UI elements are expressed through HTML.
You can bring an HTML file to a certain location using the App.showWidget()
function. In this case, the file name, alignment, as well as width and height of the widget can be configured using arguments. Please refer to the page for more information on values for alignment.
You can send the desired value to the HTML file using the sendMessage()
method to the created variable.
Write the HTML syntax as shown below (my.html) and then use addEventListener
to receive the message sent from main.js.
main.js
my.html
Please Note
- For the tutorial, we recommend setting the app type to Installable App.
- The JSON file name must be “main.” Please create a new text file and name it “main.js.”
- If you do not know how to deploy an app, please refer to the .