-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproperties.js
73 lines (66 loc) · 1.64 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
// JavaScript
define([], function () {
'use strict';
// *****************************************************************************
// Appearance Section
// *****************************************************************************
var appearanceSection = {
uses : "settings"
};
var aboutSection = {
type: "items",
label: "About",
items: {
btninactive: {
type: "string",
label: "[email protected]",
ref: "about",
defaultValue: "https://github.com/ludberg/xgridresizer"
}
}
};
// Some components
var input_rows = {
ref : "rows",
label : "Number of rows",
type : "integer",
defaultValue : "12"
};
var input_cols = {
ref : "cols",
label : "Number of columns",
type : "integer",
defaultValue : "24"
};
var myCustomSection = {
// not necessary to define the type, component "expandable-items" will automatically
// default to "items"
// type: "items"
component : "expandable-items",
label : "Exsitec",
items : {
header1 : {
type : "items",
label : "Properies",
items : {
input_rows : input_rows ,
input_cols : input_cols
}
}
}
};
// *****************************************************************************
// Main property panel definition
// ~~
// Only what's defined here will be returned from properties.js
// *****************************************************************************
return {
type : "items",
component : "accordion",
items : {
appearance : appearanceSection,
about : aboutSection ,
customSection : myCustomSection
}
};
});