comparison app/view/widgets/LadaForm.js @ 283:dec0893d38e3

Added docstrings
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 08 Aug 2013 15:46:28 +0200
parents 1afccc0cab90
children 8a3991b5c200
comparison
equal deleted inserted replaced
282:ee5767cd2dde 283:dec0893d38e3
1 /**
2 * Generic Lada specific form.
3 *
4 * See http://moduscreate.com/expert-ext-js-model-integration-in-forms/ for
5 * more details
6 */
1 Ext.define('Lada.view.widgets.LadaForm', { 7 Ext.define('Lada.view.widgets.LadaForm', {
2 extend: 'Ext.form.Panel', 8 extend: 'Ext.form.Panel',
3 9
4 alias: 'widget.ladaform', 10 alias: 'widget.ladaform',
5 /** 11 bodyPadding: '10 10',
6 * http://moduscreate.com/expert-ext-js-model-integration-in-forms/ 12 border: 0,
7 */
8 13
9 /** 14 /**
10 * Can be a reference to a model instance or a model class name. 15 * Can be a reference to a model instance or a model class name.
11 */ 16 */
12 model: null, 17 model: null,
13 /** 18 /**
14 * Set to the id of the model instance and the model will be loaded for you. 19 * Set to the id of the model instance and the model will be loaded for you.
15 * Only applicable if model provided is a model class name (string). 20 * Only applicable if model provided is a model class name (string).
16 */ 21 */
17 modelId: null, 22 modelId: null,
18 bodyPadding: '10 10', 23 /**
19 border: 0, 24 * List of errors in the form. Typically set after the server validates the form submission
20 25 */
21 errors: null, 26 errors: null,
27 /**
28 * List of warnings in the form. Typically set after the server validates the form submission
29 */
22 warnings: null, 30 warnings: null,
31 /**
32 * The generic (error) message for the form. Typically set after the server validates the form submission
33 */
23 message: null, 34 message: null,
35 /**
36 * Flag to indicate if the validation succeeds. Typically set after the server validates the form submission
37 */
24 success: null, 38 success: null,
39 /**
40 * Flag to indicate if the form should be rendered in readonly mode. Will
41 * be set after calling the {setReadOnly} function.
42 */
25 readonly: false, 43 readonly: false,
26 44
27 initComponent: function() { 45 initComponent: function() {
28 46
29 this.callParent(); 47 this.callParent();

http://lada.wald.intevation.org