---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Cabrillo JS data types

# Cabrillo JS data types {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

These are common data types used by Cabrillo JS APIs.

## Cabrillo.Attachment {#ariaid-title2}

Defines an attachment.
{#cabrillo-attachment-data-type__table_t2c_pkw_2bb__entry__3}

| Name | Type | Description |
|-|-|-|
| content_type | String | The attachment content type. |
| ext | String | The attachment file extension. |
| file_name | String | The full file name of the attachment including the extension. |
| sys_created_by | String | The user name of the user that created the attachment. |
| sys_id | String | The attachment record sys_id. |
| sys_updated_on | String | The date the attachment record was updated. |
| table_name | String | Name of the table containing the record to which the attachment is attached. |
| table_sys_id | String | The sys_id of the record that to which the attachment is attached. |
| thumbnail | String | The URL for the image thumbnail of the attachment. Only applies to image attachments. |
[Table 1. Properties]

{#cabrillo-attachment-data-type__table_t2c_pkw_2bb}

## Cabrillo.AttachmentOptions {#ariaid-title3}

Defines attachment options.
{#cabrillo-attachOpts-data-type__table_t2c_pkw_2bb__entry__3}

| Name | Type | Description |
|-|-|-|
| isSingleSelection | Boolean | Optional. 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. {#cabrillo-attachOpts-data-type__ul_nkl_n4f_xwb} Default: False |
[Table 2. Properties]

{#cabrillo-attachOpts-data-type__table_t2c_pkw_2bb}

## Cabrillo.Button {#ariaid-title4}

Defines a button. Different interface contexts may support a subset of a button's
properties.
{#cabrillo-button-data-type__table_kq1_hmw_2bb__entry__3}

| Name | Type | Description |
|-|-|-|
| backgroundColor | String | Background 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](https://servicenow-prod.fluidtopics.net/pNN0yo77bke2yY0SLTjbdA#CV-setNavigationBarButtons_CBA_F "Set buttons in the navigation bar of the current interface."). The color can be set for [bottom buttons](https://servicenow-prod.fluidtopics.net/pNN0yo77bke2yY0SLTjbdA#CV-setBottomButtons_CBA-f "Set buttons at the bottom of the current interface."). |
| badgeCount | Number | Number value to display on the button's badge. |
| buttonId | String | Required. Unique id for the button. This value is returned in the button action payload to indicate which button the user tapped. |
| buttonStyle | String | Used to customize the style of the button. |
| enabled | Boolean | Indicates whether the button is enabled. |
| imageName | String | Specifies 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. {#cabrillo-button-data-type__ul_ywh_s1n_m3b} |
| textColor | String | The 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](https://servicenow-prod.fluidtopics.net/pNN0yo77bke2yY0SLTjbdA#CV-setNavigationBarButtons_CBA_F "Set buttons in the navigation bar of the current interface."). The color can be set for [bottom buttons](https://servicenow-prod.fluidtopics.net/pNN0yo77bke2yY0SLTjbdA#CV-setBottomButtons_CBA-f "Set buttons at the bottom of the current interface."). |
| title | String | Title of the button. The string should be localized. |
[Table 3. Properties]

{#cabrillo-button-data-type__table_kq1_hmw_2bb}

## Cabrillo.ModalResponse {#ariaid-title5}

Contains the result passed from a modal window that was dismissed.
{#cabrillo-modalResponse-data-type__table_mx2_kdb_vbb__entry__3}

| Name | Type | Description |
|-|-|-|
| results | Object | The result from the dismissed modal window. |
[Table 4. Properties]

{#cabrillo-modalResponse-data-type__table_mx2_kdb_vbb}

## Cabrillo.NavigationRequest {#ariaid-title6}

Specifies a request to navigate to a list or record.
{#cabrillo-navRequest-data-type__table_cnq_d2b_vbb__entry__3}

| Name | Type | Description |
|-|-|-|
| table | String | The table to navigate to. Required for both list and record navigation. |
| sysId | String | The sys_id of the record to navigate to. Required for record navigation. |
| query | String | An encoded query for the requested list. Can be used to seed values for record navigation requests. |
| view | String | The list or record view. |
[Table 5. Properties]

{#cabrillo-navRequest-data-type__table_cnq_d2b_vbb}

## Cabrillo.Rect {#ariaid-title7}

Contains the location and dimensions of a rectangle.
{#cabrillo-rect-data-type__table_ptb_3fb_vbb__entry__3}

| Name | Type | Description |
|-|-|-|
| x | Number | The x origin of the rectangle. |
| y | Number | The y origin of the rectangle. |
| width | Number | The width in points. |
| height | Number | The height in points. |
[Table 6. Properties]

{#cabrillo-rect-data-type__table_ptb_3fb_vbb}

## Cabrillo.Spinner {#ariaid-title8}

Defines a spinner.
{#cabrillo-spinner-data-type__table_t2c_pkw_2bb__entry__3}

| Name | Type | Description |
|-|-|-|
| mask | Boolean | Optional. 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. {#cabrillo-spinner-data-type__ul_sgs_mhk_pyb} Default: false |
| maskColor | String | Color of the mask, if enabled. |
[Table 7. Properties]

{#cabrillo-spinner-data-type__table_t2c_pkw_2bb}

