/
KTL_Customization.js
65 lines (55 loc) · 2.37 KB
/
KTL_Customization.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
//This file is a template that shows how to customize the KTL for your application.
//Insert the code below in the Javascript pane of your app's Builder, just after the loader code.
//Once the KTL is done loading, it will jump in the ktlReady function and apply your desired settings.
//All code must be located inside the ktlReady section.
//See GitHub's Wiki for more details.
//Your app's version.
window.APP_VERSION = '1.0.0';
window.ktlReady = function (appInfo = {}) {
var ktl = new Ktl($, appInfo);
//KTL Setup - BEGIN
ktl.scenes.setCfg({
versionDisplayName: 'MyApp', //Short version of your app name. Leave empty to hide it. Comment whole line for actual app name.
})
ktl.core.setCfg({
developerNames: ['Firstname Lastname'], //Add your name here to get super powers!
//Main KTL feature switches. Here is where your App can override the defaults and enable/disable the features.
enabled: {
//"Basic" features
//Enabled by default. To disable them, their flag must exist and be set to false.
versionInfo: {
viShowAppInfo: true,
viShowKtlInfo: true,
viShowToRoles: ['Developer'], //Array of Account Roles strings who can see the version info bar. Leave empty for all.
viPosX: 'right', //right, center, left
viPosY: 'top', //top, bottom
viPosXMobile: 'center', //right, center, left
viPosYMobile: 'bottom', //top, bottom
viOpacity: 50, //0 to 100
viOpacityHover: 100, //0 to 100
},
showMenuInTitle: true,
selTextOnFocus: true,
inlineEditColor: true,
rowHoverHighlight: true,
chznBetter: true,
autoFocus: true,
sortedMenus: true,
userFilters: true,
persistentForm: true,
calendarGotoDate: true,
rememberMe: true,
formPreValidation: true,
spinnerWatchDog: true,
idleWatchDog: true,
debugWnd: true,
devInfoPopup: true,
devPauseAutoRefresh: true,
},
});
//KTL Setup - END
//KTL callbacks to your App - BEGIN
//KTL callbacks to your App - END
/////////////////////////////////////////////////
//Your App-specific code goes here...
}