Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "Inside the app/view
folder, we remove all existing files (the initial skeleton), and proceed to create the initial view our application will have."
A block of code is set as follows:
Ext.define('myApp.model.modulesModel', { extend: 'Ext.data.Model', requires: [ 'Ext.data.field.String', 'Ext.data.field.Boolean', 'Ext.data.field.Integer' ], fields: [ {type: 'string', name: 'description'}, {type: 'boolean', name: 'allowaccess'}, {type: 'int', name: 'level'}, {type: 'string', name: 'moduleType', defaultValue: ''}, {type: 'string', name: 'moduleAlias', defaultValue: ''}, {type: 'string', name: 'options'} ] });
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Ext.define('myApp.store.modulesTreeDs', { extend: 'Ext.data.TreeStore', requires: [ 'myApp.model.modulesModel', 'Ext.data.proxy.Ajax' ], constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'mymodulesTreeDs', autoLoad: true, model: 'myApp.model.modulesModel', proxy: { type: 'ajax', url: 'serverside/data/menu_extended.json' } }, cfg)]); }
}); Any command-line input or output is written as follows:
sencha -sdk /path/to/ext generate app myApp /path/to/myApp
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Try to write something in the Customer ID field and you will see that it is read-only."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.