We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi. i cant understand onClassName option. how to use that? ex) if select city, add class to city
<v-jsoneditor v-model="cities" :options="vjsonOpt"></v-jsoneditor> <select cities..... v-model='city'> <option ...> ... <script> export default { data() { return { city: null, vjsonOpt: { mode: 'view', onClassName: function(node) { if (this.city) { if (node.field == 'london') { // set textRed } else if (node.field == 'newyork') { // set textBlue } else { } } } }, cities: { london: 'uk', newyork: 'usa' ottawa: 'canada', paris: 'france' } } }, methods: { } } </script> <style> .textRed {color: #e42e21;} .textBlue {color: #1404ee;} </style>
The text was updated successfully, but these errors were encountered:
Hi, @lng0415 You can read the jsoneditor documentation: https://github.com/josdejong/jsoneditor/blob/master/docs/api.md#configuration-options?blank
Sorry, something went wrong.
No branches or pull requests
Hi.
i cant understand onClassName option.
how to use that?
ex) if select city, add class to city
The text was updated successfully, but these errors were encountered: