Skip to main content
@qonto/embed-sdk / <internal> / UIElementSettings

Interface: UIElementSettings<T>

Common settings format for UI elements. Consists of three properties: uiElementName, uiElementParams, and uiElementEventListener. The uiElementName property is required and specifies the type of UI element to render. The uiElementParams property is a generic object that holds parameters that will depend on the specific UI element being created. The uiElementEventListener property is a callback function that will be invoked when the UI element emits events. It receives an event object containing the event name and optional event details. Each UI element will define its own set of events that can be listened to.

Type Parameters

T

T

Properties

uiElementEventListener()

uiElementEventListener: (event) => void

Parameters

event
UIElementEvent

Returns

void

uiElementName

uiElementName: string

uiElementParams

uiElementParams: T