This commit is contained in:
2020-01-30 20:49:42 +00:00
parent 32469404d3
commit 22d2e5779f

View File

@@ -42,7 +42,13 @@
<!-- Handle all plain text types -->
<!--TODO when get to coloured stuff will need to add that as a prop to column data but leaving out for now-->
<template v-if="c.t < 9">
{{ c.v }}
<template v-if="c.i">
<!-- openable object with an ID -->
{{ c.v }}
</template>
<template v-else>
{{ c.v }}
</template>
</template>
<template v-if="c.t == 11">
<a :href="'mailto:' + c.v">{{ c.v }}</a>
@@ -296,7 +302,7 @@ function buildRecords(listData, columndefinitions, filters) {
key: iRow + "-" + iColumn
};
//is the source dtalist field openable? If so it will have an i property set for it's ID and we already know the types to open from the column headers data
//so between the two we can make a clickable button in the grid that triggers a function with the column index and the id and that in turn will bubble up the event to open that
//so between the two we can make a clickable button in the grid that triggers a function with the column index and the id and that in turn will bubble up the event to open that
//object
if (column.i) {
columnObject["i"] = column.i;