Skip to content

Components Events

You can subscribe to the component events. In cases of successful and unsuccessful work, the following events will be triggered:

For the document-reader component - document-reader
For the camera-snapshot component - camera-snapshot

For example:

const component = document.getElementsByTagName('camera-snapshot')[0];
component.addEventListener('camera-snapshot', () => alert('Event!'));
Back to top