website logo
👥 Community🎯 Samples on GitHub🚦 System Status
💡 Guides
🚀 Examples
🍕 Developer Reference
⚡️ Changelog
🎥 Video Library
Navigate through spaces
⌘K
Overview
Reference
Actions
Data
UI
Widgets
Docs powered by
Archbee
Reference
Actions

ja-set-state

20min


Sub Schemas

The schema defines the following additional types:

JASetStateOnButtonConfig (action.set-state)

Properties of the JASetStateOnButtonConfig object:

Property

Type

Required

Description

type

action.set-state

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false

When the property is set to 'false', the action will not execute. Default is 'true'.

options

Set State Action Options

true

Options related to Jig Actions on bottom panel

instanceId (InstanceId | Expression)

when (Expression | boolean)

When the property is set to 'false', the action will not execute. Default is 'true'.

options (Set State Action Options, required)

Options related to Jig Actions on bottom panel

Properties of the options object:

Property

Type

Required

Description

title

string | Expression | TextWithFormat | TextLocale

true

Title of action displayed on a button.

icon

icon-name | string

false

Icon of action displayed on a button.

style

object

false

More of them can be true. It will be evaluated based on priority.

isHidden

boolean | string

false

Hides the button when `true`

state

string

true



value

string | number | boolean | string

true



title (string | Expression | TextWithFormat | TextLocale, required)

Title of action displayed on a button.

icon (icon-name | string)

Icon of action displayed on a button.

The object must be any of the following types:

icon (icon-name)

icon (string)

style (object)

More of them can be true. It will be evaluated based on priority.

isHidden (boolean | string)

Hides the button when true

The object must be any of the following types:

isHidden (string)

state (string, required)

Additional restrictions:

  • Regex pattern: ^=@ctx\.solution\.state\.[a-zA-Z][a-zA-Z0-9_-]{0,48}[a-zA-Z0-9]$

value (string | number | boolean | string, required)

The object must be any of the following types:

value (string)

JASetStateInBackgroundConfig (action.set-state)

Properties of the JASetStateInBackgroundConfig object:

Property

Type

Required

Description

type

action.set-state

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false

When the property is set to 'false', the action will not execute. Default is 'true'.

options

Set State Action Options

true

Options related to Jig Actions on bottom panel

instanceId (InstanceId | Expression)

when (Expression | boolean)

When the property is set to 'false', the action will not execute. Default is 'true'.

options (Set State Action Options, required)

Options related to Jig Actions on bottom panel

Properties of the options object:

Property

Type

Required

Description

state

string

true



value

string | number | boolean | string

true



state (string, required)

Additional restrictions:

  • Regex pattern: ^=@ctx\.solution\.state\.[a-zA-Z][a-zA-Z0-9_-]{0,48}[a-zA-Z0-9]$

value (string | number | boolean | string, required)

The object must be any of the following types:

value (string)



Updated 25 Sep 2023
Did this page help you?
PREVIOUS
ja-reset-state
NEXT
ja-submit-form
Docs powered by
Archbee
TABLE OF CONTENTS
Sub Schemas
JASetStateOnButtonConfig (action.set-state)
instanceId (InstanceId | Expression)
when (Expression | boolean)
options (Set State Action Options, required)
title (string | Expression | TextWithFormat | TextLocale, required)
icon (icon-name | string)
icon (icon-name)
icon (string)
style (object)
isHidden (boolean | string)
isHidden (string)
state (string, required)
value (string | number | boolean | string, required)
value (string)
JASetStateInBackgroundConfig (action.set-state)
instanceId (InstanceId | Expression)
when (Expression | boolean)
options (Set State Action Options, required)
state (string, required)
value (string | number | boolean | string, required)
value (string)
Docs powered by
Archbee
Copyright © 2023 Jigx, Inc. All rights reserved. Terms of Service