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

set css for specific entries dynamically #50

Open
FranGomezVenegas opened this issue Aug 26, 2024 · 0 comments
Open

set css for specific entries dynamically #50

FranGomezVenegas opened this issue Aug 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@FranGomezVenegas
Copy link

I know we can set css per variable type and that's great, my suggestion goes in the way of dynamically 'painting' objects by our "own-custom" rules, see below one example of what I'm suggesting to:

One property is an array and the entries having a property of is_mandatory? If the answer is YES then I want to apply one css for all the properies on this object entry, another in case of NO.

[
{"object": "fork", "is_mandatory": true}, --> Paint all this entry in red, overriding the css property for the generic usage
{"object": "spoon", "is_mandatory": false} , --> Paint all this entry in gray, overriding the css property for the generic usage
{"object": "knife", "is_mandatory": false} --> Paint all this entry in gray, overriding the css property for the generic usage
]

@FranGomezVenegas FranGomezVenegas added the enhancement New feature or request label Aug 26, 2024
@github-staff github-staff deleted a comment Aug 27, 2024
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

1 participant