forked from syncfusion/ej2-vue-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtooltip-temp-baseline.vue
42 lines (40 loc) · 976 Bytes
/
tooltip-temp-baseline.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<template>
<div id="tooltip">
<table>
<tbody>
<tr>
<td>Planned Start Date: </td>
<td>{{format(data.BaselineStartDate)}}</td>
</tr>
<tr>
<td>Planned End Date: </td>
<td>{{format(data.BaselineEndDate)}}</td>
</tr>
<tr>
<td>Current Start Date: </td>
<td>{{format(data.StartDate)}}</td>
</tr>
<tr>
<td>Current End Date: </td>
<td>{{format(data.EndDate)}}</td>
</tr>
</tbody>
</table>
</div>
</template>
<script>
import { Internationalization } from '@syncfusion/ej2-base';
let instance = new Internationalization();
export default {
data() {
return {
data: {}
};
},
methods: {
format: function(value) {
return instance.formatDate(value, { skeleton: 'yMd', type: 'date' });
}
}
};
</script>