Home > widget-integration > RecommendationWidgetController > props
RecommendationWidgetController.props property
Reactive signal containing the widget's initialization properties.
This signal is populated when the widget connects via the connect() method and provides reactive access to the widget ID and other initialization props. Useful for accessing widget configuration in extended methods.
Signature:
props?: Signal<RecommendationWidgetControllerProps>;
Remarks
The optional nature allows the controller to exist before connection. Always check for existence before accessing in extension code.
Example
Access widget ID in custom methods:
protected customMethod() {
  const widgetId = this.props?.value.widgetId;
  if (widgetId) {
    console.log(`Processing widget: ${widgetId}`);
  }
}