Commit 0efb70a2 authored by christianrhansen's avatar christianrhansen

table content

parent a1dc3a09
<template lang="pug">
full-screen
back-button(slot="backButton")
| Annotations Table
.q-my-lg.bg-grey-8
template(slot="form-title") Annotations Table
.q-mt-lg
data-table(v-if="annotations", :config="config", path="annotations", :query="queryNew")
br
.q-mt-md.q-caption(v-for="(annotation, index) in annotations") {{ index + 1 }} --- {{ annotation }}
</template>
<script>
......@@ -30,33 +28,26 @@
},
columns: [
{
name: 'title',
label: _this.$t('labels.title'),
field: 'title',
name: 'value',
label: _this.$t('labels.annotations'),
field: row => row.body.value,
sortable: true,
filter: true
},
{
name: 'date',
label: _this.$t('labels.date'),
name: 'starting_point',
label: _this.$t('labels.starting_point'),
sortable: true,
sort: _this.$sort.onDateValue,
field: 'date',
field: row => row.target.selector.value,
format: val => DateTime.fromISO(val)
.toLocaleString(DateTime.DATETIME_SHORT_WITH_SECONDS)
},
{
name: 'author',
label: _this.$t('labels.author'),
field: 'author',
sortable: true,
filter: true
}
],
actions: [
{
type: 'edit',
title: 'buttons.xxxxx',
title: 'buttons.edit',
click: (item) => {
console.log(item)
// this.$refs.confirmModal.show('buttons.delete', item, 'buttons.delete')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment