Changeset 2068


Ignore:
Timestamp:
04/02/10 07:40:24 (8 years ago)
Author:
cmoullet
Message:

Add display field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux.openaddresses/OpenAddressesSearchCombo.js

    r2059 r2068  
    101101    hideTrigger: true,
    102102
     103    /** private: property[displayField]
     104     *  Display field name
     105     */
     106    displayField: 'displayText',
     107
    103108    /** private: property[url]
    104109     *  Url of the OpenAddresses service
     
    119124                limit: this.maxRows,
    120125                lang: this.lang,
    121                 fields: "street,city,housenumber,geom"
     126                fields: "street,housenumber,city,geom"
    122127            },
    123128            reader: new Ext.data.JsonReader({
     
    129134                   {name: 'city', mapping: 'properties.city'},
    130135                   {name: 'housenumber', mapping: 'properties.housenumber'},
     136                   {name: 'displayText', mapping: 'properties.displayText'},
    131137                   {name: 'type'}
    132138                ]
Note: See TracChangeset for help on using the changeset viewer.