Coder Social home page Coder Social logo

Comments (5)

rafaberaldo avatar rafaberaldo commented on May 18, 2024 4

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.

gwvt avatar gwvt commented on May 18, 2024

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.

rafaberaldo avatar rafaberaldo commented on May 18, 2024

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.

gwvt avatar gwvt commented on May 18, 2024

Yes, like this:
screen shot 2017-05-02 at 4 53 56 pm
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.

rafaberaldo avatar rafaberaldo commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.