Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Added support to HTML tags on table cells #21

Merged
merged 1 commit into from
May 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Datasource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
:class="{ 'success': (index == indexSelected) }"
v-for="(row, index) in tableData"
@click.prevent="selectRow(row, index)">
<td v-for="k in columns">
{{ fetchFromObject(row, k.key, k.render) }}
</td>
<td v-for="k in columns" v-html="fetchFromObject(row, k.key, k.render)"></td>
</tr>
<!--/rows-->
<tr>
Expand Down
2 changes: 1 addition & 1 deletion src/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ new Vue({
return 'Global';
break;
case '2':
return 'General';
return '<b>General</b>';
break;
case '3':
return 'Personal';
Expand Down