attach - Methods - Feedback Aide API

Feedback Aide API Methods

attach()

Renders the standard Feedback Aide interface into the provided element.

You would want to use this to render the default Feedback Aide interface into your application.

Examples

const container = document.querySelector('.container');
await sessionUI.attach(container);

Arguments

  • element HTMLElement

    The HTML element into which the Feedback Aide UI will be rendered.

Return value

Type Promise

Resolves when the Feedback Aide UI has been successfully attached and rendered within the DOM element. The promise does not return any value upon resolution.

If the container is not specified, or if the Feedback Aide UI is already attached, the promise will be rejected with an error message.

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.