Skip to Content
Apr 22, 2016 at 03:49 PM

Reusabilty in SAPUI5


Hello Experts,

I am trying to develop a view which can be reused by other projects. For this, I have created an xml fragment and a javascript file which contains the event handlers for the UI controls in the fragment .

If I have to use this xml fragment (along with the event handlers) in other projects, what should i do? What is the best approach of reusing xml views/controllers. It is of great help if anyone can explain this in details with some code snippet