Skip to main content

updateOptions : OverhypedAI(“updateOptions”, config)

  • This method allows you to programmatically update the initial options provided in initUser or connect(If autoConnect: false is provided in initOrg).
  • Invoke this method after using the initOrg, initUser and connect(If autoConnect: false is provided in initOrg) commands.
Updates the initial options. Params:
Tag (Optional) is added for non-mandatory fields
  • config: object: Target and options to update.
    • target: "widget": The target to update the options for. Currently only ‘widget’ is supported.
    • options: Partial<OverhypedAIWidgetOptions>: The options to update.
      • show: boolean (Optional): Show/Hide the widget. This has no effect on the modal.
      • positionOffset: object (Optional): Adjust the position of the widget relative to it’s initial position.
        • x: number | string (Optional): X-axis offset.
        • y: number | string (Optional): Y-axis offset.