Advertisement
ignatov

Untitled

May 23rd, 2020
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     init: function() {
  2.  
  3.             if (!this.oFragment) {
  4.                 this.oFragment = sap.ui.xmlfragment("demo_plugin.fragment.Welcome", this);
  5.                 sap.ui.getCore().byId("closeBtn").attachPress(function() {
  6.                     this.oFragment.close();
  7.                 }.bind(this));
  8.             }
  9.  
  10.             this.oFragment.attachAfterClose(function() {
  11.                 this.destroy();
  12.             });
  13.             this.oFragment.open();
  14.  
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement