Part 1 — Modal window [What is it?]
In this part, we will create a basic application with modal window. We will use the modal window as an information board.
The modal window in Supervisely appears after clicking on the launch button of the application. It can be used for at least two things:
to inform the user
to enter arguments
Table of Contents
Step 1 — HTML file
We use HTML to create the UI.
you can preview your HTML in our Application Designer
Here's our modal window:
src/modal.html
<div>
<h3>This is my first modal window app.</h3>
</div>
Simple. Isn't? Now let's add it to our config file:
config.json
{
"name": "Modal Window",
"type": "app",
"categories": [
"quickstart"
],
"description": "There will be some description",
"docker_image": "supervisely/base-py-sdk:6.1.93",
"main_script": "chapter-02-headless/part-01-modal-window/src/main.py",
"modal_template": "chapter-02-headless/part-01-modal-window/src/modal.html",
"task_location": "workspace_tasks",
"icon": "https://img.icons8.com/color/100/000000/1.png",
"icon_background": "#FFFFFF"
}
Step 2 — Results
Last updated
Was this helpful?