Session Viewer
A component for viewing and interacting with proctoring sessionsElement Type
proctoring/session-viewer
Usage
React Integration
JavaScript Integration
Configuration
Input Parameters
The following parameters can be passed in theconfig object:
Examples
Basic Example
Modal Example
Default Tab Example
Session Details Configuration Examples
Programmatic Control
API Reference
Element Methods
mount(selector)- Mount element to DOMopenModal(options)- Open element in modaldestroy()- Clean up and destroy elementpostMessage(data)- Send message to elementon(event, callback)- Listen for eventsoff(event, callback)- Remove event listener
Imperative API (via ref)
When using the SessionViewer component directly (not through SmarterElements), you can access these methods via ref:Component Control
enableComponents(components)- Enable one or more components with optional propertiesdisableComponents(componentNames)- Disable one or more componentsclearComponents()- Clear all enabled components (set all to false)getEnabledComponents()- Get list of currently enabled components and their properties
Session Details Tab Control
setSessionDetailsTab(tab)- Set the active tab in SessionDetails panel- Valid tab values:
'flags','checkin','chat','journey','info','computer','identity'
- Valid tab values:
getSessionDetailsTab()- Get the currently active SessionDetails tab
Session Journey
updateSessionJourney(payload)- Update the session journey with step and status information
Session Control
endSession()- End the current session
Usage Example
Modal Options
width- Modal width (string or number)height- Modal height (string or number)maxWidth- Maximum width constraintmaxHeight- Maximum height constraintdismissOnDocumentClick- Close on backdrop clickescapeClose- Close on Escape keyzIndex- Modal z-index value
This documentation was auto-generated from the element schema.
