-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click on table row and redirect URL #1387
Comments
Have you tried the |
Hi @benjamincanac, Thank you for responding. I’ll give that a try thank you! |
Hi @pochat, Supposing your issue was solved? If not please tag me and will be happy to re-open issue 😄 . |
I solved it with the answer from @benjamincanac. Thank you! |
Could anyone post solution here please. |
Hi @mkraha, Here is my solution: `<script setup lang="ts"> const route = useRoute(); // Use t // To prefix the link with the locale // Fetch data from the Events and sort it by newest at the top // Detect chosen language // Initialize date variable // Append the country to the locale because Intl.DateTimeFormat expects it. if (locale.value === "fr") { if (locale.value === "mx") { //Format date. Example: Feb 3, 2025 // Use blog layout // Table const columns = [ // Listen to a row click and open the website // Selects rows in table <UTable :columns="columns" :rows="data" @select="select" class="mt-32"/> <Title> VANAS | {{ $t('generalUI.footerCareers') }} </Title> <style scoped> </style>` |
and how to make sure that the middle mouse button can be opened in a new window? |
Not sure how to do this with Nuxt UI. Isn't this a mouse or windows setting? |
I meant that if it was a link, then it would work on the middle mouse button. It turns out that you need to make the field in the table a link, but how to do this is unclear, using @select you can only process the click, but no more |
Description
Hi all,
I hope you are well.
I am using the table component, and it looks pretty slick. Can I click on a row and open a new link? For example, I have a column with website addresses. I want to click a row and open the website on a new window.
I tried adding the selected prop, but it's only one of the checkboxes. Additionally, I tried a function @click, but the Utable does not take that prop.
Would you have any ideas on how to do this?
Thank you for your time.
Here is my code, and screenshot:
The text was updated successfully, but these errors were encountered: