SoluCX Survey Widget - SDK Web Component
A customizable survey widget component built with Vue.js that can be integrated into various web frameworks. This widget allows you to embed SoluCX surveys directly into your applications with support for different display modes and comprehensive event handling.
Features
- 🎯 Multiple widget types: inline, modal, bottom bar, bottom box (left/right)
- 📱 Responsive design with customizable dimensions
- 🔒 Security-focused with domain validation and data sanitization
- 📊 Built-in analytics and user behavior tracking
- ⚡ Framework agnostic - works with Vue, React, Angular, and more
- 🎨 Customizable styling and positioning
- 📡 Real-time event handling and callbacks
Installation
Configuration
The widget requires the following props:
| Prop | Type | Required | Description |
|---|---|---|---|
soluCxKey | string | ✅ | Your SoluCX survey key |
widgetType | WidgetType | ✅ | Display mode: 'inline', 'modal', 'bottomBar', 'bottomBox', 'bottomBoxLeft' |
widgetData | WidgetData | string | ✅ | Survey data (object or JSON string) |
widgetOptions | WidgetOptions | string | ❌ | Configuration options |
Widget Data Structure
Widget Options
Basic Usage Examples
Direct Import and Use
Web Component (Vanilla HTML/JS)
CDN Usage
Framework Integration Examples
Vue.js
React
Angular
Events
The widget emits the following events:
| Event | Description | Payload |
|---|---|---|
widgetOpened | Widget is displayed | userId: string |
widgetClosed | Widget is closed | - |
widgetCompleted | Survey completed | userId: string |
widgetError | Error occurred | error: string |
widgetResized | Widget height changed | height: number |
widgetPageChanged | Survey page changed | page: string |
Widget Types
inline: Embedded directly in page contentmodal: Overlay modal with backdropbottomBar: Fixed bottom bar across full widthbottomBox: Fixed bottom-right corner boxbottomBoxLeft: Fixed bottom-left corner box
Development
Support
For support and questions, please contact the SoluCX team or refer to the official documentation.