Class sap.ui.commons.InPlaceEditModule: sap/ui/commons/InPlaceEdit
The InPlaceEdit is a functionality to have text in display mode that can be changed in place.
Deprecated API:Since version 1.38.
Since: 1.8.0.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the change
event of this sap.ui.commons.InPlaceEdit
.fnFunction
to the liveChange
event of this sap.ui.commons.InPlaceEdit
.fnFunction
from the change
event of this sap.ui.commons.InPlaceEdit
.fnFunction
from the liveChange
event of this sap.ui.commons.InPlaceEdit
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- valueState : sap.ui.core.ValueState (default: None)
- undoEnabled : boolean (default: true)
- design : sap.ui.commons.TextViewDesign (default: Standard)
- Aggregations
- content : sap.ui.core.Control (default)
- Events
- change : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- liveChange : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
- Deprecated:
- Since version 1.38.
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{string} | oControlEvent.getParameters.newValue | The new / changed value of the InPlaceEdit. |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{string} | oControlEvent.getParameters.liveValue | Current value of the Textfield. |
- Since:
- 1.16.5
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the change
event of this sap.ui.commons.InPlaceEdit
. When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.commons.InPlaceEdit
itself.
Event is fired when the text in the field has changed AND the focus leaves the InPlaceEdit or the Enter key is pressed.
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.commons.InPlaceEdit itself |
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
fnFunction
to the liveChange
event of this sap.ui.commons.InPlaceEdit
. When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.commons.InPlaceEdit
itself.
This event if fired during typing into the InPlaceEdit and returns the currently entered value. This is not the content of the value property. The value property is only updated by ENTER and by leaving the control.
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.commons.InPlaceEdit itself |
- Since:
- 1.16.5
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
content
. {sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
fnFunction
from the change
event of this sap.ui.commons.InPlaceEdit
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
fnFunction
from the liveChange
event of this sap.ui.commons.InPlaceEdit
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.16.5
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
change
to attached listeners. Expects the following event parameters:
newValue
of typestring
The new / changed value of the InPlaceEdit.
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
liveChange
to attached listeners. Expects the following event parameters:
liveValue
of typestring
Current value of the Textfield.
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.16.5
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
content
. Content control of the InPlaceEdit. The following controls are allowed: TextField, ComboBox, DropdownBox and Link
{sap.ui.core.Control} |
design
. Defines the visual appearance of the control. Currently this is not supported for Labels.
Default value is Standard
.
- Since:
- 1.9.0
{sap.ui.commons.TextViewDesign} | Value of property design |
Callers that are only interested in tooltips of type string (e.g. to render them as a title
attribute), should call the convenience method getTooltip_AsString instead. If they want to get a tooltip text no matter where it comes from (be it a string tooltip or the text from a TooltipBase instance) then they could call getTooltip_Text instead.
If a content control is assigned to the InPlaceEdit the tooltip of this control is used. A directly set tooltip to the InPlaceEdit is ignored in this case.
{string|sap.ui.core.TooltipBase} | The tooltip for this Element. |
undoEnabled
. If undo is enabled after changing the text an undo button appears.
Default value is true
.
{boolean} | Value of property undoEnabled |
valueState
. Visualizes warnings or errors related to the InPlaceEdit. Possible values: Warning, Error, Success. If the content control has a own valueState property this will be used.
Default value is None
.
{sap.ui.core.ValueState} | Value of property valueState |
content
. {sap.ui.core.Control} | oContent | The content to set |
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
design
. Defines the visual appearance of the control. Currently this is not supported for Labels.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Standard
.
{sap.ui.commons.TextViewDesign} | sDesign | New value for property design |
- Since:
- 1.9.0
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
title
attribute of this Element) or an instance of sap.ui.core.TooltipBase. If a new tooltip is set, any previously set tooltip is deactivated.
If a content control is assigned to the InPlaceEdit the tooltip of this control is used. A directly set tooltip to the InPlaceEdit is ignored in this case.
{string|sap.ui.core.TooltipBase} | oTooltip | Tooltip as string or RichTooltip. |
{sap.ui.commons.InPlaceEdit} | this to allow method chaining |
undoEnabled
. If undo is enabled after changing the text an undo button appears.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bUndoEnabled | New value for property undoEnabled |
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |
valueState
. Visualizes warnings or errors related to the InPlaceEdit. Possible values: Warning, Error, Success. If the content control has a own valueState property this will be used.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is None
.
{sap.ui.core.ValueState} | sValueState | New value for property valueState |
{sap.ui.commons.InPlaceEdit} | Reference to this in order to allow method chaining |