2014년 11월 26일 수요일
ExtJS Project - With C# - Chapter 1
Ext.onReady(function() {
Ext.tip.QuickTipManager.init();
Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
var viewport = Ext.create('Ext.Viewport', {
layout: 'border',
id: 'smartworksView',
items: [cardPanelContent]
});
var menu = getQueryParam('menu');
if (menu == null || menu == "") {
menu = "AL";
}
changeContentView(menu);
});
function getQueryParam(name) {
var regex = RegExp('[?&]' + name + '=([^&]*)');
var scriptEls = document.getElementsByTagName('script'),
path = scriptEls[scriptEls.length - 1].src,
i = 3
while (i--) {
path = path.substring(0, path.lastIndexOf('/'));
}
var match = regex.exec(location.search) || regex.exec(path);
return match && decodeURIComponent(match[1]);
}
var cardPanelContent = new Ext.Panel({
xtype: 'panel',
region: 'center',
id: 'cardPanelContent',
header: false,
layout: 'card',
activeItem: 0,
items: [
ImageMngView, userDocMainPanel, PrivateDocMainPanel
]
});
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기