Skip to content
Discussion options

You must be logged in to vote

I figured this out. v-for through the headers, and using item[value] to get the column value.

<table-row :props="props">
  <table-cell v-for="headr in headers" :key="headr.value">
    <template v-if="headr.value === 'someParticularColumn'">{{ props.item.specialProcessingHere }}</template>
    <template v-else>{{ props.item[headr.value] }}</template>
  </table-cell>
</table-row>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jason44107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant