Guest User

Untitled

a guest
Jul 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. sap.ui.define([], function() {
  2. "use strict";
  3. return {
  4. oMessagePopover: new sap.m.MessagePopover({
  5. items: {
  6. path: '/aMessages',
  7. template: new sap.m.MessagePopoverItem({
  8. type: '{type}',
  9. title: '{title}',
  10. description: '{description}',
  11. subtitle: '{subtitle}',
  12. counter: '{counter}'
  13. })
  14. }
  15. }),
  16. setButtonTypeDefault: function() {
  17. var appContext = sap.ui.getCore().getModel("appContext").getData();
  18. appContext.messageButtonType = "Default";
  19. sap.ui.getCore().getModel("appContext").refresh(true);
  20. },
  21. setButtonTypeEmphasized: function() {
  22. var appContext = sap.ui.getCore().getModel("appContext").getData();
  23. appContext.messageButtonType = "Emphasized";
  24. sap.ui.getCore().getModel("appContext").refresh(true);
  25. }
  26. };
  27. });
Add Comment
Please, Sign In to add comment