기존 웹 사이트 템플릿에 ExtJS4 Ext.application
을 실행하려고합니다. 우리는 div #content
을 가지고 있는데, 개발을위한 신청서를 제출하고 싶습니다. 기존 HTML 페이지를 대체하는 대신이 영역에 응용 프로그램을 어떻게 렌더링합니까?렌더링 내역 편집
Ext.application({
name: 'HelloExt',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
// renderTo: Ext.Element.get('#content') doesn't work
items: [
{
title: 'Hello Ext',
html : 'Hello! Welcome to Ext JS.'
}
]
});
}
});
정말 확실하지, 의견을주십시오
Ext.panel.Panel
를 사용합니다. – Reimius