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
UI

jc-custom-component

65min

(JCCustomComponentInlineConfig | JCCustomComponentReferenceConfig)

Custom component defined in the components folder.

The object must be any of the following types:

(JCCustomComponentInlineConfig)

(JCCustomComponentReferenceConfig)



Sub Schemas

The schema defines the following additional types:

JCCustomComponentInlineConfig (component.custom-component)

Custom component defined in the components folder.

Properties of the JCCustomComponentInlineConfig object:

Property

Type

Required

Description

type

component.custom-component

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false



options

Custom Component Options

true



instanceId (InstanceId | Expression)

when (Expression | boolean)

options (Custom Component Options, required)

Properties of the options object:

Property

Type

Required

Description

children

ComponentDefaultChild[]

true



children (ComponentDefaultChild[], required)

The object is an array with all elements of the type ComponentDefaultChild.

Additional restrictions:

  • Minimum items: 1

ComponentDefaultChild (jc-avatar | jc-bar-chart | jc-button | jc-card | jc-entity | jc-expander | jc-form | jc-icon | JCImageOnCustomComponentConfig | jc-interactive-image | jc-line-chart | jc-location | jc-pie-chart | jc-stage | jc-stepper | jc-text | jc-trend | JCVideoPlayerOnJigConfig | jc-view | jc-web-view)

The object must be any of the following types:

ComponentDefaultChild (jc-avatar)

ComponentDefaultChild (jc-bar-chart)

ComponentDefaultChild (jc-button)

ComponentDefaultChild (jc-card)

ComponentDefaultChild (jc-entity)

ComponentDefaultChild (jc-expander)

ComponentDefaultChild (jc-form)

ComponentDefaultChild (jc-icon)

ComponentDefaultChild (JCImageOnCustomComponentConfig)

ComponentDefaultChild (jc-interactive-image)

ComponentDefaultChild (jc-line-chart)

ComponentDefaultChild (jc-location)

ComponentDefaultChild (jc-pie-chart)

ComponentDefaultChild (jc-stage)

ComponentDefaultChild (jc-stepper)

ComponentDefaultChild (jc-text)

ComponentDefaultChild (jc-trend)

ComponentDefaultChild (JCVideoPlayerOnJigConfig)

ComponentDefaultChild (jc-view)

ComponentDefaultChild (jc-web-view)

FormChildrenFields (jc-text-field | jc-checkbox | jc-email-field | jc-number-field | jc-dropdown | jc-date-picker | jc-signature-field | jc-media-field | jc-avatar-field)

The object must be any of the following types:

FormChildrenFields (jc-text-field)

FormChildrenFields (jc-checkbox)

FormChildrenFields (jc-email-field)

FormChildrenFields (jc-number-field)

FormChildrenFields (jc-dropdown)

FormChildrenFields (jc-date-picker)

FormChildrenFields (jc-signature-field)

FormChildrenFields (jc-media-field)

FormChildrenFields (jc-avatar-field)

ResizeMode (enum<string>)

This element must be one of the following enum values:

  • contain
  • cover
  • stretch
  • center

JCImageURISource (Image Uri Source)

Properties of the JCImageURISource object:

Property

Type

Required

Description

uri

string | string

true



uri (string | string, required)

The object must be any of the following types:

uri (string)

JCVideoPlayerOnJigConfig (component.video-player)

Properties of the JCVideoPlayerOnJigConfig object:

Property

Type

Required

Description

type

component.video-player

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false



options

Video Player Options jigs

true



instanceId (InstanceId | Expression)

when (Expression | boolean)

options (Video Player Options (jigs), required)

Properties of the options object:

Property

Type

Required

Description

url

string | string

true

URL of the video

title

string | Expression | TextWithFormat | TextLocale

false

Title of the video

subtitle

string | Expression | TextWithFormat | TextLocale

false

Subtitle of the video

ratio

Ratio

false

Aspect ratio of the video (default = 16:9, only for non-YouTube videos)

autoplay

boolean | string

false

Autoplay the video (default = true)

loop

boolean | string

false

Loop the video (default = true)

onPress

keg-action-in-background

false

Action Keg component that will be triggered by pressing on this image.

url (string | string, required)

URL of the video

The object must be any of the following types:

url (string)

title (string | Expression | TextWithFormat | TextLocale)

Title of the video

subtitle (string | Expression | TextWithFormat | TextLocale)

Subtitle of the video

ratio (Ratio)

Aspect ratio of the video (default = 16:9, only for non-YouTube videos)

autoplay (boolean | string)

Autoplay the video (default = true)

The object must be any of the following types:

autoplay (string)

loop (boolean | string)

Loop the video (default = true)

The object must be any of the following types:

loop (string)

onPress (keg-action-in-background)

Action Keg component that will be triggered by pressing on this image.

Ratio (enum<string>)

This element must be one of the following enum values:

  • 16:9
  • 4:3

JCImageOnCustomComponentConfig (component.image)

Properties of the JCImageOnCustomComponentConfig object:

Property

Type

Required

Description

type

component.image

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false



options

object

true



instanceId (InstanceId | Expression)

when (Expression | boolean)

options (object, required)

Properties of the options object:

Property

Type

Required

Description

title

string | Expression | TextWithFormat | TextLocale

false

Title that could be displayed on/next to the image based on current context.

subtitle

string | Expression | TextWithFormat | TextLocale

false

Subtitle that could be displayed on/next to the image based on current context.

resizeMode

ResizeMode

false

Determines how to resize the image when the frame doesn't match the raw image dimensions.'cover': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).'contain': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).'stretch': Scale width and height independently, This may change the aspect ratio of the src.'center': Scale the image down so that it is completely visible, if bigger than the area of the view. The image will not be scaled up.

source

JCImageURISource

true

The image source (either a remote URL or a local file resource). The currently supported formats are png, jpg, jpeg, bmp, gif, webp (Android only), psd (iOS only).

size

ImageSizeConfig | flexible

false



onPress

keg-action-in-background

false

Action Keg component that will be triggered by pressing on this image.

title (string | Expression | TextWithFormat | TextLocale)

Title that could be displayed on/next to the image based on current context.

subtitle (string | Expression | TextWithFormat | TextLocale)

Subtitle that could be displayed on/next to the image based on current context.

resizeMode (ResizeMode)

Determines how to resize the image when the frame doesn't match the raw image dimensions.

'cover': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).

'contain': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).

'stretch': Scale width and height independently, This may change the aspect ratio of the src.

'center': Scale the image down so that it is completely visible, if bigger than the area of the view. The image will not be scaled up.

source (JCImageURISource, required)

The image source (either a remote URL or a local file resource). The currently supported formats are png, jpg, jpeg, bmp, gif, webp (Android only), psd (iOS only).

size (ImageSizeConfig | flexible)

The object must be any of the following types:

size (ImageSizeConfig)

onPress (keg-action-in-background)

Action Keg component that will be triggered by pressing on this image.

ImageSizeConfig (Static Size)

Properties of the ImageSizeConfig object:

Property

Type

Required

Description

height

number | string

false

Change constrain of image height. Remember to use a proper resizeMode toachieve the best results in all different device resolutions

width

number | string

false

Change constrain of image width. Remember to use a proper resizeMode toachieve the best results in all different device resolutions

height (number | string)

Change constrain of image height. Remember to use a proper resizeMode to achieve the best results in all different device resolutions

The object must be any of the following types:

height (string)

Default: 196

width (number | string)

Change constrain of image width. Remember to use a proper resizeMode to achieve the best results in all different device resolutions

The object must be any of the following types:

width (string)

JCCustomComponentReferenceConfig (component.custom-component)

Custom component defined in the components folder.

Properties of the JCCustomComponentReferenceConfig object:

Property

Type

Required

Description

type

component.custom-component

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false



inputs

JigInputs |

false

Inputs for the component that will be passed as parameters inside the custom component

componentId

string

true

ID of the component to be rendered. Mostly the name of the component file

instanceId (InstanceId | Expression)

when (Expression | boolean)

inputs (JigInputs | )

Inputs for the component that will be passed as parameters inside the custom component

componentId (string, required)

ID of the component to be rendered. Mostly the name of the component file

Updated 25 Sep 2023
Did this page help you?
PREVIOUS
jc-checkbox
NEXT
jc-date-picker
Docs powered by
Archbee
TABLE OF CONTENTS
(JCCustomComponentInlineConfig | JCCustomComponentReferenceConfig)
(JCCustomComponentInlineConfig)
(JCCustomComponentReferenceConfig)
Sub Schemas
JCCustomComponentInlineConfig (component.custom-component)
instanceId (InstanceId | Expression)
when (Expression | boolean)
options (Custom Component Options, required)
children (ComponentDefaultChild[], required)
ComponentDefaultChild (jc-avatar | jc-bar-chart | jc-button | jc-card | jc-entity | jc-expander | jc-form | jc-icon | JCImageOnCustomComponentConfig | jc-interactive-image | jc-line-chart | jc-location | jc-pie-chart | jc-stage | jc-stepper | jc-text | jc-trend | JCVideoPlayerOnJigConfig | jc-view | jc-web-view)
ComponentDefaultChild (jc-avatar)
ComponentDefaultChild (jc-bar-chart)
ComponentDefaultChild (jc-button)
ComponentDefaultChild (jc-card)
ComponentDefaultChild (jc-entity)
ComponentDefaultChild (jc-expander)
ComponentDefaultChild (jc-form)
ComponentDefaultChild (jc-icon)
ComponentDefaultChild (JCImageOnCustomComponentConfig)
ComponentDefaultChild (jc-interactive-image)
ComponentDefaultChild (jc-line-chart)
ComponentDefaultChild (jc-location)
ComponentDefaultChild (jc-pie-chart)
ComponentDefaultChild (jc-stage)
ComponentDefaultChild (jc-stepper)
ComponentDefaultChild (jc-text)
ComponentDefaultChild (jc-trend)
ComponentDefaultChild (JCVideoPlayerOnJigConfig)
ComponentDefaultChild (jc-view)
ComponentDefaultChild (jc-web-view)
FormChildrenFields (jc-text-field | jc-checkbox | jc-email-field | jc-number-field | jc-dropdown | jc-date-picker | jc-signature-field | jc-media-field | jc-avatar-field)
FormChildrenFields (jc-text-field)
FormChildrenFields (jc-checkbox)
FormChildrenFields (jc-email-field)
FormChildrenFields (jc-number-field)
FormChildrenFields (jc-dropdown)
FormChildrenFields (jc-date-picker)
FormChildrenFields (jc-signature-field)
FormChildrenFields (jc-media-field)
FormChildrenFields (jc-avatar-field)
ResizeMode (enum<string>)
JCImageURISource (Image Uri Source)
uri (string | string, required)
uri (string)
JCVideoPlayerOnJigConfig (component.video-player)
instanceId (InstanceId | Expression)
when (Expression | boolean)
options (Video Player Options (jigs), required)
url (string | string, required)
url (string)
title (string | Expression | TextWithFormat | TextLocale)
subtitle (string | Expression | TextWithFormat | TextLocale)
ratio (Ratio)
autoplay (boolean | string)
autoplay (string)
loop (boolean | string)
loop (string)
onPress (keg-action-in-background)
Ratio (enum<string>)
JCImageOnCustomComponentConfig (component.image)
instanceId (InstanceId | Expression)
when (Expression | boolean)
options (object, required)
title (string | Expression | TextWithFormat | TextLocale)
subtitle (string | Expression | TextWithFormat | TextLocale)
resizeMode (ResizeMode)
source (JCImageURISource, required)
size (ImageSizeConfig | flexible)
size (ImageSizeConfig)
onPress (keg-action-in-background)
ImageSizeConfig (Static Size)
height (number | string)
height (string)
width (number | string)
width (string)
JCCustomComponentReferenceConfig (component.custom-component)
instanceId (InstanceId | Expression)
when (Expression | boolean)
inputs (JigInputs | )
componentId (string, required)
Docs powered by
Archbee
Copyright © 2023 Jigx, Inc. All rights reserved. Terms of Service