Mercurial > lada > lada-client
changeset 348:6007d11b81c2
Added documentation
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 13 Aug 2013 11:34:47 +0200 |
parents | 1536fb5c81b7 |
children | d5a2f7af695a |
files | app/view/proben/Create.js app/view/proben/CreateForm.js app/view/proben/Edit.js app/view/proben/EditForm.js app/view/proben/List.js |
diffstat | 5 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/proben/Create.js Tue Aug 13 11:23:51 2013 +0200 +++ b/app/view/proben/Create.js Tue Aug 13 11:34:47 2013 +0200 @@ -1,3 +1,6 @@ +/* + * Window to create a Probe + */ Ext.define('Lada.view.proben.Create', { extend: 'Ext.window.Window', alias: 'widget.probencreate',
--- a/app/view/proben/CreateForm.js Tue Aug 13 11:23:51 2013 +0200 +++ b/app/view/proben/CreateForm.js Tue Aug 13 11:34:47 2013 +0200 @@ -1,3 +1,6 @@ +/* + * Formular to create a Probe + */ Ext.define('Lada.view.proben.CreateForm', { extend: 'Lada.view.widgets.LadaForm', requires: [
--- a/app/view/proben/Edit.js Tue Aug 13 11:23:51 2013 +0200 +++ b/app/view/proben/Edit.js Tue Aug 13 11:34:47 2013 +0200 @@ -1,3 +1,6 @@ +/* + * Window to edit a Probe + */ Ext.define('Lada.view.proben.Edit', { extend: 'Ext.window.Window', alias: 'widget.probenedit',
--- a/app/view/proben/EditForm.js Tue Aug 13 11:23:51 2013 +0200 +++ b/app/view/proben/EditForm.js Tue Aug 13 11:34:47 2013 +0200 @@ -1,3 +1,6 @@ +/* + * Formular to edit a Probe + */ Ext.define('Lada.view.proben.EditForm', { extend: 'Lada.view.widgets.LadaForm', requires: [
--- a/app/view/proben/List.js Tue Aug 13 11:23:51 2013 +0200 +++ b/app/view/proben/List.js Tue Aug 13 11:34:47 2013 +0200 @@ -1,3 +1,6 @@ +/* + * Grid to list Proben + */ Ext.define('Lada.view.proben.List' ,{ extend: 'Ext.grid.Panel', alias: 'widget.probenlist', @@ -39,6 +42,12 @@ this.columns = []; this.callParent(arguments); }, + /** + * Setup columns of the Grid dynamically based on a list of given cols. + * The function is called from the {@link Lada.controllers.Sql#selectSql + * select sql event} + * @parameter {Array} List of cols to show in the Grid. + */ setupColumns: function(cols) { var rcols = [] rcols.push({header: 'RW', dataIndex: 'readonly', width: 30, renderer: render_readonly}); @@ -49,6 +58,10 @@ } }); +/** + * Helper function to render a readonly symbol per row in the grid + * @param {Boolean} flag if the symbol is a readonly symbol. + */ function render_readonly (value) { if (value) { return '🔒'