Changeset 1279

Show
Ignore:
Timestamp:
11/03/08 13:58:14 (2 months ago)
Author:
elemoine
Message:

add a label property to the feature property types

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/camptocamp/MapFishUnhcr/client/mfbase/mapfish/widgets/editing/FeatureProperties.js

    r1278 r1279  
    3030 
    3131mapfish.widgets.editing.BaseProperty.prototype = { 
     32    /** 
     33     * Property: label 
     34     * {String} - The label. 
     35     */ 
     36    label: null, 
     37 
    3238    /** 
    3339     * Property: name 
     
    99105        return { 
    100106            xtype: 'textfield', 
    101             fieldLabel: this.name, 
     107            fieldLabel: this.label || this.name, 
    102108            name: this.name 
    103109        }; 
     
    128134 
    129135/** 
    130  * Class: vFloatProperty 
     136 * Class: FloatProperty 
    131137 * Extension of <mapfish.widgets.editing.BaseProperty> for float properties. 
    132138 */ 
     
    189195 
    190196        var comboConfig = OpenLayers.Util.applyDefaults({ 
    191             fieldLabel: this.name, 
     197            fieldLabel: this.label || this.name, 
    192198            typeAhead: true, 
    193199            triggerAction: 'all',