Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have 2 button component and i want them to be in one single row

and this is what i've done so far, Image

What I have tried:

And this is the code :
<template v-slot:[`item.action`]="{ item }">
   <v-btn depressed @click="view(item.emp_no)" color="primary">View</v-btn>
   <v-btn depressed @click="viewUpdate(item.emp_no,item.id)" 
                                               color="primary">Update</v-btn>
</template>
Posted
Updated 20-Jul-21 9:28am
v2

1 solution

First, your v-btn is not standard HTML and, so long as you use some third-party modification of HTML (or anything else) you limit those who can help you. In this case, I'll show you how you create two buttons next to one another with standard HTML.
HTML
<div>
  <button>View</button>
  <button>Update</button>
</div>


You will need to style this, of course, to make it have the appearance (size, color, etc.) you intend and, again, I suggest you stick to standard CSS3. Also, and the onclick event.

Tutorials can be found here (for free): W3Schools Online Web Tutorials[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900