Jigs (screens)
In Jigx we call screens in the app - jigs, there are different types of jigs depending on the type of layout you want in your app.

Jig Types
The following jigs types are available:
Calendar
Use this jig to build a calendar to display scheduled events and create new events based on a date and time.
Composite
This jig allows you to display multiple jigs on one screen where you would otherwise be unable to combine the functionality in the same way. For example, a form and list are on the same screen, where the form on completion populates the list with data.
Default
The default jig is the most versatile and provides the majority of functionality and a combination of different components and actions. The most common use of a default jig is for forms and lists.
Gallery
The gallery jig provides a way to browse and swipe through a collection of images.
Grid
Create grid layouts in your app, organizing content into rows and columns for a visually consistent and flexible interface. It helps align elements proportionally, ensuring a structured design.
List
Table
The table jig displays structured data in rows and columns, allowing users to view and interact with multiple records within the app.
Tabs
Navigate between different jigs with ease, enhancing the user experience by providing an organized layout. These tabs are placed at the top of the screen to ensure a sleek and intuitive interface.
Considerations
All jig files have the format name.jigx. You can add the name, and we will automatically add the extension.jigx for you.
All jig files must be located under the jigs folder in Jigx Builder.
Jig Templates are available for all the jig types, making it easy to insert and configure.
For your jigs to be included in the app solution, they must either be added to the index.jigx file (to appear on the home screen) or referenced by another jig that is included in the index.jigx, for example, is referenced by the go-to or go-back actions.
A jig can be used to create a home hub.
Group widgets provide the functionality to be able to access jigs from inside other jigs.
By default, the home button is visible on all jigs except the Home Hub. You can hide the home button on a jig if needed by setting the
isHomeButtonVisibleproperty tofalse.
How to create a jig

Open Jigx Builder and Create a Jigx solution.
Right-click the jigs folder and select New File...
Type a unique name for the jig and press enter, the name must not contain any spaces. The jig file opens in the editor.
Use IntelliSense (cntrl + space) in the file and select the type of jig you will build.
Once the jig type is selected, the file populates with the core YAML structure ready for you to configure.
Add your values or remove the YAML that is not required, for example, if you do not want a header image at the top of the screen, remove the
header:section.The Jigx Builder validates the YAML; any issues are shown in red and need to be corrected before you can publish the solution.
If you want the jig to be accessed from the Home Hub, add the jig to the tabs in index.jigx file. Otherwise, reference the jig from another jig for it to be included in the app.
Publish the solution.
How to edit a jig
Open your solution in Jigx Builder.
Click on the jig you want to edit, the editor opens.
Make the required changes.
Save and publish the solution.
How to delete a jig
Open your solution in Jigx Builder.
Click on the jig you want to edit, the editor opens.
Make the required changes.
Save and publish the solution.
How to combine jigs
There are two options available for joining jigs which depend on your requirements.
1.Create one screen that contains many jigs
Use the
jig.compositetype to combine multiple jigs into one.Provide the
jigIdfor each of the jigs to be included.The order of the
jigIdsconfigured in the YAML determines the order in which the jigs appear in the composite jig.There are properties available to hide the title of each jig (
isTitleHidden).Provide
inputsinto each jig if required.
title: My hike information
type: jig.composite
children:
- jigId: hike-details
isTitleHidden: false
- jigId: hiking-friends
isTitleHidden: true
- jigId: hike-images
isTitleHidden: true
- jigId: Location
isTitleHidden: true2.Add widgets to a jig to navigate to other jigs
Add the
widgetsproperty to a jig. Configure thesizeandjigIdfor all the jigs you want to navigate to from the current jig.The order of the
jigIdsconfigured in the YAML determines the order in which the widgets appear in the jig.
title: Yoga Wellness Week
type: jig.default
datasources:
yoga:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- default/events
query: SELECT
id,
'$.EventName',
'$.StartDate',
'$.Time',
'$.Venue',
'$.Type'
FROM [default/events] WHERE '$.Type' = 'Yoga'
children:
- type: component.image
options:
height: 200
resizeMode: cover
source:
uri: https://images.unsplash.com/photo-1524901548305-08eeddc35080?w=700&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8Y2FsbXxlbnwwfHwwfHx8MA%3D%3D
- type: component.section
options:
title: Yoga Wellness Week
children:
- type: component.countdown
options:
size: medium
expiresAt: "2024-01-25T17:30:00+02:00"
# Add widgets to the jig to allow for navigation between jigs.
- type: component.widgets
options:
children:
- size: "4x2"
jigId: yoga-list
- size: "1x1"
jigId: my-bookings
- size: "1x1"
jigId: yoga-location
- size: "1x1"
jigId: yoga-info
- size: "1x1"
jigId: yoga-mealsHow to pass data from one jig to another (input & outputs)
In certain scenarios, there is a need to transfer data, such as customer IDs or opportunity IDs, from one jig to another. This can be effectively accomplished by utilizing inputs and outputs. See Passing data using inputs and Passing data using outputs to understand the configuration options.
See Also
The following examples with code snippets are provided:
Last updated
Was this helpful?