Skip to content

Passing dom element to SwaggerUIBundle #3492

@oysteinsigholt

Description

@oysteinsigholt

Hi!

I am integrating Swagger Ui with a developer portal using Barba.js and having some issues instantiating Swagger Ui.

I want to start instantiating Swagger Ui as soon as a a new page is loaded, and my issue arises from the fact that the old page is still in the DOM.

As of now I have wait until the old DOM is unloaded before ininstantiating Swagger Ui because there is two divs with the same id during the transition, and since SwaggerUIBundle accepts only a dom_id i have found no reliable way of selecting the correct one without modifying its attributes.

Is it possible to pass a DOM element to SwaggerUIBundle instead of an id of one to avoid this issue?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions