<template>
<div id="app">
<ejs-grid id="Grid" :dataSource="data" ref="grid">
<e-columns>
<e-column field="Authors" headerText="Authors" width="100" :disableHtmlEncode="false"></e-column>
</e-columns>
</ejs-grid>
</div>
</template>
<script>
import Vue from "vue";
import { GridPlugin } from "@syncfusion/ej2-vue-grids";
Vue.use(GridPlugin);
export default {
name: "App",
data() {
return {
data: [
{ Authors: "Hodges E, <b>Rosebrock AP</b>" },
{ Authors: "<i> Chen FK</i>" },
{ Authors: "<font color='red'>McFadden DG</font>" }
]
};
}
};
</script>
|
excelQueryCellInfo: function(args) {
if (args.value == "<font color='red'>McFadden DG</font>") {
args.style = { fontColor: "#ff704d" };
}
} |
Woods DM, Woan KV, Cheng F, Sodré AL, <font color='#D2B4DE'>Wang D</font>, Wu Y, Wang Z, <font color='#138d75'>Chen J</font>, Powers J, Pinilla-Ibarz J, Yu Y, <font color='#d4ac0d'>Zhang Y</font>, Wu X, <font color='#D2B4DE'>Zheng X</font>, Weber J, Hancock WW, <font color='#D2B4DE'>Seto E</font>, <font color='#b9770e '>Villagra A</font>, Yu XZ, <font color='#b9770e '>Sotomayor EM</font>. Journal Name |