-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
home.panel.js
38 lines (38 loc) · 1.21 KB
/
home.panel.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
modExtra.panel.Home = function (config) {
config = config || {};
Ext.apply(config, {
baseCls: 'modx-formpanel',
layout: 'anchor',
/*
stateful: true,
stateId: 'modextra-panel-home',
stateEvents: ['tabchange'],
getState:function() {return {activeTab:this.items.indexOf(this.getActiveTab())};},
*/
hideMode: 'offsets',
items: [{
html: '<h2>' + _('modextra') + '</h2>',
cls: '',
style: {margin: '15px 0'}
}, {
xtype: 'modx-tabs',
defaults: {border: false, autoHeight: true},
border: true,
hideMode: 'offsets',
items: [{
title: _('modextra_items'),
layout: 'anchor',
items: [{
html: _('modextra_intro_msg'),
cls: 'panel-desc',
}, {
xtype: 'modextra-grid-items',
cls: 'main-wrapper',
}]
}]
}]
});
modExtra.panel.Home.superclass.constructor.call(this, config);
};
Ext.extend(modExtra.panel.Home, MODx.Panel);
Ext.reg('modextra-panel-home', modExtra.panel.Home);