-
Notifications
You must be signed in to change notification settings - Fork 131
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
FR: current key as className #54
Comments
I think css isn't a good solution, maybe provide a custom render method? |
Why isn't css a good solution? I just want to style certain parts, using a custom render method seems like overkill |
There is such an example: {
"name": "aa",
"children": {
"name": "bb"
}
} If I add the |
Hmm yeah I see your point. But I'm thinking of the added complexity of a custom renderer. I think if you add the key |
I would like to be able to add specific css to certain nodes from a certain JSON key.
So for example, all text nodes are now
vjs-value vjs-value__string
but I'd like it when I use the following JSON:That it would turn into
vjs-value vjs-value__string stackTrace
. Or maybevjs-key-stackTrace
to avoid existing CSS names.In my case, I want to set
white-space: pre-line
to this specific strack trace string, otherwise it's quite unreadable.The text was updated successfully, but these errors were encountered: