class sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor

UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor
Application Component: CA-UI5-CTR

Constructor for a new StringEditor. This allows to set string values or binding strings for a specified property of a JSON object. The editor is rendered as a sap.m.Input. To get notified about changes made with the editor, you can use the attachValueChange method, which passes the current property state as a string or binding string to the provided callback function when the user edits the input.

Configuration

Option Type Default Description
enabled boolean true Whether the underlying control should be enabled
allowBindings boolean true Whether binding strings can be set instead of selecting items
placeholder string Placeholder for the input field
maxLength number Maximum number of characters


Constructor

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.stringEditor.StringEditor()

Borrowed Properties

Name Type Default Value Description
config object Visibility: public
renderLabel boolean true Visibility: public
value any Visibility: public

Borrowed Aggregations

Name Cardinality Type Description
content 0..1 sap.ui.core.Control

Methods Overview

Method Description
sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor.extend

Creates a new subclass of class sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor 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.

sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor.getMetadata

Returns a metadata object for class sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor.

sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor.extend

Creates a new subclass of class sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor 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

sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor.getMetadata

Returns a metadata object for class sap.ui.integration.designtime.baseEditor.propertyEditor.stringEditor.StringEditor.