-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormFlex.json
More file actions
164 lines (164 loc) · 4.33 KB
/
FormFlex.json
File metadata and controls
164 lines (164 loc) · 4.33 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"id": "com.rohitchouhan.sap.formflex",
"version": "1.0.0",
"name": "FormFlex",
"description": "A dynamic and flexible form builder custom widget for SAP Analytics Cloud (SAC).",
"newInstancePrefix": "FormFlex",
"vendor": "rohitchouhan.com",
"eula": "rohitchouhan.com",
"license": "MIT",
"icon": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/FormFlex@1.0.0/icon.png",
"imports": [
"datasource"
],
"webcomponents": [
{
"kind": "main",
"tag": "com-rohitchouhan-sap-formflex",
"url": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/FormFlex@1.0.0/dist/FormFlex.bundle.js",
"integrity": "sha512-fIm+z4cGscdxi4cMFFcRS1DoUyFdJZVLaWVWDVKNjBXIJdiHLHlaEvBRzxi7IRVqzxTHLq5UhNo5/fONktcG6g==",
"ignoreIntegrity": false
},
{
"kind": "builder",
"tag": "com-rohitchouhan-sap-formflex-builder",
"url": "https://cdn.jsdelivr.net/gh/SAP-Custom-Widget/FormFlex@1.0.0/dist/FormFlex.bundle.js",
"integrity": "sha512-fIm+z4cGscdxi4cMFFcRS1DoUyFdJZVLaWVWDVKNjBXIJdiHLHlaEvBRzxi7IRVqzxTHLq5UhNo5/fONktcG6g==",
"ignoreIntegrity": false
}
],
"properties": {
"notificationToggle": {
"description": "Enable or disable notifications for new messages",
"type": "boolean",
"default": true
},
"formConfig": {
"description": "JSON configuration for dynamic form layout",
"type": "string",
"default": "[]"
},
"formBgColor": {
"type": "string",
"default": "#ffffff"
},
"formBgTransparent": {
"type": "boolean",
"default": false
},
"formLayoutColumns": {
"type": "number",
"default": 1
},
"formTextColor": {
"type": "string",
"default": "#32363a"
},
"formFontSize": {
"type": "number",
"default": 14
},
"formBorderShow": {
"type": "boolean",
"default": true
},
"formBorderColor": {
"type": "string",
"default": "#89919a"
},
"formBorderWidth": {
"type": "number",
"default": 1
},
"inputBorderRadius": {
"type": "number",
"default": 4
},
"btnBgColor": {
"type": "string",
"default": "#0a6ed1"
},
"btnTextColor": {
"type": "string",
"default": "#ffffff"
},
"btnBorderRadius": {
"type": "number",
"default": 4
}
},
"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;"
},
"setFormConfig": {
"description": "Dynamically sets the form fields configuration",
"parameters": [
{
"name": "configJson",
"type": "Selection[]",
"description": "JSON array of field configurations"
}
]
},
"getFormValue": {
"description": "Gets the current value of a specific form field",
"returnType": "string",
"parameters": [
{
"name": "fieldId",
"type": "string",
"description": "The ID of the field"
}
]
},
"setFormValue": {
"description": "Sets the value of a specific form field",
"parameters": [
{
"name": "fieldId",
"type": "string",
"description": "The ID of the field"
},
{
"name": "value",
"type": "string",
"description": "The value to set"
}
]
},
"getAllValues": {
"description": "Returns a JSON string containing all form values",
"returnType": "Selection"
},
"isButtonClicked": {
"description": "Checks if a specific submit button was the last one clicked.",
"returnType": "boolean",
"parameters": [
{
"name": "buttonId",
"type": "string",
"description": "The ID of the button to check"
}
]
}
},
"events": {
"onSubmit": {
"description": "Event triggered when user click any submit button."
}
}
}