-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproperties.js
70 lines (66 loc) · 1.57 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
62
63
64
65
66
67
68
69
70
/**
* E-mergo Table Inspector Property Panel definition
*
* @param {Object} util E-mergo utility functions
* @param {Object} docs E-mergo documentation functions
* @param {String} qext Extension QEXT data
* @return {Object} Extension Property Panel definition
*/
define([
"./util/util",
"./docs/docs",
"text!./qs-emergo-table-inspector.qext"
], function( util, docs, qext ) {
/**
* Holds the QEXT data
*
* @type {Object}
*/
var qext = JSON.parse(qext),
/**
* Holds the settings definition of the about sub-panel
*
* @type {Object}
*/
about = {
label: function() {
return "About ".concat(qext.title);
},
type: "items",
items: {
author: {
label: "This Qlik Sense extension is developed by E-mergo.",
component: "text"
},
version: {
label: function() {
return "Version: ".concat(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"
},
help: {
label: "Open documentation",
component: "button",
action: function( props ) {
util.requireMarkdownMimetype().finally( function() {
var readmeFile = window.requirejs.toUrl("extensions/".concat(props.qInfo.qType, "/README.md"));
require(["text!".concat(readmeFile)], function( readme ) {
docs.showModal(readme, qext);
});
});
}
}
}
};
return {
type: "items",
component: "accordion",
items: {
about: about
}
};
});