• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geosolutions-it / MapStore2 / 19710972030

26 Nov 2025 03:38PM UTC coverage: 76.665% (-0.3%) from 76.929%
19710972030

Pull #11119

github

web-flow
Fix maven publish (#11739)
Pull Request #11119: Layer Selection Plugin on ArcGIS, WFS & WMS layers

32272 of 50209 branches covered (64.28%)

3 of 3 new or added lines in 2 files covered. (100.0%)

3018 existing lines in 249 files now uncovered.

40157 of 52380 relevant lines covered (76.66%)

37.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

16.67
/web/client/components/data/featuregrid/editors/customEditors.jsx
1
import React from 'react';
2
import DropDownEditor from './DropDownEditor';
3
import NumberEditor from './NumberEditor';
4
import FormatEditor from './FormatEditor';
5
import CustomAutocompleteEditor from './CustomAutocompleteEditor';
6

7
/**
8
 * MapStore allows for adding custom editors to Attribute Table.
9
 * Each custom editor must be added to this object for the ability to use it in localConfig.
10
 * Each property of this object corresponds to a custom editor. The name of the property will be the name
11
 * of the custom editor that can be used to reference the editor in localConfig.
12
 * The value of the property is an object, properties of which correspond to the types of
13
 * attributes that the custom editor will handle. Custom editor entry should look like this:
14
 *
15
 * ```
16
 * "CustomEditor": {
17
 *   "string": (props) => <CustomEditorString {...props}/>,
18
 *   "number": (props) => <CustomEditorNumber {...props}/>
19
 * }
20
 * ```
21
 *
22
 * Each value is a function that takes properties and returns an appropriate JSX element
23
 * to be used as an editor for the particular data type.
24
 *
25
 * Currently custom editors available by default are:
26
 *
27
 * * {@link #components.data.featuregrid.editors.DropDownEditor | DropDownEditor} - editor that allows to choose a value from a pre-configured values list
28
 * * {@link #components.data.featuregrid.editors.NumberEditor | NumberEditor} - editor that supports numeric data, setting min/max bounds on a value
29
 * * {@link #components.data.featuregrid.editors.FormatEditor | FormatEditor} - editor that checks if data matches a particular regular expression
30
 * * {@link #components.data.featuregrid.editors.CustomAutocompleteEditor | CustomAutocompleteEditor} - editor that enables dynamic fetching of unique attribute values from a source layer to target layer's attribute.
31
 *
32
 * Each editor has a specific section in framework documentation with available properties.
33
 *
34
 * @name customEditors
35
 * @memberof components.data.featuregrid.editors
36
 * @type {Object}
37
 */
38
const Editors = {
1✔
39
    "DropDownEditor": {
UNCOV
40
        "string": (props) => <DropDownEditor dataType="string" {...props}/>
×
41
    },
42
    "NumberEditor": {
UNCOV
43
        "int": (props) => <NumberEditor dataType="int" {...props}/>,
×
UNCOV
44
        "number": (props) => <NumberEditor dataType="number" {...props}/>
×
45
    },
46
    "FormatEditor": {
UNCOV
47
        "string": (props) => <FormatEditor dataType="string" {...props}/>
×
48
    },
49
    "CustomAutocompleteEditor": {
UNCOV
50
        "string": (props) => <CustomAutocompleteEditor dataType="string" {...props}/>
×
51
    }
52
};
53

54

55
export default Editors;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc