JavaScript expressions
Examples and code snippets
Text formatting
Return a string
title: helloWorld
description: |
The function returns static text Hello World
type: jig.default
icon: dog
header:
type: component.jig-header
options:
height: small
children:
type: component.image
options:
source:
uri: https://miro.medium.com/v2/resize:fit:720/format:webp/1*M9cY0UHTbmlBfoPMCQwxYA.png
children:
- type: component.form
instanceId: myForm
options:
isDiscardChangesAlertEnabled: false
children:
- type: component.text-field
instanceId: textField
options:
label: Function Result
# Use an expression and call the JavaScript file and function in the
# file.
value: =$jsfunctions.helloWorld()Concatenate first and last name
Capitalize job title
Numbers and dates
Calculate tax plus total
Calculate loan payment
Calculate age
Distance between two cities
Days to next state holiday
Work days left in a month
Next work day
If conditions
Format phone number
Working with objects
Get employee details
Last updated
Was this helpful?