You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
I see from the graphql/graphiql README that I can customize various UI elements like this:
<GraphiQL.Logo>
My Custom Logo
</GraphiQL.Logo>
How do I go about that with graphql-java-kickstart/graphql-spring-boot? I can set certain values via application.properties/yml such as pageTitle, defaultQuery and editorTheme. But this approach does not extend to children such as Logo, Footer and Toolbar. (The later being an interesting way to add a custom button to the toolbar.)
Can you advise whether I can "set the children" in any way? Or how I should approach this in general?
Thank you
The text was updated successfully, but these errors were encountered:
It passes the props, but as you can see it just renders the plain wrapper component and currently doesn't allow customization.
To be fully flexible you would probably want to be able to add a custom HTML file in your project representing your own GraphiQL component like this example: https://github.com/graphql/graphiql/tree/master/packages/graphiql#usage-examples. And you would need a way to hook that into the starter, although at this point you might as well serve it directly yourself.
If it's just a logo you want to be able to add that might be simpler.
Don't know if anybody else has the time to take a look at this to create a PR? Otherwise it will probably take me a while before I can find the time for this one, seeing it's more of a nice to have feature right now.
I see from the graphql/graphiql README that I can customize various UI elements like this:
How do I go about that with graphql-java-kickstart/graphql-spring-boot? I can set certain values via
application.properties/yml
such aspageTitle
,defaultQuery
andeditorTheme
. But this approach does not extend to children such asLogo
,Footer
andToolbar
. (The later being an interesting way to add a custom button to the toolbar.)Can you advise whether I can "set the children" in any way? Or how I should approach this in general?
Thank you
The text was updated successfully, but these errors were encountered: