-
Notifications
You must be signed in to change notification settings - Fork 5
/
properties.js
92 lines (85 loc) · 1.9 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
define([], function () {
'use strict';
// ****************************************************************************************
// Properties Definition
// ****************************************************************************************
//Screen Height
var screen_height = {
ref : "height",
label : "Screen Height (%)",
type : "integer",
defaultValue : "100"
};
//Number of Grid Rows
var grid_rows = {
ref : "rows",
label : "Number of Rows",
type : "integer",
defaultValue : "12"
};
//Number of Grid Columns
var grid_columns = {
ref : "columns",
label : "Number of Columns",
type : "integer",
defaultValue : "24"
};
//Show Hide Botton Switch
var show_button = {
ref : "show_button",
label : "Show 'Resize Grid' Button",
type : "boolean",
component: "switch",
options: [{
value: true,
label: "Shown"
}, {
value: false,
label: "Hidden"
}],
defaultValue: true
};
//Text
var ext_text = {
ref : "ext_text",
label : "Text (Displayed when the button is hidden)",
type : "string",
defaultValue : "Screen Resizer"
};
// ****************************************************************************************
// Property Panel Definition
// ****************************************************************************************
// Settings -Properties
// |--Style
var myCustomSection = {
component : "expandable-items",
label : "Settings",
items : {
header1 : {
type : "items",
label : "Properies",
items : {
screen_height : screen_height ,
grid_rows : grid_rows,
grid_columns : grid_columns
}
},
header2 : {
type : "items",
label : "Style",
items : {
show_button: show_button,
ext_text: ext_text
}
}
}
};
//Return values
return {
type : "items",
component : "accordion",
items : {
customSection : myCustomSection
}
};
});