Class sap.ui.core.MessageModule: sap/ui/core/Message
This element used to provide messages. Rendering must be done within the control that uses this kind of element.
Its default level is none.
sClassName
and enriches it with the information contained in oClassInfo
. 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
In addition, all settings applicable to the base type sap.ui.core.Element 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 |
The types of sap.ui.core.MessageType are ordered from "Error" > "Warning" > "Success" > "Information" > "None".
{sap.ui.core.Message} | oMessage1 | first message to compare |
{sap.ui.core.Message} | oMessage2 | second message to compare |
{int} | returns 0 if both messages are at the same level. -1 if this message has a lower level. 1 if this message has a higher level. |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.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 |
this
message. The types of sap.ui.core.MessageType are ordered from "Error" > "Warning" > "Success" > "Information" > "None". {sap.ui.core.Message} | oOther | message to compare with this one |
{int} | returns 0 if both messages are at the same level. -1 if this message has a lower level. 1 if this message has a higher level. |
There are default icons for messages available that can be used this way. If no parameter is given, the size will be 16x16 per default. If larger icons are needed, the parameter "32x32" might be given.
{string} | sSize | If parameter is not set the default icon's size will be 16x16. If parameter is set to "32x32" the icon size will be 32x32. |
{sap.ui.core.URI} | URI of the default icon. |
icon
. A possible icon URI of the message
{sap.ui.core.URI} | Value of property icon |
level
. Setting the message's level.
Default value is None
.
{sap.ui.core.MessageType} | Value of property level |
readOnly
. Determines whether the message should be read only. This helps the application to handle a message a different way if the application differentiates between read-only and common messages.
Default value is false
.
- Since:
- 1.19.0
{boolean} | Value of property readOnly |
text
. Message text
{string} | Value of property text |
timestamp
. Message's timestamp. It is just a simple String that will be used without any transformation. So the application that uses messages needs to format the timestamp to its own needs.
{string} | Value of property timestamp |
icon
. A possible icon URI of the message
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.URI} | sIcon | New value for property icon |
{sap.ui.core.Message} | Reference to this in order to allow method chaining |
level
. Setting the message's level.
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.MessageType} | sLevel | New value for property level |
{sap.ui.core.Message} | Reference to this in order to allow method chaining |
readOnly
. Determines whether the message should be read only. This helps the application to handle a message a different way if the application differentiates between read-only and common messages.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bReadOnly | New value for property readOnly |
- Since:
- 1.19.0
{sap.ui.core.Message} | Reference to this in order to allow method chaining |
text
. Message text
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sText | New value for property text |
{sap.ui.core.Message} | Reference to this in order to allow method chaining |
timestamp
. Message's timestamp. It is just a simple String that will be used without any transformation. So the application that uses messages needs to format the timestamp to its own needs.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sTimestamp | New value for property timestamp |
{sap.ui.core.Message} | Reference to this in order to allow method chaining |