API Reference
JavaScript
Options and data attributes for the JavaScript package.
RoomViewerResourceType
type RoomViewerResourceType = 'wallart' | 'rugs' | 'flooring'RoomViewerDimensionUnit
type RoomViewerDimensionUnit = 'm' | 'cm' | 'in'RoomViewerDisplayUnit
type RoomViewerDisplayUnit = 'cm' | 'in'Options
Prop
Type
Data Attributes
| Attribute | Required | Default | Description |
|---|---|---|---|
data-neurodyn-room-viewer-dialog | No | - | Marks an element for the embed build. |
data-neurodyn-room-viewer-type | Yes | - | Resource type. Use wallart, rugs, or flooring. |
data-neurodyn-room-viewer-name | Yes | - | Title shown in the dialog header. |
data-neurodyn-room-viewer-src | No | - | Wall-art image URL. Used when type is wallart. |
data-neurodyn-room-viewer-tinuuid | No | - | The object's tinuuid. Used when type is rugs or flooring. |
data-neurodyn-room-viewer-width | No | - | Wall-art width. Used when type is wallart. |
data-neurodyn-room-viewer-height | No | - | Wall-art height. Used when type is wallart. |
data-neurodyn-room-viewer-dimension-unit | No | m | Unit used by wall-art width and height. Use m, cm, or in. |
data-neurodyn-room-viewer-display-unit | No | cm | Unit used to display UI measurements. Use cm or in. |
data-neurodyn-room-viewer-language | No | User locale | UI language override. Use en or ru. |
data-neurodyn-room-viewer-api-key | No | - | Public API key sent as x-api-key. |
data-neurodyn-room-viewer-source | No | default | Backend source mode. Use default or shopify. |