Class sap.ui.commons.MessageBarModule: sap/ui/commons/MessageBar
Creates an instance of a MessageBar Control, for displaying messages.
Deprecated API:Since version 1.4.0. Instead, use the sap.m.MessagePopover control.
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
- anchorID : string (default: )
- visible : boolean (default: true)
- maxToasted : int (default: 3)
- maxListed : int (default: 7)
- anchorSnapPoint : string (default: begin top)
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. Instead, use the
sap.m.MessagePopovercontrol.
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 |
| {sap.ui.commons.Message[]} | aAMessages | Array of messages. |
| {sap.ui.commons.MessageBar} | this to allow method chaining |
| {string[]} | aIds | Messages IDs to be deleted. |
anchorID. Element ID upon which the MessageBar will be initially positioned.
Default value is .
| {string} | Value of property anchorID |
anchorSnapPoint. Type: sap.ui.core.Popup.Dock SnapPoint of MessageBar over anchorId. Note: Use "begin" or "end" for RTL support. Note: "center" is not indicated, as positioning is only set once, either via the css "left" or the "right" attribute. Therefore a MessageBar will only be extended in one direction, as Messages come in.
Default value is begin top.
| {string} | Value of property anchorSnapPoint |
maxListed. Maximum number of messages being displayed in the List before a scrollbar appears. Value '0' means no limit.
Default value is 7.
| {int} | Value of property maxListed |
maxToasted. Maximum number of simultaneous messages being toasted in a row. Value '0' means this dynamic part is switched off.
Default value is 3.
| {int} | Value of property maxToasted |
visible. Specifies whether or not the MessageBar is visible. Invisible controls are not rendered.
Default value is true.
| {boolean} | Value of property visible |
anchorID. Element ID upon which the MessageBar will be initially positioned.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is .
| {string} | sAnchorID | New value for property anchorID |
| {sap.ui.commons.MessageBar} | Reference to this in order to allow method chaining |
anchorSnapPoint. Type: sap.ui.core.Popup.Dock SnapPoint of MessageBar over anchorId. Note: Use "begin" or "end" for RTL support. Note: "center" is not indicated, as positioning is only set once, either via the css "left" or the "right" attribute. Therefore a MessageBar will only be extended in one direction, as Messages come in.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is begin top.
| {string} | sAnchorSnapPoint | New value for property anchorSnapPoint |
| {sap.ui.commons.MessageBar} | Reference to this in order to allow method chaining |
maxListed. Maximum number of messages being displayed in the List before a scrollbar appears. Value '0' means no limit.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 7.
| {int} | iMaxListed | New value for property maxListed |
| {sap.ui.commons.MessageBar} | Reference to this in order to allow method chaining |
maxToasted. Maximum number of simultaneous messages being toasted in a row. Value '0' means this dynamic part is switched off.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 3.
| {int} | iMaxToasted | New value for property maxToasted |
| {sap.ui.commons.MessageBar} | Reference to this in order to allow method chaining |
visible. Default value is true
The default implementation of function setVisible() is enhanced in order to toggle the visibility:hidden; attribute over the control.
| {boolean} | bVisible | New value for property visible |
| {sap.ui.commons.MessageBar} | this to allow method chaining |