Mercurial > lada > lada-client
view app/view/widgets/Uwb.js @ 270:0d6552bb28ea
Add cancel Button to the editproben window and only show save button if the
form is actually writeable.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 06 Aug 2013 14:33:14 +0200 |
parents | 1375ff0f248d |
children | 852dc338894e |
line wrap: on
line source
// Combobox for Umweltbereich var uwbStore = Ext.create('Ext.data.Store', { fields: ['umwId', 'umweltBereich'], sorters: [{ property: 'umwId', }], proxy: { type: 'ajax', api: { read: 'server/rest/uwb' }, reader: { type: 'json', root: 'data' } } }); Ext.define('Lada.view.widgets.Uwb' ,{ tpl: '<tpl for="."><div class="x-combo-list-item" >{umwId} - {umweltBereich}</div></tpl>', extend: 'Ext.form.ComboBox', alias: 'widget.uwb', store: uwbStore, displayField:'umwId', valueField: 'umwId', emptyText:'Wählen Sie einen Umweltbereich', initComponent: function() { this.callParent(arguments); } });