Buzzy Documentation
  • Welcome to Buzzy
  • Getting Started with Buzzy
    • Getting Started Guide
      • 1. Starting with Buzzy AI
      • 2. The Buzzy Workspace
      • 3. Create a new app
      • 4. Preview and edit your app
      • 5. Manage your app
      • 6. Import your app to Figma
      • 7. Using Buzzy with Figma
      • 8. The Buzzy Figma plugin
      • 9. Creating a simple app
      • 10. Screens and navigation
      • 11. Forms, fields and data
      • 12. Data-driven menus & content
      • 13. Data edit and delete
      • 14. Search, sort and filter
      • 15. User login and registration
    • Buzzy AI or Figma first?
  • Working with Buzzy
    • Buzzy AI
      • About Buzzy AI
      • Kickstart with AI
      • Enhance with Figma
      • Extend with Code
      • Example prompts
      • Tips
      • Troubleshooting Buzzy AI
      • AI tokens and pricing
    • Buzzy for Figma
      • About Buzzy for Figma
      • Learning Figma
      • Creating a new app directly in Figma
        • Step by step version
      • Automarkup
      • Responsive layouts
      • Responsive layout checklist
      • Overflow and scrolling
      • Forms and fields
      • Images and galleries
      • Logging users in to your app
      • Theming
      • Troubleshooting Buzzy for Figma
      • Plugin error messages
    • Buzzy Deployment & App Stores
      • Setting up your custom Buzzy app
      • Connecting your own server
      • Apple & Google App Stores
    • Buzzy Marketplace
      • Buzzy Accreditation
    • Buzzy Project Guide
    • Buzzy App Examples
      • Buzzy Templates
      • AI-Powered Chat App
      • AI-Powered Custom T-Shirt App
      • AI-Powered Strategy App
      • AI-Powered Stock Portfolio App
      • Golf Course Finder
      • Personal Finance App with Figma AI
    • FAQs
  • The building blocks
    • Datatables, Fields & Data
      • Introduction to Fields
      • Basic Fields
        • Text
        • Number
        • Date
        • Location
        • Toggle
        • Checkboxes
        • Checklist
        • Selectlist
        • Rating
        • Attachments
        • Images
        • Signature
        • Audio Recording
        • Embedded Link
      • Advanced Fields
        • Formula
        • Sub tables
        • Linked Table field
        • Button
        • Teams
        • Payment
        • Notification
        • Event
        • User Vote
      • Display Fields
        • Header
        • Display Text
        • Image
        • Divider
      • Metadata Fields
        • Author Name
        • Author Phone
        • Submitted
      • Filter Controls
        • Viewers
        • Tags
        • Condition
      • External Fields
        • IBM Connections File
        • Box File
      • Sort Fields
      • Formulas
      • Datatable to Datatable Relationships
      • Security and Access Control
      • Displaying a field based on the values of other fields
      • Hiding a field based on role using a display formula
      • Importing data from a text file
      • Importing data from a URL
      • Import data from Datatable
      • Export data using Chrome
      • Export data in Browser
      • Export data using Safari
      • Datatable Field Type - Cheat Sheet
      • Troubleshooting Fields & Data
    • Code widget (custom code)
      • Code Widget Fields - Advanced Guide
      • New Async API + React HTML Components
      • Examples
        • Image Galley Slideshow
        • Ratings Average and Distribution
        • Event Locations Map
    • Analytics
  • Troubleshooting
    • App Error Codes
      • Action Error
      • App Not Found
      • Component Missing
      • Component Not Set
      • Component Settings Error
      • Datatable Not Found
      • Datatable Not Set
      • Field Not Found
      • Field Not Set
      • No App Selected
      • No Context Name
      • No Screens Found
      • Runtime Exception
      • Screen Not Found
      • Screen Not Set
    • Troubleshooting Buzzy AI
    • Troubleshooting Figma
  • REST API
    • Buzzy REST API
      • Integrating 3rd party applications
      • REST API
        • login
        • createappwithprompt
        • MicroApp Data Operations
          • microappdata
          • microappdata/row
          • insertmicroapprow
          • updatemicroapprow
          • removemicroapprow
          • microappchild
        • User & Organization Operations
          • userid
          • insertteammembers
          • teammembers
          • insertorganization
          • insertteam
        • enforceteammembership
      • Node.js API Client
      • Datatable Rules
      • Datatabledata Tutorial
      • Integrating with Mailchimp
      • Python Access Datatable
  • Advanced Deployment Settings
    • Installation
      • Pre-installation Planning
      • Deployment
        • Introduction to deployment
        • Minikube install guide
        • AWS ECS Fargate install guide
        • HCL Connections install guide
        • Azure AKS install guide
        • Windows container install guide
      • Buzzy settings
      • Whitelabelling Buzzy
      • Certificates
      • Release Management
    • Performance and Reliability
    • Security
      • Platform
      • Users and Roles
      • Datatables
      • Audit Trail
Powered by GitBook
On this page
  • Add the code widget field to the Movie table
  • Generate the slideshow code
  1. The building blocks
  2. Code widget (custom code)
  3. Examples

Image Galley Slideshow

For this example we'll use the default Movie database app that you can generate in Buzzy using the third default prompt and add a slideshow widget to it.

Create this app using the Create New App button in the Buzzy workspace and selecting the third default prompt that starts with "Create a simple movie repository app...". Click through the steps in the app creation wizard to generate the brief and data model, select the "mint" theme, and then wait for the screens and sample data to be generated.

After the app is created, click on "Edit app" to open the AI assisted app editor.

Add the code widget field to the Movie table

Firstly we need to add a code widget field to the Movie table. To do that enter this prompt:

Add a code widget field to the Movie table called "slideshow".

You will be asked to confirm this change, click Yes and wait for the update to be completed.

The assistant should have added the code widget to Movie table and may also have placed it at the bottom of the Movie Details screen. Navigate to the Movie Details screen by clicking on Get Started on the landing screen, and then clicking on one of the sample movies.

If the slideshow field is not on the form, enter the prompt below and then navigate back to the Movie Details screen once it completes:

Add the slideshow field as the last field on the form.

Generate the slideshow code

To generate the slideshow code, switch to edit mode in the editor (using the mode toggle at the top of the screen) and then click on the blank space under the "slideshow" heading. You'll see a large blue selection, this is the code widget, but it has no code in it yet.

To generate the code, enter this prompt:

Generate code to show the images from the image stills field as a slideshow, complete with back and forward navigation, and navigation to each image directly through a row of thumbnails at the bottom. Use the Poppins font for any text and all icons and text should be white. The slides should fill be 100% width, and there should be no padding or margins around the slideshow. Leave some space at the bottom for the thumbnail strip and make sure it is centered vertically and horizontally in that space.

Confirm the change. This will take some time to generate and when the app reloads you'll need to navigate back to the Movie Details screen. If you're still in edit mode, you can hold down cmd (on a Mac) or ctrl (on Windows) when you click.

Scroll to the bottom of the screen and you should see a slideshow of the movie image gallery. If you are not already in preview mode, switch to preview to test out your new slideshow widget.

Other steps you may want to do now are to remove the image gallery field, hide the heading above the slideshow, move the slideshow to a different location on the form, etc. These can all be performed using the assistant by selecting the appropriate parts of the screen and asking the assistant to make the changes.

The last step you may want to do is remove the image gallery field that is no longer necessary. Switch to edit mode again, select the image gallery field, and enter the prompt:

Remove this field from the screen

This will also take some time to complete, and you'll need to navigate back to the Move Details screen again to see the result.

This concept of using a code widget field to build a custom display can be applied to any field type, and can be used to combined multiple field into a single display widget.

PreviousExamplesNextRatings Average and Distribution

Last updated 5 months ago

Slideshow widget - note that your generated widget may look different than this example