Part 2 — UI Rendering [Simplest UI Application]
In this part, you will learn to create a basic UI application.
Table of contents
Step 1 — HTML file
<div>
<sly-field title="INFO: Test massage"
description="this is a common template for displaying information"
style="padding-top: 0; padding-bottom: 0">
<sly-icon slot="icon" :options="{ color: '#13ce66', bgColor: '#e1f7eb', rounded: false }">
<i class="zmdi zmdi-info"></i>
</sly-icon>
</sly-field>
<sly-field title="WARNING: Test message"
description="this is a common template for displaying warnings">
<sly-icon slot="icon" :options="{ color: '#fba607', bgColor: '#ffeee3', rounded: false }">
<i class="zmdi zmdi-alert-triangle"></i>
</sly-icon>
</sly-field>
<sly-field title="ERROR: Test message"
description="this is a common template for displaying errors">
<sly-icon slot="icon" :options="{ color: '#de1212', bgColor: '#ffebeb', rounded: false }">
<i class="zmdi zmdi-alert-circle"></i>
</sly-icon>
</sly-field>
</div>Step 2 — Python Script
Step 3 — Updating debug.env && config.json
Step 4 — Results
PreviousPart 1 — While True Script [It's all what you need]NextPart 3 — APP Handlers [Handle Events and Errors]
Last updated