Hi, there
I use Vue
- I needed to set up the customize the tooltip block at the linter.
- The first image display the default apperance of the linter tooltip block.
- The second image is display as my target looks like.
- I found the manner for did it - third image.
Everything has been fine so far.
But now I would like that the tooltip header (word “Error”) was a variable, however the css field “content” needs the exact (calculated) string not the variable. The variable for this field is rejected.
For example, next variants will not work:
const hd_error = ? (..lang_test_condition...) "Error" : "L'erreur";
...
content: v-bind(hd_error)
OR
:root{
--hd-error: v-bind(hd_error);
}
content: var(--hd-error);
I know about CodeMirror Tooltip Example, but it is more general mechanism than I need - I need only LINTER tooltip adjustment.
I tested this (width vue-i18n):
severity: "warning",
message: '<div><b>'+t('hd_error')+':</b></div>'+t('errors.not_keyword')
but html tags are not interpolated.
What are the possibilities in this case?