-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
39 lines (32 loc) · 886 Bytes
/
main.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
37
38
/**
* Created by mysim1 on 15/06/15.
*/
import {SharePoint} from './SharePoint';
window.spworker1 = new SharePoint({
endPoint: 'https://bizboardapps.sharepoint.com/sites/Bizmark02/Offers',
query: {
'Query': {
'Where': {
'Eq': {
'FieldRef': {
'_Name': 'Category',
"_LookupId": "TRUE"
},
'Value': {
'_Type': 'Lookup',
'__text': 7
}
}
}
}
}
});
window.spworker1.on('child_added', function(data) {
console.log('Added:', data);
});
window.spworker1.on('child_changed', function(data) {
console.log('Changed:', data);
});
window.spworker1.on('child_removed', function(data) {
console.log('Removed:', data);
});