jig.default

Type jig.default is the most versatile jig allowing you to create a jig with various setup options such as:

  • The jig which can be a part of the jig.composite

  • Used with a combination of different components and actions.

Default jig
Default jig

Configuration options

Some properties are common to all jig types, see Common jig type properties for a list and their configuration options.

Core structure

children

Add the UI elements () under the children property, for example, component.form. Use Intellisense (ctrl+space) to select a component from the available list.

title

Provide the name of the screen. If you do not want to show a title in a jig use title: ' ' or add an expression.

Other options

The jig.default is the most versatile jig available allowing you to create a variety of screens. Many options are available for configuration on this jig.

Other options

actions

Choose from the provided list of available actions, for example, use the go-to action to open a different jig.

badge

Enhance your tabs with a badge, for instance show the number of grid-items. Add the badge property to the jig YAML with an expression.

bottomSheet

The bottomSheet element slides up from the bottom of the screen to present additional content, actions, or contextual information. See bottomSheet (Beta) for more information.

description

Give the jig a description that is displayed under the title.

expressions

Use the expressions property to set global expressions that are reusable throughout the jig.

filter

The filter property creates tabbed filter options to categorize and filter data in the jig. For more information, see the filter in the common jig type properties.

icon

The icon will be displayed on the jig widget. Start typing the name of the icon to invoke the available list in IntelliSense. See Jigx icons for information on working with icons. The icon property applies to component.jig-widget without a widgetId.

inputs

Configure inputs that allow you to receive data from other jigs and use it in the current jig.

isCollapsible

When the jig is used in a composite jig and this property is set to true, a collapse and expand icon is shown, allowing the jig to be collapsed. This is helpful if the composite jig has several jigs configured, making it easier to view and interact with the app.

isHomeButtonVisible

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 isHomeButtonVisible property to false. For more information, see the home button visibility in the common jig type properties.

isSearchable

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 isHomeButtonVisible property to false. For more information, see the filter in the common jig type properties.

isWaitingSync

Displays a waiting sync indicator.

jigId

Give the jig a unique ID that can be referenced outside the jig, for example, in state expressions.

output

Configure outputs that allow you to transfer data out of the current jig and use it in another jig. When referencing the output in another jig, use [email protected].[instance-id-of-the-jig].outputs.[key-of-output]

placeholders

Create a placeholder to show when there is no data to use yet.

state

See state for more information.

summary

Add a component that displays at the bottom of the jig. See the summary component for more information.

widgets

Add a widget in the jig. See widgets for configuration options.

Examples and code snippets

Jig.default as a Form

jig default with a form
Jig default with a form

Examples: See the full default-form.jigx code example in GitHub. Datasource: See the full datasource code example for dynamic data in GitHub.

Jig.default as a List

Default jig with a list
Default jig with a list

Examples: See the full code sample with static data in GitHub. See the full code sample with dynamic data in GitHub.

Datasource: See the full code sample for datasource for static data in GitHub.

See the full datasource code samples for dynamic data for product and sales in GitHub.

Other examples of jig.default

Default employee jig
Default employee jig

Examples: See the full code sample with static data in GitHub. See the full code sample with dynamic data in GitHub

Datasource: See the full datasource code sample for static data in GitHub See the full datasource code samples for dynamic data in GitHub

Default jig
Default jig

Examples: See full code sample with static data in GitHub See full code sample with dynamic data in GitHub.

Datasource: See the full datasource code sample for static data in GitHub. See the full datasource code sample for dynamic data in GitHub.

See also

Last updated

Was this helpful?