Welcome to the Node Electron Plugin Prompts repository! This project allows you to create custom dialogs, prompts, or forms for your Electron applications using simple HTML and CSS templates. Whether you need a dropdown menu, input fields, or other UI elements, this plugin provides an easy way to enhance your Electron app's user experience.
- Customizable Dialogs: Easily create dialogs that match your app's design.
- HTML & CSS Templates: Use straightforward HTML and CSS to style your prompts.
- Multiple Input Types: Support for various input types like text, dropdowns, and checkboxes.
- Easy Integration: Simple setup and integration into your existing Electron app.
To get started with the Node Electron Plugin Prompts, follow these steps:
-
Clone the Repository:
git clone https://github.com/biuu-ui/node-electron-plugin-prompts.git cd node-electron-plugin-prompts
-
Install Dependencies:
Run the following command to install the required packages:
npm install
-
Build the Plugin:
After installation, build the plugin using:
npm run build
To use the Node Electron Plugin Prompts in your Electron app, follow these steps:
-
Import the Plugin:
In your main JavaScript file, import the plugin:
const prompts = require('node-electron-plugin-prompts');
-
Create a Prompt:
Use the following code to create a simple prompt:
prompts.createPrompt({ title: 'Sample Prompt', message: 'Please enter your name:', inputType: 'text' }).then(response => { console.log('User response:', response); });
-
Customize the Prompt:
You can customize the prompt further by adding more options. For example:
prompts.createPrompt({ title: 'Choose an Option', message: 'Select your favorite fruit:', inputType: 'dropdown', options: ['Apple', 'Banana', 'Cherry'] }).then(response => { console.log('Selected fruit:', response); });
prompts.createPrompt({
title: 'Enter Your Email',
message: 'Please provide your email address:',
inputType: 'text'
}).then(response => {
console.log('Email entered:', response);
});
prompts.createPrompt({
title: 'Select Your Language',
message: 'Choose your preferred programming language:',
inputType: 'dropdown',
options: ['JavaScript', 'Python', 'Java', 'C#']
}).then(response => {
console.log('Language selected:', response);
});
prompts.createPrompt({
title: 'Select Your Hobbies',
message: 'Choose your hobbies:',
inputType: 'checkbox',
options: ['Reading', 'Gaming', 'Traveling', 'Cooking']
}).then(response => {
console.log('Hobbies selected:', response);
});
We welcome contributions to the Node Electron Plugin Prompts project! If you have suggestions for improvements or want to report a bug, please follow these steps:
-
Fork the Repository: Click on the "Fork" button in the top right corner of the repository page.
-
Create a New Branch: Create a new branch for your feature or bug fix.
git checkout -b feature-name
-
Make Your Changes: Implement your changes and commit them.
git commit -m "Add feature or fix bug"
-
Push Your Changes: Push your changes to your forked repository.
git push origin feature-name
-
Create a Pull Request: Go to the original repository and click on "New Pull Request."
This project is licensed under the MIT License. See the LICENSE file for details.
For the latest releases and updates, please visit our Releases section. Here, you can download the latest version of the plugin and view the change log.
Feel free to check the Releases section for updates and new features as they become available.
Thank you for checking out the Node Electron Plugin Prompts! We hope this tool enhances your Electron applications and makes your development process smoother. If you have any questions or need assistance, don't hesitate to reach out.