Class sap.ui.commons.MessageModule: sap/ui/commons/Message
Creates the "Message"s to be supplied to the "MessageBar" Control.
Deprecated API:Since version 1.4.0. A new messaging concept will be created in future. Therefore this control might be removed in one of the next versions.
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
- type : sap.ui.commons.MessageType
- text : string
- associatedElementId : string
- design : string
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.4.0. A new messaging concept will be created in future. Therefore this control might be removed in one of the next versions.
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 |
This callback function will be supplied the corresponding Message "id", and should return the (simple) HTML string to be displayed within the Message Details Dialog.
E.g.: myMessage.bindDetails(getDetails); function getDetails(sId) {... return htmlString;}
| {function} | fnCallBack | the callback function |
associatedElementId. Associated UI element ID. (Optional) For navigation to error field.
| {string} | Value of property associatedElementId |
design. Internal attribute, used to force the display of the "short" or the "long" text only.
| {string} | Value of property design |
text. Message short text. (Mandatory)
| {string} | Value of property text |
type. "Success", or "Warning", or "Error" messages. (Mandatory)
| {sap.ui.commons.MessageType} | Value of property type |
associatedElementId. Associated UI element ID. (Optional) For navigation to error field.
When called with a value of null or undefined, the default value of the property will be restored.
| {string} | sAssociatedElementId | New value for property associatedElementId |
| {sap.ui.commons.Message} | Reference to this in order to allow method chaining |
design. Internal attribute, used to force the display of the "short" or the "long" text only.
When called with a value of null or undefined, the default value of the property will be restored.
| {string} | sDesign | New value for property design |
| {sap.ui.commons.Message} | Reference to this in order to allow method chaining |
text. Message short text. (Mandatory)
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.commons.Message} | Reference to this in order to allow method chaining |
type. "Success", or "Warning", or "Error" messages. (Mandatory)
When called with a value of null or undefined, the default value of the property will be restored.
| {sap.ui.commons.MessageType} | sType | New value for property type |
| {sap.ui.commons.Message} | Reference to this in order to allow method chaining |