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-card

67min

Card component used mostly in custom components

The schema defines the following properties:

Property

Type

Required

Description

type

component.card

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false



options

Card Options

true



instanceId (InstanceId | Expression)

when (Expression | boolean)

options (Card Options, required)

Properties of the options object:

Property

Type

Required

Description

children

ComponentDefaultChild[]

true

Define children components inside the card

direction

enum<string>

false

Direction of layout of components inside the card

onPress

keg-action-in-background

false

Action that will be triggered by pressing on this component.

color

ColorOrConditionalColor

false

Background color of the card based on color or conditional color

emphasis

EmphasisDefinition

false

Define opacity of the card

children (ComponentDefaultChild[], required)

Define children components inside the card

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

direction (enum<string>)

Direction of layout of components inside the card

This element must be one of the following enum values:

  • row
  • column

Default: "column"

onPress (keg-action-in-background)

Action that will be triggered by pressing on this component.

color (ColorOrConditionalColor)

Background color of the card based on color or conditional color

emphasis (EmphasisDefinition)

Define opacity of the card



Sub Schemas

The schema defines the following additional types:

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)

BasicColor (enum<string>)

This element must be one of the following enum values:

  • color1
  • color2
  • color3
  • color4
  • color5
  • color6
  • color7
  • color8
  • color9
  • color10
  • color11
  • color12
  • color13
  • color14

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

ColorOrConditionalColor (primary | BasicColor | string | object[])

The object must be any of the following types:

ColorOrConditionalColor (BasicColor)

ColorOrConditionalColor (string)

ColorOrConditionalColor (object[])

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

The array object has the following properties:

EmphasisDefinition (extra-low | low | low-medium | medium | high | string)

The object must be any of the following types:

EmphasisDefinition (string)

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)



Updated 25 Sep 2023
Did this page help you?
PREVIOUS
jc-button
NEXT
jc-checkbox
Docs powered by
Archbee
TABLE OF CONTENTS
instanceId (InstanceId | Expression)
when (Expression | boolean)
options (Card Options, required)
children (ComponentDefaultChild[], required)
direction (enum<string>)
onPress (keg-action-in-background)
color (ColorOrConditionalColor)
emphasis (EmphasisDefinition)
Sub Schemas
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)
BasicColor (enum<string>)
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>)
ColorOrConditionalColor (primary | BasicColor | string | object[])
ColorOrConditionalColor (BasicColor)
ColorOrConditionalColor (string)
ColorOrConditionalColor (object[])
EmphasisDefinition (extra-low | low | low-medium | medium | high | string)
EmphasisDefinition (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)
Docs powered by
Archbee
Copyright © 2023 Jigx, Inc. All rights reserved. Terms of Service