Giter Club home page Giter Club logo

Comments (5)

gurghet avatar gurghet commented on May 29, 2024

Please explain what you have tried so far, it will help finding a solution for your issue.

from vue-table.

malaschitz avatar malaschitz commented on May 29, 2024

This is probably not possible, vue-table use v-html directive for created tr element and this is plain html. For example:

makeDetailRow: function(data) {
            return '<button class="btn btn-success" @click="console.log(\'Hi\')">Nový</button>';
 },

from vue-table.

gurghet avatar gurghet commented on May 29, 2024

In any case console.log wouldn't work since everything inside quotes is prefixed with $scope after interpolation.

from vue-table.

ratiw avatar ratiw commented on May 29, 2024

@malaschitz It is not possible. DetailRow feature only works with plain html for showing additional information that may not fit into a single row. It will never be parsed by Vue.js,

In your case, putting @click=".." there, will never work.

I would suggest you use item-actions prop to display a modal that you can put a form in it instead
so you could implement the form as Vue.js component.

Sorry I didn't have time to put more info on Detail row feature in the wiki page as I'm a bit occupied now, but will do that as soon as some works on other projects are done.

from vue-table.

ratiw avatar ratiw commented on May 29, 2024

@malaschitz In vuetable 1.5.0, you can now use a component for detail row.

from vue-table.

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.