Vue-tables-2: Slots for child rows

Created on 8 Feb 2017  Â·  9Comments  Â·  Source: matfish2/vue-tables-2

  • Vue.js version: 2.1.0
  • consumed using: (webpack)
    Propose using slots for child rows
 <v-client-table
          :data="tableData"
          :columns="columns"
          :options="options"
          :name="table_name"
          @loaded="onLoaded"
          scope="props">
          <mychild-row name="childrow id="props.childID"><mychild-row>
   </v-client-table>

Just a thought??

enhancement

Most helpful comment

Yes, Set the childRowTogglerFirst to false

All 9 comments

I've tried to implement something of the sort but hit a problem with passing contextual row data inside the v-for loop. If you feel up to the task a PR is most welcome.

@hunterway55 hello , do you know how to add child row now?

Hello. We just continued using

 options:{
...
childRow: 'row-component'
...
}

thank you

2017-07-21 14:48 GMT+08:00 Jonathan allen notifications@github.com:

Hello. We just continued using

options:{
...
childRow: 'row-component'
...
}

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/matfish2/vue-tables-2/issues/74#issuecomment-316919118,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AU-DUVq_1eur9M8haxKV1F2JhNFiLC5Hks5sQEmugaJpZM4L7A1N
.

Is there a working jsfiddle example of using child rows? I'm new to using Vue and haven't been able to figure out what is meant by the partial examples on the tutorial. I can get the main client-datable to work just fine though.

I've added an example usage to the fiddle

Thanks a million.

@matfish2 Not sure if this is the right place, but is there an option to Append the child row toggle, vs prepend it? Love for it to be the last column on the row instead.

Yes, Set the childRowTogglerFirst to false

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sylvaincaillot picture sylvaincaillot  Â·  3Comments

yosokus picture yosokus  Â·  3Comments

greenpdx picture greenpdx  Â·  4Comments

seivad picture seivad  Â·  3Comments

jigarzon picture jigarzon  Â·  3Comments