-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbox.json
More file actions
77 lines (77 loc) · 2.1 KB
/
box.json
File metadata and controls
77 lines (77 loc) · 2.1 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
{
"id": "com.sample.box",
"version": "1.0.0",
"name": "Box",
"description": "A colored box",
"newInstancePrefix": "Box",
"icon": "https://www.sample.com/customwidgets/coloredbox/icon.png",
"vendor": "Sample",
"eula": "",
"license": "",
"webcomponents": [
{
"kind": "main",
"tag": "com-sample-box",
"url": "https://gaalve.github.io/SAC_Process_Mining/box.js",
"integrity": "",
"ignoreIntegrity": true
},
{
"kind": "styling",
"tag": "com-sample-box-styling",
"url": "https://gaalve.github.io/SAC_Process_Mining/box_styling.js",
"integrity": "",
"ignoreIntegrity": true
},
{
"kind": "builder",
"tag": "com-sample-box-builder",
"url": "https://gaalve.github.io/SAC_Process_Mining/box_builder.js",
"integrity": "",
"ignoreIntegrity": true
}
],
"properties": {
"color": {
"type": "string",
"description": "Background color",
"default": "red"
},
"opacity": {
"type": "number",
"description": "Opacity",
"default": 1
},
"width": {
"type": "integer",
"default": 100
},
"height": {
"type": "integer",
"default": 100
}
},
"methods": {
"setColor": {
"description": "Sets the background color.",
"parameters": [
{
"name": "newColor",
"type": "string",
"description": "The new background color"
}
],
"body": "this.color = newColor;"
},
"getColor": {
"returnType": "string",
"description": "Returns the background color.",
"body": "return this.color;"
}
},
"events": {
"onClick": {
"description": "Called when the user clicks the Colored Box."
}
}
}