Giter Site home page Giter Site logo

Comments (4)

asiandrummer avatar asiandrummer commented on May 2, 2024 1

Sorry it took long to respond! I'd like to revisit this.
I think this would be a good-to-have feature, enabling GraphiQL to be a source of documentations as well. To start it'd be great if the doc explorer (via GraphiQL props) would accept props to specify the initial status (e.g. isOpen and an entry to display). This way at the GraphiQL installation this 'status' could be determined and passed into GraphiQL components.

from graphiql.

alexanderchan avatar alexanderchan commented on May 2, 2024

Currently, there doesn't appear to be, it is just a part of state and doesn't read from props to determine if it should start open:

https://github.com/graphql/graphiql/blob/master/src/components/GraphiQL.js#L178

The other interesting part of the code would be where it determines if the DocExplorer should be open.

https://github.com/graphql/graphiql/blob/master/src/components/GraphiQL.js#L337

from graphiql.

swyxio avatar swyxio commented on May 2, 2024

checking in from the future. i also want this and am implementing it in my fork

from graphiql.

acao avatar acao commented on May 2, 2024

this is a good feature to note for the doc viewer plugin for version 1.x

from graphiql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.