Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Multiple Input Feature #91

Open
2 tasks
rjjrbatarao opened this issue Jun 24, 2024 · 3 comments
Open
2 tasks

[Feature]: Multiple Input Feature #91

rjjrbatarao opened this issue Jun 24, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@rjjrbatarao
Copy link

rjjrbatarao commented Jun 24, 2024

What do you want?

A new feature! to add multiple input in one confirmable popup

Why do you want it?

A new feature! I have to add records to a database it requires mutiple input

How do you implement it?

A new feature!
something like array in InputPopup

       let name, age, gender;

        new InputPopup([{
          id: "popupTypeName",
          title: "Name",
          value: name,
          numeric: false,
        },
        {
          id: "popupTypeAge",
          title: "Age",
          value: age,
          numeric: true,
        },
        {
          id: "popupTypeGender",
          title: "Gender",
          value: gender,
          numeric: false,
        },
]).show()
          .on("confirm", (arr) => {
            GUI.warn(`NEW Record: ${arr[0]} ${arr[1]}, ${arr[2]}`);
            drawGui();
});

Are you interested in developing this feature?

  • Yes, I am interested in developing this feature
  • No, I am not interested in developing this feature
@rjjrbatarao rjjrbatarao added the enhancement New feature or request label Jun 24, 2024
@Elius94
Copy link
Owner

Elius94 commented Jun 24, 2024

Yeah! it seems to be a nice improvement! :)
Would you like to contribute?

@rjjrbatarao
Copy link
Author

Hello @Elius94 I'll try to implement this on my spare time, I hope you can provide some guidance where I can poke from the source code :)

@Elius94
Copy link
Owner

Elius94 commented Jun 26, 2024

It would be so helpful :) thank you!
Feel free to ask me something.

In the code, you have to look at InputPopup.ts file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants