How to use multiline tooltips? #17574
Answered
by
sekzerd
sekzerd
asked this question in
Ideas / Proposals
-
Hi, I am using quasar. It's seem like Tooltip not support multiline text, and i can't find any option in docs. If It's possible add multiline text in Tooltip? |
Beta Was this translation helpful? Give feedback.
Answered by
sekzerd
Oct 14, 2024
Replies: 1 comment
-
Founded solution <div v-for="item in items">
<q-tooltip anchor="top middle" self="center middle">
<div v-for="lines in get_tooltip(item)">
{{ lines }}
</div>
</q-tooltip>
</div> let items = [{ label : "foo", value : 0 },{ label : "bar", value : 1 }];
function get_tooltip(item){
let ret = [];
ret.push("label:"+item.label);
ret.push("value:"+item.value);
return ret;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sekzerd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Founded solution
like this