Constructor for a new MapEditor
for editing key-value pairs with primitive values. To get notified about changes made with the editor, you can attach a handler to the valueChange
event.
Option | Type | Default | Description |
---|---|---|---|
allowKeyChange | boolean | true | Whether to allow editing the key attribute of map entries |
allowTypeChange | boolean | true | Whether to allow editing the type of map entries |
allowAddAndRemove | boolean | true | Whether to allow adding and removing map entries |
allowedTypes | string[] | ["string"] | List of editor types which are supported in the map |
includeInvalidEntries | boolean | true | Whether to show entries with invalid types if the StringEditor cannot be used as a fallback |
allowSorting | boolean | true | Whether to allow changing the order of items. |
addItemLabelI18n | string | BASE_EDITOR.MAP.DEFAULT_TYPE | I18n key for the item in the "Add: Item" label, e.g. "Add: Parameter" by default |
defaultType | string | null | Default type for all map items. If null , the editor will try to derive the type from the value or fall back to "string" |
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
This class does not have its own settings, but all settings applicable to the base type sap.ui.integration.designtime.baseEditor.propertyEditor.BasePropertyEditor can be used.
new sap.ui.integration.designtime.baseEditor.propertyEditor.mapEditor.MapEditor()
Method | Description |
---|---|
sap.ui.integration.designtime.baseEditor.propertyEditor.mapEditor.MapEditor.extend |
Creates a new subclass of class sap.ui.integration.designtime.baseEditor.propertyEditor.mapEditor.MapEditor with name
|
sap.ui.integration.designtime.baseEditor.propertyEditor.mapEditor.MapEditor.getMetadata |
Returns a metadata object for class sap.ui.integration.designtime.baseEditor.propertyEditor.mapEditor.MapEditor. |
Creates a new subclass of class sap.ui.integration.designtime.baseEditor.propertyEditor.mapEditor.MapEditor with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.integration.designtime.baseEditor.propertyEditor.BasePropertyEditor.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |