Class sap.ui2.shell.Menu
An object representing the root of the user's menu.
Defined in: startup.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
You cannot call this constructor; a
sap.ui2.shell.Menu is created by the
framework in sap.ui2.shell.getUser(). |
| Method Attributes | Method Name and Description |
|---|---|
|
Returns the default error handler for this menu.
|
|
|
Returns all top-level menu entries.
|
|
|
getEntry(sId)
Returns the node with the given ID or
undefined if no such node exists. |
Class Detail
sap.ui2.shell.Menu()
You cannot call this constructor; a
sap.ui2.shell.Menu is created by the
framework in sap.ui2.shell.getUser().
- Since:
- 1.5.0
Method Detail
{function (string)}
getDefaultErrorHandler()
Returns the default error handler for this menu. This handler is taken from the user.
- Since:
- 1.5.0
- Returns:
- {function (string)} default error handler, taking an error message, may be
undefined
{sap.ui2.shell.Node[]}
getEntries()
Returns all top-level menu entries.
- Since:
- 1.5.0
- Returns:
- {sap.ui2.shell.Node[]} the array of entries
{sap.ui2.shell.Node}
getEntry(sId)
Returns the node with the given ID or
undefined if no such node exists.
- Parameters:
- {string} sId
- the ID
- Since:
- 1.5.0
- Returns:
- {sap.ui2.shell.Node} the node with the given ID or
undefinedif no such node exists