OpenUI5 provides a plugin for controls that are defined as declarative markup on startup time.
Deprecated as of UI5 version 1.120, replaced by XML View.
To compile the declarative UI markup deferred, for example, when the markup is dynamically loaded and added to the DOM you can call the sap.ui.core.plugin.DeclarativeSupport
.compile method, see the following code snippet:
<div id="button">
<div data-sap-ui-type="sap.m.Button" data-text="This button is added dynamically"></div>
</div>
<script>
sap.ui.core.plugin.DeclarativeSupport.compile(document.getElementById("button"));
</script>