We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
i wish to custom the title, with image (). I use the option "customJs".
expected : access title element and modify it
obtained : impossible to access title element
It seems to dom is not fully loaded. Below, Js code :
window.addEventListener("load", function () { console.log("Window onload event called."); /* returns (Q : why "length: 0" ?) : .swagger-ui getElementsByClassName HTMLCollection { length: 0 } 0: <section class="swagger-ui swagger-container" data-reactroot=""> 1: <div class="swagger-ui"> length: 2 */ console.log(".swagger-ui getElementsByClassName", document.querySelector("#swagger-ui").getElementsByClassName("swagger-ui")); /* returns : .swagger-ui getElementsByClassName undefined */ console.log( ".swagger-ui getElementsByClassName", document.querySelector("#swagger-ui").getElementsByClassName("swagger-ui")[0], ); // returns : null console.log(document.querySelector("#swagger-ui .info .title")); });
Thx in advance for your help.
The text was updated successfully, but these errors were encountered:
any update ?
Sorry, something went wrong.
I'm having the same issue.
I'm using customJS in my options.
I can't get any elements using querySelector or getElementBy...
No branches or pull requests
Hello,
i wish to custom the title, with image ().
I use the option "customJs".
expected :
access title element and modify it
obtained :
impossible to access title element
It seems to dom is not fully loaded.
Below, Js code :
Thx in advance for your help.
The text was updated successfully, but these errors were encountered: