Git Product home page Git Product logo

Comments (7)

kylecorry31 avatar kylecorry31 commented on July 20, 2024 1

That makes since, I'll try to do a PR today with some more documentation, thanks!

from electron-prompt.

Fraasi avatar Fraasi commented on July 20, 2024 1

Now that you have a nice little documentation, you really should move it from the developer branch to master. Makes it easier to find 😃

from electron-prompt.

p-sam avatar p-sam commented on July 20, 2024

Hi,

Could you provide me in more details what are missing, or lack details in the example stated in the README? I have made no real documentation other than that

from electron-prompt.

kylecorry31 avatar kylecorry31 commented on July 20, 2024

One thing that I needed to do was make a text prompt, and I had to read through the implementation code to find that I needed to have the input type as input. The example only shows the select type, so I would definitely find it useful to see how to use the other types (input, select, whatever else there is) and how to go about using them, either in docs format or examples.

from electron-prompt.

p-sam avatar p-sam commented on July 20, 2024

I see, I thought the example to be sufficient as it says about type possible values and what params are used when type is set 'input' and what params when it's on 'select'. Do you have a proposal for an example, that would be better than the one I currently have ? PR appreciated :)

from electron-prompt.

kylecorry31 avatar kylecorry31 commented on July 20, 2024

Wow, I seemed to have missed those comments haha, I might PR an example using the input type as that may be more visible than the comments on the example.

The only question on documentation I have now would be the inputAttrs and what they can be

from electron-prompt.

p-sam avatar p-sam commented on July 20, 2024

No problem, the inputAttrs are every attribute you want to put in the input element. (only used if type is input)
ex: {type: 'text', required: true} -> <input type="text" required>
{type: 'url'} -> <input type="url">

from electron-prompt.

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.