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

26min

The schema defines the following properties:

Property

Type

Required

Description

type

component.checkbox

true



instanceId

string

true



when

Expression | boolean

false



options

Checkbox Options

true



instanceId (string, required)

when (Expression | boolean)

options (Checkbox Options, required)

Properties of the options object:

Property

Type

Required

Description

label

string | Expression | TextWithFormat | TextLocale

true

Label is displayed as placeholder when no value.

icon

icon-name | string

false

Trailing icon.

helperText

string | Expression | TextWithFormat | TextLocale

false

Helper text is displayed only when there is no errorText.

errorText

string | Expression | TextWithFormat | TextLocale

false

Text displayed when field's value is not valid. When not empty it displays isNegative style as well.

style

object

false

Define style which checkbox can have.

isAutoFocused

boolean

false

If true it will get focus immediately after it is displayed to user.

isRequired

boolean | string

false

True when the field is required. Useful when you use it in form submission.

isOptionalLabelHidden

boolean | string

false

If the field is optional you can turn off the "(optional)" label if you want.

isIgnored

boolean | string

false

When true, the field will be ignored when submitting the form.

isHidden

boolean | string

false

If true it will be hidden to user.

initialValue

boolean | string

false

Initial value of the relevant field. You can use this to preset value, so user doesn't need to add anything and use this "default".

value

boolean | string

false

The value to show for the field. Text field is a controlled component, which means the internal value will be forced to match this value prop if provided. In most cases, you don't need to use this.

onChange

keg-action-in-background

false

Action Keg component that will be triggered when value is changed

nextProperty

string

false

Name of the property you want to focus next in form when you use "submit" on virtual keyboard.

color

object[]

false

Changing color of field based on conditions. First evaluated to true will be used.

onPress

keg-action-in-background

false

OnPress actionOverwrites main check / uncheck functionality.

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

Label is displayed as placeholder when no value.

icon (icon-name | string)

Trailing icon.

The object must be any of the following types:

icon (icon-name)

icon (string)

helperText (string | Expression | TextWithFormat | TextLocale)

Helper text is displayed only when there is no errorText.

errorText (string | Expression | TextWithFormat | TextLocale)

Text displayed when field's value is not valid. When not empty it displays isNegative style as well.

style (object)

Define style which checkbox can have.

Properties of the style object:

Property

Type

Required

Description

isDisabled

boolean | string

false

Whether or not action are disabled

isDanger

boolean | string

false

Follow danger color

isWarning

boolean | string

false

Follow warning color

isPositive

boolean | string

false

Follow positive color

flex

number

false

Flex property if rendered inside row

isDisabled (boolean | string)

Whether or not action are disabled

The object must be any of the following types:

isDisabled (string)

isDanger (boolean | string)

Follow danger color

The object must be any of the following types:

isDanger (string)

isWarning (boolean | string)

Follow warning color

The object must be any of the following types:

isWarning (string)

isPositive (boolean | string)

Follow positive color

The object must be any of the following types:

isPositive (string)

isRequired (boolean | string)

True when the field is required. Useful when you use it in form submission.

The object must be any of the following types:

isRequired (string)

isOptionalLabelHidden (boolean | string)

If the field is optional you can turn off the "(optional)" label if you want.

The object must be any of the following types:

isOptionalLabelHidden (string)

isIgnored (boolean | string)

When true, the field will be ignored when submitting the form.

The object must be any of the following types:

isIgnored (string)

isHidden (boolean | string)

If true it will be hidden to user.

The object must be any of the following types:

isHidden (string)

initialValue (boolean | string)

Initial value of the relevant field. You can use this to preset value, so user doesn't need to add anything and use this "default".

The object must be any of the following types:

initialValue (string)

value (boolean | string)

The value to show for the field. Text field is a controlled component, which means the internal value will be forced to match this value prop if provided. In most cases, you don't need to use this.

The object must be any of the following types:

value (string)

onChange (keg-action-in-background)

Action Keg component that will be triggered when value is changed

color (object[])

Changing color of field based on conditions. First evaluated to true will be used.

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

The array object has the following properties:

onPress (keg-action-in-background)

OnPress action

Overwrites main check / uncheck functionality.

Updated 25 Sep 2023
Did this page help you?
PREVIOUS
jc-card
NEXT
jc-custom-component
Docs powered by
Archbee
TABLE OF CONTENTS
instanceId (string, required)
when (Expression | boolean)
options (Checkbox Options, required)
label (string | Expression | TextWithFormat | TextLocale, required)
icon (icon-name | string)
icon (icon-name)
icon (string)
helperText (string | Expression | TextWithFormat | TextLocale)
errorText (string | Expression | TextWithFormat | TextLocale)
style (object)
isDisabled (boolean | string)
isDisabled (string)
isDanger (boolean | string)
isDanger (string)
isWarning (boolean | string)
isWarning (string)
isPositive (boolean | string)
isPositive (string)
isRequired (boolean | string)
isRequired (string)
isOptionalLabelHidden (boolean | string)
isOptionalLabelHidden (string)
isIgnored (boolean | string)
isIgnored (string)
isHidden (boolean | string)
isHidden (string)
initialValue (boolean | string)
initialValue (string)
value (boolean | string)
value (string)
onChange (keg-action-in-background)
color (object[])
onPress (keg-action-in-background)
Docs powered by
Archbee
Copyright © 2023 Jigx, Inc. All rights reserved. Terms of Service