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

Possibility to store annotation / metadata in cells, cols and rows #4508

Open
mormitech opened this issue May 27, 2024 · 0 comments
Open

Possibility to store annotation / metadata in cells, cols and rows #4508

mormitech opened this issue May 27, 2024 · 0 comments
Labels
Suggested Feature A suggested feature that is waiting review

Comments

@mormitech
Copy link

Describe the solution you'd like
Since there are a couple of bugs that I ran into around "edited" flag lost on certain occasions (#4506) and @olifolkerd recommended to store code changed (setValue) cells in separate external arrays, I would propose to have metadata: any field for columnComponents, rowComponents and cellComponents each. This is a common feature I like with certain solutions where developer allows programmers to use the built in objects to store custom info when needed. Gives flexibility and circumvents some messy code.

Since it would be an any type field, devs could use it to store any custom unimplemented flags or values in the component object itself, directly. This would eliminate the issues coming with external array sync and all sorts of other issues.

E.g.: I try to store setValue changed cells in an array but with some row redraw all their elements are lost. This way I could just append a flag to the cell's JSON metadata to store my own flag and remove it when not needed.

Additional context
Similar to this question from the past:

#2418

@mormitech mormitech added the Suggested Feature A suggested feature that is waiting review label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Suggested Feature A suggested feature that is waiting review
Projects
None yet
Development

No branches or pull requests

1 participant