Skip to content

How to use multiline tooltips? #17574

Discussion options

You must be logged in to vote

Founded solution
like this

<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;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sekzerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant