We tried the hierarchy grid and found it not meeting what we need:
Any good example for something like this? ideal we would prefer the template to be a separate file instead of in-line, but even if we have to do this with in-line template, it still may work. thanks!
|
[column-template.vue]
<template>
<div>
<div class="image">
<div class="customer" v-for="customer in cData" v-bind:key="customer">
<span>{{ customer }}</span>
</div>
</div>
</div>
</template>
<script>
. . . . . .
computed: {
cData: function () {
var value = this.data[this.data.column.field];
return value;
},
},
};
</script>
[App.vue]
<template>
<div id="app">
<ejs-grid :dataSource="data" :gridLines="lines" height="350">
<e-columns>
<e-column
field="HyperLink"
headerText="Employee Image"
width="150"
textAlign="Center"
:template="cTemplate"
></e-column>
. . . . . . . .
</e-columns>
</ejs-grid>
</div>
</template>
<script>
. . . . . .
import columntempVue from "./column-temp.vue";
export default {
data: () => {
return {
lines: "Both",
data: [
{
HyperLink: ["grid", "drop-down-list", "datetimepicker"],
OrderID: 10248,
CustomerID: "VINET",
OrderDate: new Date("06/02/2021 1:29:30"),
ShipName: "Vins et alcools Chevalier",
},
. . . . . . .
],
cTemplate: function () {
return { template: columntempVue };
},
};
},
};
|