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

Support for Nested Objects and Arrays #24

Open
thboomsma opened this issue Mar 4, 2024 · 3 comments
Open

Support for Nested Objects and Arrays #24

thboomsma opened this issue Mar 4, 2024 · 3 comments

Comments

@thboomsma
Copy link

Hi this is probably more a feature request than in issue.

I've been tweaking around jqPropertyGrid to handle Nested Objects by flattening and unflattening them. It works but when it gets to arrays we need a different strategy and way of handling them.
Arrays of objects or values require different handling, is that possible with built in functionality?
If not could you please provide some pointers/hookups where and how we could create the support for them?

Thanks
Theo

@ValYouW
Copy link
Owner

ValYouW commented Mar 5, 2024

You are stretching this little tool way beyond what it was built for... :)
Unfortunately I don't have any time to work on it, nor I really remember how it works....

@gswilcox01
Copy link
Contributor

Not sure it helps, but I commited an example 7 years ago of a customType named "textArea", and it takes in an array of strings, and outputs an array of strings (1 per line from the text area).
753de06

@thboomsma
Copy link
Author

thboomsma commented Mar 6, 2024

Actually you just provided me with an amazing hook for entering arrays of values/strings/objects as inputs.
This allows these arrays to be disregarded by the jsPropgrid and we can add a nested JSON/CSV checker to validate/sanitize inputs ... We do need some sort of label but since it's nested we could use a group header for that instead... thanks alot!! Still think we gotta v2 this tool

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

3 participants