4D Blog

Home Tips Extend your Qodly application with custom components

Extend your Qodly application with custom components

March 28, 2025

Tips

4D Qodly Pro already offers a wide range of native components to help you design your applications. But did you know you can take it even further? Thanks to Custom Components developed by the community, you can enhance your projects with tailor-made features!

These custom components allow you to extend 4D Qodly Pro’s capabilities by adding personalized functionalities, much like plugins and components in 4D.

In this article, we’ll explore how to use and integrate these components, along with several real-world use cases from our Performance Review application.

Performance Review Application

What is a Custom Component?

Custom Components are building blocks created by users to meet specific needs or add functionalities not covered by 4D Qodly Pro’s built-in components. Developed in React, they provide a powerful and flexible foundation for developers.

Integrating Custom Components into Qodly Studio offers several advantages:

  • Extensibility: Customize your pages to precisely match your project’s requirements.
  • Reusability: Share your components across different projects or with the Qodly community.
  • Efficiency: Save time by using pre-built components instead of starting from scratch.

How to Use a Custom Component?

  1. Choose the Component
    • Browse the GitHub repository of Custom Components and select the one you need.
  2. Download the Latest Version
    • Click on the chosen component.
    • Go to the Releases section.
    • Download the latest version (ZIP file). Make sure you are in the Releases section to get the precompiled version, not the source code.
  3. Install in Qodly Studio
    • In the Components section, click Upload component.
    • Drag and drop or select the downloaded ZIP file.
    • Click Install Component, then Reload.
    • The component will now appear under the Custom section of the available components.
    • You can now drag and drop it directly onto a Page.

 

For more information, check out the official documentation: Upload Custom Component.

How to Create Your Own Custom Component?

If you can’t find a component that meets your needs, you can create your own.

4D Qodly Pro’s API simplifies the creation of Custom Components in React with its dedicated CLI tool, @qodly/cli. This tool streamlines the initialization of a React project, allowing developers to design and share reusable components. Once integrated, these components can be added to Pages with a simple drag-and-drop.

Check out the official documentation for more details.

How Can Custom Components Enhance Your Application?

In the Performance Review application, we integrated several Custom Components to enhance the user experience. Here are some concrete examples:

  • Display a PDF document with the pdfViewer component.
  • Download a file using the fileDownload component.
  • Create a dynamic menu with the Popover component.
  • Build a year picker by combining Popover and DatePicker components.

 

Displaying Documents: Integrate a PDF with pdfViewer

We use the pdfViewer component.

Steps to integrate a PDF viewer:

  • Download and install the pdfViewer component as described in the previous section.
  • Drag the component to your page and link it to the “selectedReview.DocumentPDF” datasource, which contains the PDF. 

 

blank

  • The document is then dynamically displayed on the page.

blank

This component is particularly useful for displaying documents dynamically generated from a 4D Write Pro template and database data.

Download a PDF File with the fileDownload Component

The fileDownload component allows you to download documents.

Steps to create a file download option:

  • Install the fileDownload component.
  • Drag the component to your page and link the datasource, which contains the PDF file to download. In this case, the datasource is “selectedReview.DocumentPDF”.

 

blank

  • Once configured, a simple click allows users to download the file.

 

blank

Create an Interactive Menu with Popover

In our Performance Review application, we integrated a menu at the top of the page, placed above a Page Loader widget. This menu dynamically determines the page to be loaded within the Page Loader component. We created the menu with the popover component.

Steps to create the menu:

  • Install the popover component.
  • Drag and drop the popover component onto your page.
  • In the menu section, insert static text named Human Resources.
  • In the over section, insert three buttons named Collaborator, Reviews, and Trainings.

 

blank

     

    With a few style adjustments, we get a functional and ergonomic menu:

    blank

    By fine-tuning the design, adjusting spacing, colors, and hover effects, you can create a seamless and user-friendly navigation experience in your Qodly application.

    Create a Custom DatePicker with Popover and DatePicker

    4D Qodly Pro offers a native component for date selection. However, in the Performance Review application, we opted to use the custom DatePicker component, as its design better suited our needs. This also allowed us to demonstrate the combination of Custom Components.

    Steps to create a custom year input:

    • Drag and drop a Style Box onto your page.
    • Add a number-formatted Input Text inside the Style Box.
    • Insert a popover component inside the Style Box.
    • In the menu section of the Popover, insert an icon to open the date selector.
    • In the over section, insert the DatePicker component.
    • Add the datasource to the input text and DatePicker.

    blank

    With a few style adjustments (borders, colors, etc.), here’s the result:

    blank

    This approach combines flexibility and a customized design, enhancing the user experience.

    Next Steps

    Custom Components are a powerful solution to enhance your Qodly applications and meet specific needs without complex development. Explore the GitHub repository for components to discover even more possibilities.

    If you’ve created your own component, share it with the Qodly community!

    To go further, check out this tutorial video: How to add custom components to your Qodly app.

    Discuss

    Tags 20 R8, 21, 4D Qodly Pro, Component, Performance Review Application, Qodly Studio, Tutorial

    Latest related posts

    • September 15, 2025

      Find the right spot in your 4D Write Pro document with AI

    • September 2, 2025

      Intelligent 4D Write Pro document analysis with AI

    • August 25, 2025

      ORDA – Constructor and touched event – Detailed behaviour through a network

    Vanessa Talbot
    Vanessa Talbot
    • Product Owner •Vanessa Talbot joined 4D Program team in June, 2014. As a Product Owner, she is in charge of writing the user stories then translating it to functional specifications. Her role is also to make sure that the feature implementation delivered is meeting the customer need.Since her arrival, she has worked to define key features in 4D. She has worked on most of preemptive multi-threading new features and also on a very complex subject: the new architecture for engined application. Vanessa has a degree from Telecom Saint-Etienne. She began her career at the Criminal Research Institute as a developer for the audiovisual department. She has also worked in media and medical fields as expert in technical support, production as well as documenting new features.
    • Deutsch
    • Français
    • English
    • Português
    • Čeština
    • Español
    • Italiano
    • 日本語

    Categories

    Browse categories

    • AI
    • 4D View Pro
    • 4D Write Pro
    • 4D for Mobile
    • Email
    • Development Mode
    • 4D Language
    • ORDA
    • User Interface / GUI
    • Qodly Studio
    • Server
    • Maintenance
    • Deployment
    • 4D Tutorials
    • Generic
    • 4D Summit sessions and other online videos

    Tags

    4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

    Tags

    4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
    Subscribe to 4D Newsletter

    © 2025 4D SAS - All rights reserved
    Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


    Subscribe to 4D Newsletter

    * Your privacy is very important to us. Please click here to view our Policy

    Contact us

    Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

    * Your privacy is very important to us. Please click here to view our Policy