-
Notifications
You must be signed in to change notification settings - Fork 0
/
properties.js
61 lines (60 loc) · 1.69 KB
/
properties.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
define(["text!./LanguageToVariable.qext"], function(qext) {
about = {
label: function() {
return "About " + JSON.parse(qext).name;
},
type: "items",
items: {
author: {
label: "This Qlik Sense extension is developed by Cristian Dorbesi, REVEAL AB",
component: "text"
},
version: {
label: function() {
return "Version: " + JSON.parse(qext).version;
},
component: "text"
},
description: {
label: "Please refer to the accompanying documentation page for a detailed description of this extension and its features.",
component: "text"
}
}
};
return {
// Define what our properties panel look like
type: "items",
component: "accordion",
items: {
Language: {
label: "Language",
//component: "accordion",
items: {
Default: {
type: "string",
label: "Default",
ref: "defaultLang",
defaultValue: "EN",
expression: "optional"
},
Variable: {
type: "string",
label: "Variable name",
ref: "langVariable",
expression: "optional"
},
Languages: {
type: "string",
label: "List of languages",
ref: "langList",
expression: "optional"
}
}
},
appearance: {
uses: "settings",
},
about: about
}
}
});