nnnjjj123
2020-11-17 1b2c1edb61190eeb19f465ff031eaa3b2a1b8dbc
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/**
REQUIRED
    id (Number): unique; sort key (any modules that depend on being loaded after another module should have a higher id)
    label (String): Display value for the feature
    mid (String): absolute mid of the module that provides the feature
    featureType (String): 'grid' or 'column', determining which tab of the UI it appears under
 
OPTIONAL
    configLevel (String): if 'grid', feature will be applied to grid settings; otherwise feature will be applied to each
        column's settings
    configModule (String): relative (to the 'widgets' folder) mid of the module that provides the configuration UI
    info (String): Tooltip text - longer description of the feature
*/
define([
    './config',
    'dojo/i18n!../nls/laboratory'
], function (config, i18n) {
    return [
        {
            id: 1.1,
            featureType: 'grid',
            mid: 'dgrid/Grid',
            label: 'Grid',
            configLevel: 'grid',
            configModule: 'configForms/Grid',
            documentationUrl: config.docBaseUrl + 'components/core-components/Grid.md',
            selected: true
        },
        {
            id: 1.2,
            featureType: 'grid',
            mid: 'dgrid/OnDemandGrid',
            label: 'OnDemandGrid',
            configLevel: 'grid',
            configModule: 'configForms/OnDemandGrid',
            documentationUrl: config.docBaseUrl + 'components/core-components/OnDemandList-and-OnDemandGrid.md',
            selected: true
        },
        {
            id: 2,
            featureType: 'grid',
            mid: 'dgrid/Keyboard',
            label: 'Keyboard',
            configLevel: 'grid',
            configModule: 'configForms/Keyboard',
            documentationUrl: config.docBaseUrl + 'components/mixins/Keyboard.md',
            info: i18n.infoKeyboard
        },
        {
            id: 3,
            featureType: 'grid',
            mid: 'dgrid/Selection',
            label: 'Selection',
            configLevel: 'grid',
            configModule: 'configForms/Selection',
            documentationUrl: config.docBaseUrl + 'components/mixins/Selection.md',
            info: i18n.infoSelection
        },
        {
            id: 4,
            featureType: 'grid',
            mid: 'dgrid/CellSelection',
            label: 'CellSelection',
            configLevel: 'grid',
            configModule: 'configForms/CellSelection',
            documentationUrl: config.docBaseUrl + 'components/mixins/CellSelection.md',
            info: i18n.infoCellSelection
        },
        {
            id: 5,
            featureType: 'grid',
            mid: 'dgrid/Tree',
            label: 'Tree',
            configLevel: 'grid',
            configModule: 'configForms/Tree',
            documentationUrl: config.docBaseUrl + 'components/mixins/Tree.md',
            info: i18n.infoTree
        },
        {
            id: 6,
            featureType: 'grid',
            mid: 'dgrid/extensions/Pagination',
            label: 'Pagination',
            configLevel: 'grid',
            configModule: 'configForms/Pagination',
            documentationUrl: config.docBaseUrl + 'components/extensions/Pagination.md',
            info: i18n.infoPagination
        },
        {
            id: 7,
            featureType: 'grid',
            mid: 'dgrid/extensions/DijitRegistry',
            label: 'DijitRegistry',
            documentationUrl: config.docBaseUrl + 'components/extensions/DijitRegistry.md',
            info: i18n.infoDijitRegistry
        },
        {
            id: 8,
            featureType: 'grid',
            mid: 'dgrid/extensions/DnD',
            label: 'DnD',
            configLevel: 'grid',
            documentationUrl: config.docBaseUrl + 'components/extensions/DnD.md',
            info: i18n.infoDnD
        },
        {
            id: 9,
            featureType: 'column',
            mid: 'dgrid/Editor',
            label: 'Editor',
            documentationUrl: config.docBaseUrl + 'components/mixins/Editor.md',
            info: i18n.infoEditor
        },
        {
            id: 10,
            featureType: 'column',
            mid: 'dgrid/extensions/ColumnHider',
            label: 'ColumnHider',
            documentationUrl: config.docBaseUrl + 'components/extensions/ColumnHider.md',
            info: i18n.infoColumnHider
        },
        {
            id: 11,
            featureType: 'column',
            mid: 'dgrid/extensions/ColumnReorder',
            label: 'ColumnReorder',
            documentationUrl: config.docBaseUrl + 'components/extensions/ColumnReorder.md',
            info: i18n.infoColumnReorder
        },
        {
            id: 12,
            featureType: 'column',
            mid: 'dgrid/extensions/ColumnResizer',
            label: 'ColumnResizer',
            configLevel: 'grid',
            configModule: 'configForms/ColumnResizer',
            documentationUrl: config.docBaseUrl + 'components/extensions/ColumnResizer.md',
            info: i18n.infoColumnResizer
        },
        // There's no UI for configuring CompoundColumns or ColumnSet, so just omit them
/*
        {
            id: 13,
            featureType: 'column',
            mid: 'dgrid/extensions/CompoundColumns',
            label: 'CompoundColumns',
            documentationUrl: config.docBaseUrl + 'components/extensions/CompoundColumns.md',
            info: 'TODO: i18n; Define column headers that span multiple grid columns'
        },
        {
            id: 14,
            featureType: 'column',
            mid: 'dgrid/ColumnSet',
            label: 'ColumnSet',
            documentationUrl: config.docBaseUrl + 'components/mixins/ColumnSet.md',
            info: 'TODO: i18n; Define column sets that scroll independently'
        },
*/
        {
            id: 15,
            featureType: 'column',
            mid: 'dgrid/Selector',
            label: 'Selector',
            documentationUrl: config.docBaseUrl + 'components/mixins/Selector.md',
            info: i18n.infoSelector
        }
    ];
});