Widget 2.0
    • PPL Access Point Widget — Implementation Guide for E-shops
    • 1. Quick Start — Integration in 5 Minutes
    • 2. Embedding the Widget into a Page
    • 3. Static HTML Integration
    • 4. Integration: Vanilla JavaScript
    • 5. Integration: PHP
    • 6. Integration: React
    • 7. Complete API Reference
    • 8. Advanced Scenarios
    • 9. Communication Channels Overview
    Switch to czech

    9. Communication Channels Overview

    Summary table of all ways to communicate with the widget:
    ChannelExample
    HTML attribute (string)config='{"viewMode":"modal"}'
    JS property (object)widget.widgetConfig = { viewMode: "modal" }
    JS method (partial merge)widget.configure({ defaultCountry: "SK" })
    React 19 JSX propwidgetConfig={{ viewMode: "modal" }}
    When to use each channel:
    HTML attribute — for static configuration where parameters do not change
    JS property — for setting the entire configuration at once from JavaScript
    JS method configure() — for changing individual parameters at runtime (partial merge)
    React 19 JSX prop — for React 19+ applications with automatic property detection
    Modified at 2026-04-22 12:05:40
    Previous
    8. Advanced Scenarios
    Built with