Ext.onReady(function() {
Ext.define('Customer.support.SupportMessage', {
extend: 'Ext.panel.Panel',
alias: 'widget.supportMessage',
title: 'Customer Support',
html: 'Customer support is online'
});
Ext.application({
name: 'Customer',
launch: function(){
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [{
xtype: 'supportMessage'
}]
});
}
});
});
// 출처 : Ext JS4 Web Application Development Cookbook
'자바스크립트 > Ext JS' 카테고리의 다른 글
| [Cookbook Study Ch01]8. Extending Ext JS Components (0) | 2013.05.22 |
|---|---|
| [Cookbook Study Ch01]7. Accessing Components with Component Queries (0) | 2013.05.22 |
| [Cookbook Study Ch01]5. Dynamically Loading Ext JS Classes (0) | 2013.05.22 |
| [Cookbook Study Ch01]4. Scoping your functions (0) | 2013.05.22 |
| [Cookbook Study Ch01]3. Adding Mixins to your classes (0) | 2013.05.22 |