Jig Types

jig.default

6min

Type jig.default is the most versatile

 allowing you to create a

with various setup options such as:

  • A form
  • A list
  • The
    
    which can be a part of the jig.composite
  • Used with a combination of different components and actions.



Jig Default Preview
Jig Default Preview


Configuration options

Core structure



children

Add the UI elements (Components) 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

 use title: ' ' or add an expression.

Other options

The jig.default is the most versatile

available allowing you to create a variety of screens. Many options are available for configuration on this

, see jig-default-specification for a list of the additional options.

Examples and code snippets 



Jig.default as a Form

Form jig
Form jig


Examples:

See the full default-form.jigx code example in GitHub.

Datasource:

See the full datasource code example for dynamic data in GitHub.



default-form.jigx
datasources
default.jigx
index.jigx


Jig.default as a List

Default jig as a list
Default jig as 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.



Using the code below requires data in the database, the jigx.sample solution has the data provided for products. You can use the products.csv file in GitHub and upload it via the Data configuration in

.

default-list-dynamic.jigx
datasources
default.jigx


Other examples of jig.default

Employee default jig
Employee default jig


Examples:

See the full code sample with static data in GiltHub. 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.

Using the code below requires data in the database, the jigx.sample solution has the data provided for employees. You can use the employee.csv file in GitHub and upload it via the Data configuration in

.

employee-detail-dynamic.jigx
datasources
default.jigx

Document image




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.

Using the code below requires data in the database, the jigx.sample solution has the data provided for products. You can use the products.csv file in GitHub and upload it via the Data configuration in

.

default-product-detail-dynamic.jigx
datasources
default.jigx
index.jigx


See also



Updated 24 Jul 2024
Doc contributor
Did this page help you?