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

Styling (coloring) by conditional JS #124

Closed
neshorg opened this issue Dec 13, 2022 · 5 comments
Closed

Styling (coloring) by conditional JS #124

neshorg opened this issue Dec 13, 2022 · 5 comments
Labels
question Further information is requested

Comments

@neshorg
Copy link

neshorg commented Dec 13, 2022

I was wondering if it'd be possible to make (almost) every styling attribute programmable with custom JS? (just like row color in a table component)

Currently with button or other components:
image

Example of "dynamic" Row Color in a table component...and wishing to use this ability with other colors as well:
image

@neon-balcony
Copy link
Contributor

Hi @neshorg ,

Thanks for the post, actually this is already supported in Openblocks! Check this demo below, we're using a select to control another component's background color:
image

@neon-balcony neon-balcony added the question Further information is requested label Dec 14, 2022
@neshorg
Copy link
Author

neshorg commented Dec 14, 2022

Hello @neon-balcony, I can't believe I missed this!!!
I guess I was looking for the "JS" indicator which is why I thought it wasn't supported yet.
Thanks a lot for clearing that up! 👍

@neshorg neshorg closed this as completed Dec 14, 2022
@neon-balcony
Copy link
Contributor

neon-balcony commented Dec 14, 2022

True! we should have provided a JS indicator for that. Sorry about the misleading behavior, we'll fix it in the next release.

@lmx1117
Copy link
Collaborator

lmx1117 commented Dec 30, 2022

Hi neshorg, this issue is already solved, please check it out, and thanks again for your advice and patience.❤️

@neshorg
Copy link
Author

neshorg commented Jan 6, 2023

Thanks @limgit, it works great!

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

No branches or pull requests

3 participants