Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sap.ui.define([], function() {
- "use strict";
- return {
- oMessagePopover: new sap.m.MessagePopover({
- items: {
- path: '/aMessages',
- template: new sap.m.MessagePopoverItem({
- type: '{type}',
- title: '{title}',
- description: '{description}',
- subtitle: '{subtitle}',
- counter: '{counter}'
- })
- }
- }),
- setButtonTypeDefault: function() {
- var appContext = sap.ui.getCore().getModel("appContext").getData();
- appContext.messageButtonType = "Default";
- sap.ui.getCore().getModel("appContext").refresh(true);
- },
- setButtonTypeEmphasized: function() {
- var appContext = sap.ui.getCore().getModel("appContext").getData();
- appContext.messageButtonType = "Emphasized";
- sap.ui.getCore().getModel("appContext").refresh(true);
- }
- };
- });
Add Comment
Please, Sign In to add comment