Comments (7)
That makes since, I'll try to do a PR today with some more documentation, thanks!
from electron-prompt.
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.
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.
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.
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.
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.
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)
- electron-prompt cannot be used if I compile a exe program
- Error: Image could not be created from \n HOT 2
- Suggestion : Allow 'minimizable' for BrowserWindow in opts HOT 1
- Include a LICENSE file at the root of the repo HOT 4
- Validate form on Enter/return key pressed HOT 5
- Feature Request: allow creating an inescapable prompt HOT 1
- If you're using this in electron-react-boilerplate...
- Prompt window closes immediately for some Linux users HOT 2
- Preview electron-prompt HOT 2
- Label and Input issue HOT 3
- ERR_FILE_NOT_FOUND (-6) loading HOT 1
- [feature request]Add a 'swapButtons' option
- Add typescript support? (`d.ts` file) HOT 2
- Use `@electron/remote` instead of importing it from `electron` as it will be deprecated in Electron version 14 HOT 5
- testing example prompt: label and input field not displayed, cancel and ok buttons unstyled HOT 2
- Issue with promise HOT 1
- Add support for MacBook's touchbar
- Using a single JS file to do the prompt
- Can't make it work with Electron 19
- [feature request] Multi prompt for example having 2 or 3... input forms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-prompt.