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

Dynamically adding new prop via GUI #1105

Open
lingster opened this issue Sep 15, 2023 · 3 comments
Open

Dynamically adding new prop via GUI #1105

lingster opened this issue Sep 15, 2023 · 3 comments

Comments

@lingster
Copy link

Hi @matteobruni

Thanks for sharing an interesting project.

Just wondering if it is possible to update this so that we could add new props on the fly. In the example we have "group1" with 2 props: "prop1" and "prop2". Could we add a plus "+" button to the GUI, so that if you click on that it would allow you to add a "prop3" and a value for that?

Happy to at potentially submitting a PR for such as feature.

@matteobruni
Copy link
Owner

matteobruni commented Sep 15, 2023

Hi @lingster,

This could be a useful feature, I'm committed on tsParticles v3 release and I need some time for it. Feel free to submit a PR on this if you can.

A note on this feature, I think this feature should be configurable, in the new Editor constructor a flag for toggling this feature could be the solution, or even in the AddGroup function, to give the group the feature, instead of the full editor

@lingster
Copy link
Author

@matteobruni , yes I agree it should be a toogle or a flag that can be set. I'll see if I can get some time over the next couple of weeks to work on this...I think it might be better at the add group level, then users can choose which group level would have the + displayed.

@matteobruni
Copy link
Owner

The + icon can be displayed also in the top level of the editor, if I remember correctly it's the new Editor that creates it.

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

No branches or pull requests

2 participants