No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Add button action in q-table

    Framework
    1
    2
    1035
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eloy.silva last edited by

      Hello everyone
      I need to add an action button to my table, but it doesn’t show in the final result

      <q-table
              dense
              :data="AppGroupUserList"
              :columns="columns"
              row-key="USR_ERP_ID"
              separator="horizontal"
               :visible-columns="visibleColumns"
            >
              <template v-slot:top-right>
                <q-btn color="primary" icon-right="delete_forever" no-caps />
              </template>
              <template v-slot:body-cell-action="props">
                <q-td :props="props">
                  <q-btn
                    color="negative"
                    icon-right="delete"
                    no-caps
                    flat
                    dense
                    @click="deleteval(data.indexOf(props.row))"
                  />
                </q-td>
              </template>
            </q-table>
      
      
      
      
      

      btn-delete.jpg

      1 Reply Last reply Reply Quote 0
      • E
        eloy.silva last edited by

        I answer myself
        add in columns:

        { name: 'action', label: 'Action', field: 'action' }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post