Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Cabrillo JS data types

These are common data types used by Cabrillo JS APIs.

Parent Topic:Client mobile API reference

Cabrillo.Attachment

Defines an attachment.

NameTypeDescription
content_typeStringThe attachment content type.
extStringThe attachment file extension.
file_nameStringThe full file name of the attachment including the extension.
sys_created_byStringThe user name of the user that created the attachment.
sys_idStringThe attachment record sys_id.
sys_updated_onStringThe date the attachment record was updated.
table_nameStringName of the table containing the record to which the attachment is attached.
table_sys_idStringThe sys_id of the record that to which the attachment is attached.
thumbnailStringThe URL for the image thumbnail of the attachment. Only applies to image attachments.

Cabrillo.AttachmentOptions

Defines attachment options.

NameTypeDescription
isSingleSelectionBooleanOptional. Flag that indicates whether the document picker for uploading files allows multi-selection. Valid values: - true: Only one file to upload can be selected at a time. - false: Multiple files to upload can be selected at a time. Default: False

Cabrillo.Button

Defines a button. Different interface contexts may support a subset of a button's properties.

NameTypeDescription
backgroundColorStringBackground color of the button or badge. A string containing hex, RGB, HSL, or an x11-named color.Note: The color can't be set for buttons in the navigation bar. The color can be set for bottom buttons.
badgeCountNumberNumber value to display on the button's badge.
buttonIdStringRequired. Unique id for the button. This value is returned in the button action payload to indicate which button the user tapped.
buttonStyleStringUsed to customize the style of the button.
enabledBooleanIndicates whether the button is enabled.
imageNameStringSpecifies an image. Possible values are: - add: Displays an add button. - back: Displays a back arrow image to navigate back. - cart: Displays a shopping cart. - close: Displays an X image to navigate back. - edit: Displays an edit button. - filter: Displays a filter button. - menu: Displays a menu button. - search: Displays a search button.
textColorStringThe text color of the badge or button. A string containing hex, RGB, HSL, or an x11-named color.Note: The color can't be set for buttons in the navigation bar. The color can be set for bottom buttons.
titleStringTitle of the button. The string should be localized.

Cabrillo.ModalResponse

Contains the result passed from a modal window that was dismissed.

NameTypeDescription
resultsObjectThe result from the dismissed modal window.

Cabrillo.NavigationRequest

Specifies a request to navigate to a list or record.

NameTypeDescription
tableStringThe table to navigate to. Required for both list and record navigation.
sysIdStringThe sys_id of the record to navigate to. Required for record navigation.
queryStringAn encoded query for the requested list. Can be used to seed values for record navigation requests.
viewStringThe list or record view.

Cabrillo.Rect

Contains the location and dimensions of a rectangle.

NameTypeDescription
xNumberThe x origin of the rectangle.
yNumberThe y origin of the rectangle.
widthNumberThe width in points.
heightNumberThe height in points.

Cabrillo.Spinner

Defines a spinner.

NameTypeDescription
maskBooleanOptional. Determines whether to display a mask behind the spinner.Valid values: - true: Displays a mask behind the spinner. - false: Does not display a mask behind the spinner. Default: false
maskColorStringColor of the mask, if enabled.