Mercurial > lada > lada-client
view app/view/search/List.js @ 28:4d60b9ebce15
Renamed sql modul into search. Further display The query selection as Combobox
instead of a grid.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 16 May 2013 17:55:53 +0200 |
parents | app/view/sql/List.js@f964a50bfe57 |
children | 897e3100c6da |
line wrap: on
line source
Ext.define('Lada.view.search.List' ,{ extend: 'Ext.form.ComboBox', alias: 'widget.queryselector', store: 'Sql', displayField:'name', valueField: 'id' , emptyText:'Wählen Sie eine Abfrage', //typeAhead: true, //mode: 'local', //triggerAction: 'all', //selectOnFocus:true, initComponent: function() { this.callParent(arguments); } }); //Ext.define('Lada.view.search.List' ,{ // extend: 'Ext.grid.Panel', // alias: 'widget.queryselector', // store: 'Sql', // // initComponent: function() { // this.columns = [ // {header: 'ID', dataIndex: 'id', flex: 1}, // {header: 'Kurzname', dataIndex: 'name', flex: 1}, // {header: 'SQL', dataIndex: 'desc', flex: 1} // ]; // // this.callParent(arguments); // } //});