-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSample-stagging.json
More file actions
97 lines (97 loc) · 2.67 KB
/
Sample-stagging.json
File metadata and controls
97 lines (97 loc) · 2.67 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"id": "com.rohitchouhan.sap.sample",
"version": "1.0.0",
"name": "Sample",
"description": "",
"newInstancePrefix": "Sample",
"vendor": "rohitchouhan.com",
"eula": "rohitchouhan.com",
"license": "MIT",
"icon": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/Sample@stagging/icon.png",
"imports": [
"datasource"
],
"webcomponents": [
{
"kind": "main",
"tag": "com-rohitchouhan-sap-sample",
"url": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/Sample@stagging/dist/Sample.bundle.js",
"integrity": "sha512-rF7IS56ibiasMO/7/LzWkd/o8ebMLMUCHjUHBOgndC6T0+JwtHBsIgpZcBwlwjLQWfxDdVTTJWeqphtXA5QC4Q==",
"ignoreIntegrity": false
},
{
"kind": "builder",
"tag": "com-rohitchouhan-sap-sample-builder",
"url": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/Sample@stagging/dist/Sample.bundle.js",
"integrity": "sha512-rF7IS56ibiasMO/7/LzWkd/o8ebMLMUCHjUHBOgndC6T0+JwtHBsIgpZcBwlwjLQWfxDdVTTJWeqphtXA5QC4Q==",
"ignoreIntegrity": false
}
],
"properties": {
"notificationToggle": {
"description": "Enable or disable notifications for new messages",
"type": "boolean",
"default": true
},
"sampleField": {
"description": "Sample Field",
"type": "string",
"default": "Sample Field"
},
"textColor": {
"description": "Text Color",
"type": "string",
"default": "#000000"
},
"textSize": {
"description": "Text Size",
"type": "integer",
"default": 16
},
"fontStyle": {
"description": "Font Weight",
"type": "string",
"default": "normal"
},
"description": {
"description": "Widget Description",
"type": "string",
"default": "This is a sample widget description."
},
"showInfo": {
"description": "Show or Hide Information",
"type": "boolean",
"default": true
},
"selectedFeatures": {
"description": "Selected Features",
"type": "string[]",
"default": [
"Feature 1"
]
}
},
"methods": {
"enableUpdateNotification": {
"description": "Enable or disable update notifications",
"parameters": [
{
"name": "notificationToggle",
"type": "boolean",
"description": "Enable or disable update notifications"
}
],
"body": "this.notificationToggle = notificationToggle;"
},
"isUpdateNotificationEnable": {
"description": "Check if update notifications are enabled",
"returnType": "boolean",
"body": "return this.notificationToggle;"
}
},
"events": {
"onClick": {
"description": "Event triggered when clicked."
}
}
}