Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML /** <br/> * filename: facade.js <br/> * description: Application Layout <br/> */ Ext. namespace ( "Layout" ); Layout. base = function (){ // Ext.QuickTips.init(); // , // Viewport // ... return { init: function (){ new Ext.Viewport({ /* , */ }); } }; }(); Ext.onReady(Layout. base .init, Layout. base );
Copy Source | Copy HTML
- Ext. namespace ( "Application.Reports" );
- Application.Reports.BaseReport = Ext.extend (Ext.grid.GridPanel, {
- constructor: function (config) {
- // We rarely have to use the constructor itself, so this method can be done
- // omit if we don’t want to do something with the configuration before it hits
- // into the base constructor. But to have an idea that the constructor function is still there - it is necessary.
- // We must not forget to call the base method, if there is one
- Application.Reports.BaseReport.superclass.constructor.apply ( this , arguments);
- }
- , initComponent: function () {
- // But this method is very important. Component initialization is called after the constructor.
- // Therefore, the redefined configuration is more priority than the configuration specified by the user
- // in the constructor. In it we will redefine the configuration of the object.
- // Copy with replacement all properties of the second argument to the first. What would the user be there
- // in the constructor for the properties, neither determined if these properties are in the second argument — they
- // replace the properties in our object
- Ext.apply ( this , {
- title: "Our Title"
- , loadMask: true
- / * Other properties * /
- , plugins: [
- // Never mind what Ext.ux.grid.MetaGrid is.
- // RESOURCES.SETTINGS.RECORDS_PER_PAGE is the singleton defined in the resource file in / js / resources
- // RECORDS_PER_PAGE = value 50.
- new Ext.ux.grid.MetaGrid ({paging: {perPage: RESOURCES.SETTINGS.RECORDS_PER_PAGE}})
- ]
- });
- // Do not forget to call the base initialization method
- Application.Reports.BaseReport.superclass.initComponent.apply ( this , arguments);
- }
- });
Source: https://habr.com/ru/post/75705/