Carpose.de - Documentation
Carpose.de
  • React Integration
    • Getting Started
    • Demo
    • 360° Interior Viewer
    • 360° Exterior Viewer
    • Image Slider Viewer
    • Employee List
    • Search Form
    • CO2 Efficiency Label
  • Angular Integration [DEPRECATED]
    • Getting Started
    • Slider
    • 360° Interior Viewer
    • 360° Exterior Viewer
Powered by GitBook
On this page
  • HTML Attributes
  • JavaScript Events
  • Example
  • CodePen
  1. Angular Integration [DEPRECATED]

360° Interior Viewer

<div id="carpose-interior-viewer" data-offer-number="carpose-de"></div>

HTML Attributes

The HTML snippet requires the id filled with the value carpose-interior-viewer to initialize the component. For the mapping between the car ad on your website and Carpose its mandatory to provide at least the data-id or data-offer-number field.

Data Attribute
Type
Example Value
Description

id

string

carpose-interior-viewer

Required to initalize the component

data-id

int

46649

Internal ID of the Carpose

data-offer-number

string

carpose-de

External ID of an provider like Netconnection or CarZilla

JavaScript Events

The component fires certain events for certain conditions to hook into the process.

Event
Description

carpose-interior-viewer-loaded

Event is thrown if the viewer was loaded successfully

carpose-interior-viewer-failed

Event is thrown if the viewer has thrown an exception while loading. E.g. no images found or car ad itself not found

Example

var viewer = document.getElementById('carpose-interior-viewer');

viewer.addEventListener('carpose-interior-viewer-loaded', function f() {
    // do whatever you want
});

CodePen

PreviousSliderNext360° Exterior Viewer

Last updated 1 year ago