Comments (5)
Hi! Sorry for the delay. Use the selectable
property on Table, than listen to select
on Table as well:
<b-table
:data="tableData"
selectable
@select="selected">
// Columns here
</b-table>
export default {
methods: {
selected(item) {
this.$router.push({ path: '/details/:recordId' })
}
}
}
Something like that, guess you already got the hang of it.
from buefy.
Thanks, but that's only for the row. I am looking to have an tag on the text in a single cell to click to a vue-router link. (Actually, several cells in each row with each one having its own independent tags & vue-router link.) Is that possible?
from buefy.
You mean like links in the cell? if so, use the component
property on the Column.
But a click event in the cell is not hard to implement after all.
from buefy.
Yes, like this:
Where you can dynamically generate the vue-router link with recordIds and link to them from individual table cells. So I think this would require a click event in the cell/column as in my original issue post above, but please correct me if I am not understanding the use of the component property.
from buefy.
I'm gonna think about it actually, It's probably the same use-case of #49
Edit: Just follow the mentioned issue.
from buefy.
Related Issues (20)
- b-taginput allows duplicates when using `create-tag` props. HOT 1
- Since version 0.9.26 got error "Module not found" HOT 3
- Human-readable release notes? HOT 1
- Dropdown with "hover" trigger incorrectly rendered on mobile devices HOT 12
- Navigate people to Buefy-next (Buefy for Vue3)
- Show how to install `@ntohq/buefy-next` on buefy.org HOT 1
- Problem with table headers and dates moving from 0.9.25 to 0.9.27 HOT 12
- Tooltip overflow causing issues with app height HOT 1
- [Need investigation] Huge memory leak?
- Request support for styling syntax like tailwindCSS
- Additional event for blur in autocompletes HOT 6
- [Need investigation] Problem with searching numbers with decimals in Table HOT 2
- Release v0.9.28 HOT 8
- Issues Installing Buefy with Vue2 HOT 4
- The CodePen template recommended for reproducing problems doesn't work
- How do i set buefy-next with Nuxt3. Please any documentation available. The dicumention on buefy is for vue2
- Tooltip - `AbortController` is not defined in SSR mode (Nuxt) HOT 3
- Browser tab freezes, unresponsive, plus possible memory leak with form in modal HOT 16
- Validation error state won't be reset once it is set when `grouped` and `horizontal` are combined
- proxyMiddleware error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buefy.