-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
36 lines (36 loc) · 870 Bytes
/
index.js
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
panel.plugin('zvaehn/recent-changes', {
sections: {
recentChanges: {
data: function () {
return {
headline: null,
items: null
}
},
methods: {
action(type) {
alert(type);
},
editClickHandler(obj) {
alert(obj.toString());
},
},
created: function() {
this.load().then(response => {
this.headline = response.headline;
this.items = response.items;
});
},
template: `
<section class="k-modified-section" type="pages">
<header class="k-section-header">
<k-headline>{{ headline }}</k-headline>
</header>
<div class="k-collection" data-layout="list">
<k-list :items="items"></k-list>
</div>
</section>
`
}
}
});