Methods
updateOptions - Upates the initial options
updateOptions
: OverhypedAI(“updateOptions”, config)
- This method allows you to programmatically update the initial options provided in
initUser
orconnect
(IfautoConnect: false
is provided ininitOrg
). - Invoke this method after using the
initOrg
,initUser
andconnect
(IfautoConnect: false
is provided ininitOrg
) 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.