Skip to content

How to open QMenu for every QTable row by button click #17210

Discussion options

You must be logged in to vote

I found a solution:

<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="initial-scale=1, maximum-scale=1">
        <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet" type="text/css">
        <link href="https://cdn.jsdelivr.net/npm/quasar@2.11.5/dist/quasar.prod.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div id="q-app">
            <div class="q-pa-md">
                <q-table title="Treats" :rows="rows" :columns="columns" row-key="name" >
                    <template v-slot:body-cell-menu="props" >
                        <q-td :props="props">
                            <q…

Replies: 1 comment

Comment options

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