QuickDEV
  • ▶️Quick start
    • 🔃Overview
    • 🔑Security
  • 🎭Users management
    • 👨‍👩‍👦‍👦Members and groups
    • 🔐Permission for resources
  • 🖥️Applications
    • ➕Create applications
      • ⤴️Create application/module
      • 🔲Module
      • ✅Version and Release Management
    • 🎨Application editor
      • 👁️‍🗨️Visual components
        • ⚙️Common component settings
        • ⬆️File upload
        • 📊Charts and graphs
        • 🌄Image
        • 📋Option lists
        • 📑List view
        • ⬜Drawer
        • 🗺️Google maps
        • 📩Messages / Toast
        • 📅Calendar
        • Custom component
      • #️⃣Use markdown
      • ⌨️Keyboard shortcuts
    • 🔗Navigation
    • ⏯️Actions editor
      • ⏱️Date handling
      • 🟰Data selection & JavaScript
      • ⚡Event handlers
      • 🔎JavaScript Query
      • ✖️Dynamic variable
      • 💱Transformers
      • 🧮Data responder
      • ↕️Built-in JS functions
      • 📚Third-party libraries
    • 🖌️Styling
      • 📝Themes
      • 🖍️Customize styles
  • 🚀Database & API
    • 🔎Queries
    • 🧰Query repository
    • 📡Datasources
      • 🌎API
        • 1️REST API
        • 2️GraphQL
        • 3️Google Sheets
      • 🟠SQL Databases
        • 1️Oracle
        • 2️Microsoft SQL Server
        • 3️MySQL
        • 4️PostgreSQL
        • 5️MariaDB
      • 🟡NoSQL Databases
        • 1️MongoDB
        • 2️CouchDB
        • 3️DynamoDB
      • 🔴REDIS
      • 🟢BigData & OLAP
        • 1️Big Query
        • 2️Snowflake
        • 3️ClickHouse
        • 4️Elasticsearch
      • 🌐WebSocket
  • 💻Integrations
    • 1️ANGULAR
    • 2️HTML Pages
Powered by GitBook
On this page
  • URL
  • Base64 encoded data
  • Demo: upload and display an image
  • Set click preview for an image
  • Set the style of an image
  1. Applications
  2. Application editor
  3. Visual components

Image

PreviousCharts and graphsNextOption lists

Last updated 1 year ago

Use the Image component to convey information in your apps in a vibrant manner. QuickDEV allows you to add an image via URL or base64-encoded data.

URL

Drag the Image component onto the canvas or into a Container. Upon clicking the Image component, the Properties tab appears on the right. Here, you can set the URL to display the desired image.

Base64 encoded data

You also have the option to insert an image via base64-encoded data. Ensure that the encoded image source begins with either data:image/PICTURE_FORMAT;base64, or simply data:image;base64,

Ensure that you include the comma at the end of the prefix in the following format:

  • data:image/PICTURE_FORMAT;base64, BASE64_ENCODED_IMAGE

  • data:image;base64, BASE64_ENCODED_IMAGE

Demo: upload and display an image

Below is JavaScript code that concatenates the prefix with the encoded base64 data of the uploaded file accessed via file.value[0]

{{"data:image/jpeg;base64," + file.value[0]}}

Set click preview for an image

You can activate "Support click preview" in the Properties tab to enable users to preview the image in its full size. Hovering over the image reveals the preview icon (👁 Preview), which users can click to preview the image.

Set the style of an image

Within the Properties > Style section, you can adjust the border color and specify the border radius in pixels or by percentage.

A typical scenario for displaying base64-encoded images involves integrating a component with an Image component.

🖥️
🎨
👁️‍🗨️
🌄
File Upload